Saravanan666/pypi-org huggingface dataset:
Package: py-hi
hihi is a tiny cli program that send benchmark request to "almost" everything. note that it's inspired byrakyll/heyand implemented by python/asyncioInstallpip install py-hiUsagesay hi to githubhi https://github.comyou will see➜hihttps://github.com

Sendrequesttohttps://github.com

Summary:
Total:6.327secs
Slowest:6.297secs
Fastest:1.447secs
Average:4.388secs
Requests/sec:31.611

Statuscodedistribution:[200]200responsesTODOmore send flagrequest benchmark through shadowsocks
Package: pyhiapi
pyhiapiThe API that just says hi!A very simple API endpoint, easily deployable for testing purposes.Installationsudo pip install pyhiapiUsageusage: hi.py [-h] [-b BIND] [-f RESPONSE_FILE] [-p PORT] [-r CODE]

optional arguments:
  -h, --help            show this help message and exit
  -b BIND, --bind-address BIND
                        Address to bind the server to
  -f RESPONSE_FILE, --response-file RESPONSE_FILE
                        A file containing a custom response message
  -p PORT, --port PORT  The port to listen on
  -r CODE, --response_code CODE
                        The response code to send back to requestshiapi defaults tolocalhost:4000and a200 OKresponse.You can override all command line arguments using the following environment variables:HIAPI_BIND_ADDRHIAPI_RESPONSE_FILEHIAPI_PORTHIAPI_RESPONSE_CODEWhen these variables are present, the corresponding command line arguments will be *completely ignored.TestingYou can just curl the service, perhaps like this:$ curl -i http://localhost:4000/

HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 4
Server: Werkzeug/0.9.6 Python/2.7.8
Date: Fri, 23 Jan 2015 03:38:14 GMT

Hi!
Package: pyHIARD
pyHIARDThe Python HI Artificial and Real Database (pyHIARD ) is a project to create a comprehensive database of Artificial and real galaxies that can be used for testing the various  software that is available for fitting galaxy survey. In principle it is developed for testing Tilted Ring Fitting Software but in principle it can be used for testing any Software for which the input parameters should be known.pyHIARD Requires working versions of tirific and sofia2  for full functionality.CASA is required for full simulations which are achieved through the casa python modules and they should be installed through the pip install. Note however that currently the modules are only available up to python 3.8.
!!!!!!!!For python versions > 3.8 the install will progress normally but the casatasks will not be installed and the casa corruption method will be unavailable!!!!!!!!tirific is required for the Artificial branch and can be installed trough kern-suitehttps://kernsuite.info/for ubuntu or it can be downloaded fromhttps://github.com/gigjozsa/tirific. If you are struggling with tirific's pg plot dependency the branch no_pgp can be installed from the github. It wll work with pyHIARDSoFiA2 is required for the masking and can be downloaded fromhttps://github.com/SoFiA-Admin/SoFiA-2Except for The Real Observed Catalogue should work without any external installations as long as no new galaxies are added. Do note that at the first instance of creating a base galaxy it requires an internet connection to download the original cubes. An origins disclaimer will be positions in each directory.Please see the read the docs pages for additional information and set up.InstallationDownload the source code from the Github or simply install with pip as:pip install pyHIARDThis should also install all required python dependencies. We recommend the use of python virtual environments. If so desired a pyHIARD installation would look like:python3 -m venv pyHIARD_venvsource pyHIARD_venv/bin/activate.cshpip install --upgrade wheel setuptools pippip install pyHIARD(In case of bash the correct middle line is 	source pyHIARD_venv/bin/activate)
You might have to restart the env:deactivatesource pyHIARD_venv/bin/activate.cshOften it is necessary to update the casa tables through:python -m casatools --update-user-dataRunning pyHIARDcd to the directory where you want the database to exist.
run pyHIARD by typing:pyHIARD configuration_file=my_setup.ymlorpyHIARDanswer the questions about what you want to create.Setting can also be specified from the command line. These will take preference over the configuration file. For example if you want to recreate your data base with a slightly different beam. you could rerun pyHIARD as:'pyHIARD configuration_file=pyHIARD_tests.yml "agc.variables_to_vary=[beam_size]" "agc.beam_size=[[7.5,7.5,30.]]"
Package: pyhiccup
pyhiccup 0.1Python version of clojure hiccuphttps://github.com/weavejester/hiccupOriginal concept by James ReevesPyhiccup is a library for representing HTML in Python. It uses list or tuple
to represent elements, and dict to represent an element’s attributes.
Supported Python versions are:2.62.73.33.4Installpip install pyhiccupSyntaxHere is a basic example of pyhiccup syntax.>>>frompyhiccup.coreimporthtml>>>data=[>>>['div',>>>{'class':'a-class','data-y':'23'},>>>['span','my-text',>>>['ul',[['li',x]forxin['café','milk','sugar']]]]]>>>]>>>html(data)u'<!DOCTYPE html><html lang="en" xml:lang="en" dir="rtl"><div data-y="23" class="a-class"><span>my-text<ul><li>café<li>milk<li>sugar</ul></span></div></html>'Thehtmlfunction supports different default typehtml5, html4, xhtml-strict, xhtml-transitional>>>frompyhiccup.coreimporthtml>>>data=[]>>>html(data,etype='xhtml-strict')>>>u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="en" xml:lang="en" dir="rtl" xmlns="http://www.w3.org/1999/xhtml"/>'You can pass arbitrary keyword arguments to thehtmlthey will be transformed intohtmltag attributes>>>frompyhiccup.coreimporthtml>>>data=[]>>>html(data,etype='xhtml-strict',an-attr='foo')u'... <html an-attr="foo" lang="en" xml:lang="en" dir="rtl" xmlns="http://www.w3.org/1999/xhtml"/>'Pyhiccup also provides a function to represent XML. Arbitrary keyword arguments are also supported.>>>frompyhiccup.coreimportxml>>>data=['form-desc',>>>['field',{'name':'a_name'}],>>>['field',{'name':'a_other_name'}]]>>>conv=xml(data,'foo-ns',bar='an_attr')u'<?xml version="1.0" encoding="UTF-8"?><foo-ns bar="an_attr"><form-desc><field name="a_name"/><field name="a_other_name"/></form-desc></foo-ns>'Some time you want to be able to create XML/HTML chunk out of a namespace. Thecore.convertis made for this.>>>frompyhiccup.coreimportconvert>>>frompyhiccup.elementimportlink_to>>>convert(link_to('http://github.com/nbessi/pyhiccup','pyhiccup'))u'<a href="http://github.com/nbessi/pyhiccup">pyhiccup</a>'Helpers are available on the elements namespace. The will help you to add hyperlink, images etc.>>>frompyhiccup.elementimportlink_to>>>link_to(u'https://github.com/nbessi/pyhiccup',u'pyhiccup')[u'a',{u'href':u'https://github.com/nbessi/pyhiccup'},u'pyhiccup']
Package: pyhide
pyhideUse steganography to hide data in images.The Least Significant Bit method is used when a base image is provided, where the data will be written to the end of each pixel. More bits will be used depending on how much data is to be stored, and not providing a base image will force it to use all 8 bits.These images must be saved as a lossless format (such as .PNG), and any resampling will lose the data. Some image hosts such as Imgur will not reformat the image if it's below a certain size, making it an ideal host to use for sharing.Installationpip install pyhideExample Usage# Simple image encode/decode>>>encoded_image=PyHide(data).image_encode()>>>data==PyHide.image_decode(encoded_image)True# Encode using a base image, forcing RGB>>>image=image_from_url(url)>>>encoded_image=PyHide(data).image_encode(mode='RGB',base=image)>>>data==PyHide.image_decode(encoded_image)TrueThe returned images are instances ofPIL.Image, which contains the save functionality if needed.pyhideby itself does everything in memory and will not write anything to disk.
Package: pyhide-obf
PyHide - Python ObfuscatorPyHide is a python source code obfuscator which uses Marshal Serialization and Fernet Encryption to obfuscate the source code which protects your source code on the web.Disclaimer: Obfuscation could also be used for malicious purposes to hide malware, always be careful while executing obfuscated code, use obfuscated code only from trusted sourcesRequirementsPython 3.8Poetry
Package: pyhifiberry
pyhifiberryPython library to interface with Hifiberry OS API (audiocontrol2). There are two APIs available:RESTsocketioThis package is targeting mainly the needs for ahifiberry integration for Home assistant.Usage example of the socketio APIRuns for 100 secs and prints artist name if metadata events occure.importasynciofrompyhifiberry.audiocontrol2sioimportAudiocontrol2SIOdefmetadata_callback(metadata):print(metadata['artist'])asyncdefmain():api=awaitAudiocontrol2SIO.connect(<HIFIBERRY_IP>,<HIFIBERRY_PORT>)api.metadata.add_callback(metadata_callback)awaitasyncio.sleep(100)if__name__=='__main__':asyncio.run(main())
Package: pyhigh
pyhighpyhighis a Python package for accessing elevation data, which is retrieved from aUSGS dataset.  The package uses caching to avoid unecessary downloads from the USGS dataset, but please respect their download policies.Installation>pipinstallpyhighUsageCommand-line utilityThepyhighPython package includes a command-line tool of the same name to retreive the elevation at a particular latitude and longitude:>pyhigh--lat36.52011--lon-118.6711884As necessary, files will be download from a USGS dataset and cache in the folderpyhigh/pyhigh/.cache.  To clear this cache, use the--cleanargument:>pyhigh--cleanPython APITheget_elevationfunction returns the elevation, in meters, at the given latitude and longitude.>>>frompyhighimportget_elevation>>>get_elevation(lat=36.52011,lon=-118.671)1884It is also possible to request a bunch elevations for a bunch of latitudes and longitudes at once.  The result returned is a NumPy array of elevations.>>>frompyhighimportget_elevation_batch>>>get_elevation_batch([(36.52011,-118.671),...(36.62011,-118.771)])array([1884.,2438.])This is more efficient than individual calls toget_elevationbecause elevation reads are pooled together to avoid reading the same*.hgtfile multiple times.Finally, thepyhighcache of*.hgtfiles can be cleared with the API functionclear_cache:>>>frompyhighimportclear_cache>>>clear_cache()
Package: pyhighlight
imghighlightA tiny Python 3 wrapper to make highlighting portions of an image much easierInstallationInstalling is best done usingpip:python3-mpipinstallpyhighlightAnother option is to clone the repo and copy thepyhighlightmodule folder (containing__init__.py) into your project directory.UsageThe wrapper utilizes three functions:NameDescriptionpyhighlight(image_path)The constructor, takes in the base image's file pathhighlight(points, color, transparency)Highlights a portion of the image.points- An array of arrays containing the corresponding points (ie.[[1, 1], [2, 2]]). Note: the pointsmustbe in order or the highlighted image will look weird.Required.color- A string for the desired color of the highlighted portion. Defaults to'blue'.Optional.transparency- A float between 0 and 1 for how transparent the highlighting should be.Optional.save(output_path)Saves the generated image to the file path specifiedExampleLet's say you have an image of some buildings you want to highlight:Assuming you know the points on the image that you want to highlight, a tiny script can be written to easily generate a new image with those buildings highlighted:importpyhighlightasph# Assuming we want to highlight buildings A, B, and C# from the example imagepoints={'A':[[45,156],[155,50],[156,160]],'B':[[37,253],[206,253],[206,276],[90,276],[90,297],[206,297],[206,330],[90,330],[90,352],[210,352],[210,386],[37,386]],'C':[[352,57],[518,57],[518,128],[410,128],[410,190],[352,190]]}test=ph.pyhighlight('example_buildings.png')test.highlight(points['A'])test.highlight(points['B'],color='red',transparency=0.5)test.highlight(points['C'],color='green')test.save('example.png')The final result:LicenseMIT LicenseCopyright (c) 2018 Tyler BurdsallPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: py-HighSierraMediaKeyEnabler
Media Keys on macOS High Sierra+This project is a version ofHighSierraMediaKeyEnablerwritten in
Python for simplicity using PyObjC.In short, it makes it so that Safari cannot steal the media keys: the
media keys always control iTunes (Music on Catalina). (I usually have
TweetDeck open in a Safari window, and if TweetDeck has tried to send
a notification, Safari would grab the media keys to just replay the
tweet sound; the only way to get them back to iTunes was to click the
mouse—ugh!)UsingAfter installing, you will have a commandmediakeyenabler. Run it.
End it with Ctrl-C or sending the equivalent signal to the PID.Known LimitationsI don’t use spotify, so this only supports iTunes.I don’t ever want it to start iTunes, so it only does anything if
iTunes is already running.I’ve never wanted to fast forward or rewind, only restart the track
or go to the next one (in fact I didn’t know FF and rewind were
possible) so this program doesn’t do that.No GUI (at least not yet), it’s just a command line program.Known Limitations in the OriginalThere are some known limitations in the original that this project
inherites due to the basic design using a CGEventTap. Notably, certain
operations cannot be done when the program is running:Changing the Safari search engine (issue 43)Enabling kernel extensions (issue 42)If those are fixed in the original, they might get fixed here.Changes0.0.2 (2020-04-09)Updates to work an macOS Catalina.Add support for Python 3.8.0.0.1 (2018-07-22)Initial release.
Package: pyhiir
pyhiiruse hiir (https://github.com/unevens/hiir) library in pythonHIIR is a DSP (digital signal processing) library in C++ which allows:Changing the sampling rate of a signal by a factor of 2Obtaining two signals with a pi/2 phase difference (Hilbert Transform)Pyhiir offers wrappers for the hiir methods in python.Usage ExamplesHilbert Transformerfrompyhiir.hiirimporthiirfrompyhiir.allpassimportHilbertimportmatplotlib.pyplotaspltimportnumpyasnpfromscipyimportsignalif__name__=='__main__':h=hiir()# compute filter coeficients for 40db attenuation# and transition band of 10% of the sampling frequencyc=h.compute_coefs(40,.1)# create a hilbert transformer with allpass chainsh=Hilbert(c)fi,fq=h.get_transfer_function()wi,hi=signal.freqz(fi.b,fi.a,fs=2)wq,hq=signal.freqz(fq.b,fq.a,fs=2)# Plot the frequency responseplt.plot(wi,(np.angle(hi)),color='r')plt.plot(wq,(np.angle(hq)),color='g')# plt.plot(wi, (np.angle(hi) - np.angle(hq)), color='y')plt.ylabel('Phase [rad]',color='r')plt.xlabel('Frequency')plt.tick_params('y',colors='r')plt.show()plt.plot(wi,np.abs(hi),color='r')plt.plot(wq,np.abs(hq),color='g')plt.xlabel('Frequency')plt.ylabel('Magnitude [db]')plt.ylim(0.95,1.05)plt.show()Decimator Filter:frompyhiir.hiirimporthiirfrompyhiir.allpassimportLowPassimportmatplotlib.pyplotaspltimportnumpyasnpfromscipyimportsignalif__name__=='__main__':h=hiir()# compute filter coeficients for 120db attenuation# and transition band of 1% of the sampling frequencyc=h.compute_coefs(120,.01)# create an half-band low pass filter with allpass chainsf=LowPass(c)# Now get the filter transfer function for plottingff=f.get_transfer_function()w,h=signal.freqz(ff.b,ff.a)plt.grid(True)plt.xlabel("Normalized frequency")plt.ylabel("Amplitude [dB]")plt.plot(w/np.pi,20*np.log10(abs(h)),'b')plt.show()
Package: pyhilite
##Introduce
pyhilite is Python3 binding of GNU Source Highlight.given a source file, produces a document with syntax highlightingFor more details, please refer to [src-highlite](https://www.gnu.org/software/src-highlite/)##Dependency
pyhilite depends on the GNU Source Highlight C++ highlight library.for Fedora22# dnf install source-highlight-develfor Ubuntu15.04# apt-get install libsource-highlight-devthe package name for other linux distributions should be similar.##Installationpip3 install pyhilite##Sample>>> import pyhilite
>>> h = pyhilite.SourceHighlight(outlang="html")
>>> h.highlight(input='hello.c')
'<!-- Generator: GNU source-highlight 3.1.7\nby Lorenzo Bettini\nhttp://www.lorenzobettini.it\nhttp://www.gnu.org/software/src-highlite -->\n<pre><tt><b><font color="#000080">#include</font></b> <font color="#FF0000">&lt;stdio.h&gt;</font>\n\n\n<font color="#009900">int</font> <b><font color="#000000">main</font></b><font color="#990000">(</font><font color="#009900">int</font> argc<font color="#990000">,</font> <b><font color="#0000FF">const</font></b> <font color="#009900">char</font> <font color="#990000">*</font>argv<font color="#990000">[])</font>\n<font color="#FF0000">{</font>\n    <b><font color="#000000">printf</font></b><font color="#990000">(</font><font color="#FF0000">"hello world!</font><font color="#CC33CC">\\n</font><font color="#FF0000">"</font><font color="#990000">);</font>\n    <b><font color="#0000FF">return</font></b> <font color="#993399">0</font><font color="#990000">;</font>\n<font color="#FF0000">}</font>\n</tt></pre>\n'
>>> h.highlight(input='hello.c', output='output.html')##Screenshot
![hicat.py](https://github.com/wiiiky/pyhilite/blob/master/screenshot.png)
Package: pyhill
PyHillEasily modify the readwritememory of Brick HillInstallationIn Command Prompt, run the commandpip install pyhill.You must also install Pymem with the commandpip install pymem.How to UseThe first thing you should always do is use the functionattach(). This attaches PyHill to Player.exe.Modify MemoryTo modify memory, use themodify(variable, value)function.Here is an example:importpyhill.pyhillasphph.attach()#Attach PyHill to the gameph.modify("x",2.5)#Set your x position to 2.5This script attaches PyHill to the game and sets the player's x position to 2.5.Get MemoryTo get memory, read thegetclass. Make sure to update thegetclass with the functionupdateGet(only)Here is an example:importpyhill.pyhillasphph.attach()#Attach PyHill to the gamewhileTrue:ph.updateGet("x")#Update the x variable in the get class (if argument is left blank it will update every variable)print(ph.get.x)#Print the player's current x positionMemory you can accessx- The player's x positiony- The player's y positionz- The player's z positionfov- The player's field of viewrotation- The player's character rotationzoom- The player's camera zoom distancefps- The player's current frames per second(can only be read and not modified)jump- The player's current jump heightMore may be added in the future.Custom (Advanced)You can also modify custom memory pointers. This can be done using themodifyCustom(baseaddress, offsets, datatype, value)function.Here is an example:importpyhill.pyhillasphph.attach()ph.modifyCustom("0x0123456","0x0, 0x1, 0x2, 0x3, 0x4","double",10)
Package: pyhim
pyHiMpyHiMimplements the analysis of multiplexed DNA-FISH data, as described in ourHi-M paper.DocumentationFind the full documentation inReadtheDocsandtutorialsillustrating the main steps of pyHiM analysis pipeline.To install, please follow the instructionshere.After you installedpyHiM, you may want to consult aguideon how to use it.If you are a developer, follow instructionshere.PublicationsFor more information on Hi-M, please see the following resources:Hi-M protocolHi-M methodA recent Hi-M application usingpyHiMDependenciespyHiMwas entirely written in python and makes extensive use of the following packages:Astropyscikit-imagestarDistpyHiMalso uses functions fromBig-FISHto perform Gaussian 3D fits.SupportIf you have any question relative to the repository, please open an issue. You can also contact Marcelo Nollmann.LicensepyHiMis licensed under GPLv3 (see LICENSE.txt).
Packages used bypyHiMare licensed under the revised 3-clause BSD style license.Check COPYRIGHT.txt for a list of authors and the git history for their individual contributions.pyHiMis a software package developed by theNollmann Labat theCenter of Structural Biology, a department of theCNRSand theINSERM.
Package: pyhip
#PyHIPA Python interface to Hip which is a package for manipulating
unstructured computational grids and their associated datasets.RequirementsPyHIP comes with a minimal requirement for Python version that should be at least3.6InstallationPyHIP can be installed directly in a Python 3 environnement frompipby running the command:pipinstallpyhipThis command will install PyHIP and all its dependencies (if needed). Once this step is over you can check the installation by executing the following command:python3-c"import pyhip"UsagePlease refer to the PyHIP project documentation for further details.#CreditsAuthor:Jens-Dominik Muellerj.mueller@qmul.ac.ukcontributor(s) :Gabriel Staffelbachgabriel.staffelbach@cerfacs.frAimad Er-raiyerraiya@cerfacs.fr#LICENCE
This software is governed by the CeCILL-B license under French law and
abiding by the rules of distribution of free software. You can use,
modify and/ or redistribute the software under the terms of the CeCILL-B
license as circulated by CEA, CNRS and INRIA at the following URL
"http://www.cecill.info".As a counterpart to the access to the source code and rights to copy,
modify and redistribute granted by the license, users are provided only
with a limited warranty and the software's author, the holder of the
economic rights, and the successive licensors have only limited
liability. The users must also reference the original authors on each
use/communicaiton/publication.In this respect, the user's attention is drawn to the risks associated
with loading, using, modifying and/or developing or reproducing the
software by the user in light of its specific status of free software,
that may mean that it is complicated to manipulate, and that also
therefore means that it is reserved for developers and experienced
professionals having in-depth computer knowledge. Users are therefore
encouraged to load and test the software's suitability as regards their
requirements in conditions enabling the security of their systems and/or
data to be ensured and, more generally, to use and operate it in the
same conditions as regards security.The fact that you are presently reading this means that you have had
knowledge of the CeCILL-B license and that you accept its terms.