Saravanan666/pypi-org huggingface dataset:
Package: pyhll
CI status:pyhll can be used to compute cardinality, i.e. the unique number of elements in some set using HyperLogLog.
This library is a thin python wrapper around HyperLogLog implementation inhttps://raw.github.com/armon/hlldInstallingpyhll can be installed via pypi:pip install pyhllBuildingGet the source:git clone https://github.com/blackwithwhite666/pyhll.gitCompile extension:python setup.py build_ext --inplaceUsagefrom pyhll import Cardinality
c = Cardinality()
c.add(b'foo')
assert 1 == len(c)
c.add(b'bar')
assert 2 == len(c)
c.add(b'bar')
assert 2 == len(c)
c.update([b'bar', b'buzz'])
assert 3 == len(c)Running the test suiteUse Tox to run the test suite:toxReferencesHere are some related works which we make use of:HyperLogLog in Practice: Algorithmic Engineering of a State of The Art Cardinality Estimation Algorithm :http://research.google.com/pubs/pub40671.htmlHyperLogLog: The analysis of a near-optimal cardinality estimation algorithm :http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.142.9475Changelog0.2.4Add dump and load support;0.2.3Add support for fluent iface;0.2.1-0.2.2Fix build on CentOS;0.2.0Add ability to union sets;Add serialization support;0.1.1Exclude autoconf artifacts from sdist.0.1.0 (initial release)Prototype.
Package: pyhlld
pyhlld=========pyhlld provides a Python client library to interface withhlld servers.Features--------* Provides a simple API for using hlld* Command pipelining to reduce latencyInstall-------Download and install from source:python setup.py installExample------Using pyhlld is very simple:from pyhlld import HlldClient# Create a client to a local hlld server, default portclient = HlldClient("localhost")# Get or create the foobar setfoobar = client.create_set("foobar")# Set a key and check the sizefoobar.add("Test Key!")assert foobar.info()["size"] == 1Using pipelining is straightforward as well:from pyhlld import HlldClient# Create a client to a local hlld server, default portclient = HlldClient("localhost")# Get or create the pipe setpipe = client.create_set("pipe").pipeline()# Chain multiple add commandsresults = pipe.add("foo").add("bar").add("baz").execute()assert results[0]assert results[1]assert results[2]
Package: pyhlml
pyhlmlPython3 wrapper for the HLML libraryGetting StartedThe pyhlml library is an python API wrapper for the Synapse HLML library, documented here:https://docs.habana.ai/en/latest/API_Reference_Guides/HLML_API_Reference.htmlRequirementsPython3Habana-enabled device ( inc. Drivers/Firmware )Synapse version 1.0.1-81 or laterInstall - PIP$pip3install-egit+https://github.com/HabanaAI/pyhlml.git#egg=pyhlmlBasic Usageimportpyhlml# Initialize the librarypyhlml.hlmlInit()# Get total number of devices in the systemdevice_count=pyhlml.hlmlDeviceGetCount()# For each device print utilizationforiinrange(device_count):device=pyhlml.hlmlDeviceGetHandleByIndex(i)print(f"Device{i}Utilization:{pyhlml.hlmlDeviceGetUtilizationRates(device)}# Shutdownpyhlml.hlmlShutdown()VersionsThis wrapper shadows the synapse release versions and uses the scheme$release-$buildwhere release is the synapse release and build is the build of this repo ( 0 indexed ).
Package: pyhman
pyHmanThis is a Python library for controlling and communicating with the Hman device. This library provides high-level interfaces to set and get various parameters of hman, such as motor positions, modes, currents, and so on.InstallationThis package uses setuptools for distribution. You can install it via pip:pipinstallpyHmanor directly from the source code:gitclonehttps://github.com/Aightech/pyHman.gitcdpyHman
pythonsetup.pyinstallRequirementsPython 3.6+socket(from the Python Standard Library)logging(from the Python Standard Library)UsagefromHmanimportHman# Create a Hman instancehman=Hman(3,True)# '3' denotes the number of motors, 'True' enables verbose logging# Connect to the hmanhman.connect('127.0.0.1')# Use the appropriate IP address for your setup# Set the mode of the motorshman.set_mode('position')# Other available modes: 'current', 'velocity', 'impedance'# Set the articular position of the motorspositions=hman.set_articular_pos(0,40,30)# Enter the desired positions for each motor# Print the positionsprint(positions)Features and FunctionsThe Hman class provides the following main features:connect(address: str, port: int = 5000): Connect to the hman using the given IP address and port.disconnect(): Disconnect from the hman.set_mode(mode: str): Set the mode of the hman (available modes are: 'position', 'current', 'velocity', 'impedance').set_cartesian_pos(posx: float, posy: float, posz: float): Set the cartesian position of the hman.set_articular_pos(pos1: float, pos2: float, pos3: float): Set the articular position of the hman.set_motors_current(cur1: float, cur2: float, cur3: float): Set the current of the hman's motors.turn_off_current(): Turn off the current of the hman's motors.get_pos(): Get the current position of the hman's motors.ContributionsFeel free to submit a pull request if you want to contribute to this project.LicenseThis library is distributed under the MIT License. Please see the LICENSE file for more information.SupportIf you have any questions or run into any problems, please open an issue in the GitHub repository.
7DisclaimerUse this software at your own risk. The authors are not responsible for any damage that may be caused directly or indirectly through the use of this software.
Package: pyhmc
This package is a straight-forward port of the functionshmc2.mandhmc2_opt.mfrom theMCMCstuffmatlab
toolbox written by Aki Vehtari. The code is originally based on the
functionshmc.mfrom thenetlab
toolboxwritten by Ian
T Nabney. The portion of algorithm involving “windows” is derived from
the C code for this function included in theSoftware for Flexible
Bayesian
Modelingwritten by Radford Neal.The original Pythonportwas
made by Kilian Koepsell, and subsequently modernized by Robert T.
McGibbon.AuthorsKilian Koepsellkilian@berkeley.eduRobert T. McGibbonrmcgibbo@gmail.comThis software is distributed under the BSD License (see LICENSE file).
Package: pyhmc-duplicate
This package is a straight-forward port of the functionshmc2.mandhmc2_opt.mfrom theMCMCstuffmatlab
toolbox written by Aki Vehtari. The code is originally based on the
functionshmc.mfrom thenetlab
toolboxwritten by Ian
T Nabney. The portion of algorithm involving “windows” is derived from
the C code for this function included in theSoftware for Flexible
Bayesian
Modelingwritten by Radford Neal.The original Pythonportwas
made by Kilian Koepsell, and subsequently modernized by Robert T.
McGibbon.AuthorsKilian Koepsellkilian@berkeley.eduRobert T. McGibbonrmcgibbo@gmail.comThis software is distributed under the BSD License (see LICENSE file).
Package: pyhmer
PyhmerAboutUse pyhmer to generate a rhyming noun + adjective pair. Useful for giving database objects human readable names. As of right now only animal + adjective pairs can be generated.Package SourceTo see how the data was compiled see thedata_workdirectoryInstallpip install pyhmerUsage>>>import pyhmer
>>>animal_rhyme = pyhmer.get_animal_rhyme()
>>>print(animal_rhyme)

'minute newt'

>>>for i in range(10):
>>>    print(pyhmer.get_animal_rhyme())

'allegro buffalo'
'insane crane'
'statuary cassowary'
'starry wallaby'
'preteen wolverine'
'clear deer'
'illusionary cassowary'
'flush thrush'
'maroon baboon'
'skew kangaroo'SourcesAdjectivesWordnet Lexical DatabaseAnimalsWikipedia List of Animals NamesWord RhymingCarnegie Mellon University Pronouncing Dictionarypronouncingpy python package
Package: pyhml
pyHMLPython HML parserFree software: LGPL 3.0Documentation:https://pyhml.readthedocs.io.Jupyter NotebookFeaturesimportpyhmlhml_file="hml_example.xml"hmlparser=pyhml.HmlParser()hml=hmlparser.parse(hml_file)outdir='output/directory'# Print out each subject in fasta formathml.tobiotype(outdir,dtype='fasta',by='subject')# Print out the full HML file in IMGT dat file formathml.tobiotype(outdir,dtype='imgt',by='file')# Get pandas DF from HML objectpandasdf=hml.toPandas()print(pandasdf)IDLocusglstringdbversion\01367-7150-8HLA-AHLA-A*01:01:01+HLA-A*24:02:013.14.011367-7150-8HLA-AHLA-A*01:01:01+HLA-A*24:02:013.14.021367-7150-8HLA-AHLA-A*01:01:01+HLA-A*24:02:013.14.031367-7150-8HLA-AHLA-A*01:01:01+HLA-A*24:02:013.14.041367-7150-8HLA-BHLA-B*08:01:01+HLA-B*57:01:013.14.051367-7150-8HLA-BHLA-B*08:01:01+HLA-B*57:01:013.14.061367-7150-8HLA-BHLA-B*08:01:01+HLA-B*57:01:013.14.071367-7150-8HLA-BHLA-B*08:01:01+HLA-B*57:01:013.14.081367-7150-8HLA-CHLA-C*06:02:01+HLA-C*07:01:013.14.091367-7150-8HLA-CHLA-C*06:02:01+HLA-C*07:01:013.14.0101367-7150-8HLA-CHLA-C*06:02:01+HLA-C*07:01:013.14.0111367-7150-8HLA-CHLA-C*06:02:01+HLA-C*07:01:013.14.0121367-7150-8HLA-DPB1HLA-DPB1*02:01:02+HLA-DPB1*04:01:013.14.0131367-7150-8HLA-DPB1HLA-DPB1*02:01:02+HLA-DPB1*04:01:013.14.0141367-7150-8HLA-DRB1HLA-DRB1*03:01:01+HLA-DRB1*07:01:013.15.0151367-7150-8HLA-DRB1HLA-DRB1*03:01:01+HLA-DRB1*07:01:013.15.0sequence0TTCCTGGATACTCACGACGCGGACCCAGTTCTCACTCCCATTGGGT...1TTCCCGTCAGACCCCCCCAAGACACATATGACCCACCACCCCATCT...2TTCCTGGATACTCACGACGCGGACCCAGTTCTCACTCCCATTGGGT...3GTGCCTGTGTCCAGGCTGGTGTCTGGGTTCTGTGCTCTCTTCCCCA...4CCATGGTGAGTTTCCCTGTACAAGAGTCCAAGGGGAGAGGTAAGTG...5GGCCTCTGCGGAGAGGAGCGAGGGGCCCGCCCGGCGAGGGCGCAGG...6CCATGGTGAGTTTCCCTGTACAAGAGTCCAAGGGGAGAGGTAAGTG...7GGCCTCTGCGGAGAGGAGCGAGGGGCCCGCCCGGCGAGGGCGCAGG...8AGGGATCAGGACGAAGTCCCAGGTCCCGGACGGGGCTCTCAGGGTC...9CGCATCCCCACTTCCCACTCCCATTGGGTGTCGGATATCTAGAGAA...10AGGGATCAGGACGAAGTCCCAGGTCCCGGACGGGGCTCTCAGGGTC...11CGCATCCCCACTTCCCACTCCCATTGGGTGTCGGATATCTAGAGAA...12CCAATTGGCCAATTGGCCAATTGGCCAATTGGCCAATTGGCCAATT...13CCAATTGGCCAATTGGCCAATTGGCCAATTGGCCAATTGGCCAATT...14CATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCA...15CATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCA...InstallpipinstallpyhmlCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.5 (2017-04-16)Improved documentationFixed issues with parsing HML files with NMDP-CORRECTION0.0.4 (2017-04-15)Fixed dependency issues.Moved tobiotype to HML object.Moved toDF to HML object and renamed toPandas()Added tests and linked to travis.ci0.0.3 (2017-04-14)Added the ability to parse .gz filesAdded the ability to parse HML files with bad tags.0.0.2 (2017-11-14)Fixed issues with parsing HML files with missing data0.0.1 (2017-10-19)First release on PyPI.
Package: pyHMSA
pyHMSApyHMSA is a pure Python implementation of the MSA / MAS / AMAS HyperDimensional
Data File (HMSA, for short) specifications.
This file format is intended to be a common exchange format for microscopy and
microanalysis data.
More information about the file format and its specifications can be foundhere.The library is designed to be minimalist, leaving post-processing of the data
to the user’s script.
The only dependency of pyHMSA is toNumPy, in order
to represent the multi-dimensional data.pyHMSA is written to support both Python 3.6+.The library is provided under the MIT license.More information can be found at the website:http://pyhmsa.readthedocs.orgThe most current development version is always available from our
GitHub repository:https://github.com/pyhmsa/pyhmsaRelease notes0.2Drop Python 2 supportContributors@nkipi@silrichterLicenseThe library is provided under the MIT license.pyxraywas partially developed as part of the doctorate thesis project of
Philippe T. Pinard at RWTH Aachen University (Aachen, Germany) under the
supervision of Dr. Silvia Richter.Copyright (c) 2015-2016/06 Philippe Pinard and Silvia RichterCopyright (c) 2016/06-2019 Philippe Pinard
Package: pyHMSA-gui
Provides graphical components to construct graphical interface based on the
Python implementation of theHMSAfile format,pyHMSA.The components are designed in Qt using the libraryPySideand requiresmatplotlibto run.The library is provided under the MIT license.More information can be found at the website:http://pyhmsa.readthedocs.orgThe most current development version is always available from our
GitHub repository:https://github.com/pyhmsa/pyhmsa-guipyHMSA-gui was developed as part of the doctorate thesis project of
Philippe T. Pinard at RWTH Aachen University (Aachen, Germany) under the
supervision of Dr. Silvia Richter.
Package: pyHMSA-matlab
Exporter forpyHMSAof HMSA data
to MATLAB.matfiles.The library is provided under the MIT license.More information can be found at the website:http://pyhmsa.readthedocs.orgThe most current development version is always available from our
GitHub repository:https://github.com/pyhmsa/pyhmsa-matlabpyHMSA-matlab was developed as part of the doctorate thesis project of
Philippe T. Pinard at RWTH Aachen University (Aachen, Germany) under the
supervision of Dr. Silvia Richter.
Package: pyHMSA-tiff
Exporter forpyHMSAof HMSA data
to TIFF images.The library is provided under the MIT license.More information can be found at the website:http://pyhmsa.readthedocs.orgThe most current development version is always available from our
GitHub repository:https://github.com/pyhmsa/pyhmsa-tiffpyHMSA-tiff was developed as part of the doctorate thesis project of
Philippe T. Pinard at RWTH Aachen University (Aachen, Germany) under the
supervision of Dr. Silvia Richter.
Package: pyhn
Hacker news in your terminal.Don’t be worry about your IP. Pyhn is not aggressive, it uses cache.Cache managerCustomize all the colorsCustomize all the keybindsDefaultvim-likekeybindingsCompatible with Top, Ask, Show and Job storiesAuto refresh supportPlay nice with tmux and screen (over ssh too!)Open storiers in your commandline web browserMouse supportEasily installableEasily hackableUltra fastPython 2 and 3MIT licenseInstallationUsing pip:pip install pyhnRun it:pyhnArch Linuxpyhnis available in theAUR.UsageUse help for all key bindings:h,?: Print help popupConfigurationBy default, configuration file is in your$HOME/.pyhn/config.
You can set key bindings, colors and more.This is an example file:[keybindings]
open_story_link = S,enter
show_story_link = s
open_comments_link = C
show_comments_link = c
open_user_link = U
show_user_link = u
up = j
down = k
page_up = ctrl d
page_down = ctrl u
first_story = g
last_story = G
refresh = r,R
reload_config = ctrl r,ctrl R

newest_stories = n
top_stories = t
best_stories = b
show_stories = d
show_newest_stories = D
ask_stories = a
jobs_stories = J

[settings]
cache = /home/socketubs/.pyhn/cache
cache_age = 5
# Refresh interval in minutes (default: 5. minimum: 1)
refresh_interval = 5
browser_cmd = __default__

[colors]
body = default|
focus = white,bold|dark cyan
footer = black|light gray
footer-error = dark red,bold|light gray
header = black,bold|light gray
title = dark red,bold|light gray
help = black,standout|dark cyanSettingscache_ageis a minute indicator which say toCacheManagerwhen cache is outdatedbrowser_cmdis a bash command which will be use to open linksExamples:browser_cmd = lynx __url__
browser_cmd = __default__
browser_cmd = w3m __url__
browser_cmd = echo "[INFO] Open with w3m: __url__" >> /tmp/pyhn.log && w3m __url__Key bindingsYou can set different key bindings for same action with a comma separator.
Take a look aturwidinputmanual.ColorsColors options are designed like that:foreground|background|monochrome.foregroundcolors:  ‘default’ (use the terminal’s default foreground), ‘black’, ‘dark red’, ‘dark green’, ‘brown’, ‘dark blue’, ‘dark magenta’, ‘dark cyan’, ‘light gray’, ‘dark gray’, ‘light red’, ‘light green’, ‘yellow’, ‘light blue’, ‘light magenta’, ‘light cyan’, ‘white’settings: ‘bold’, ‘underline’, ‘blink’, ‘standout’backgroundcolors: ‘default’ (use the terminal’s default background), ‘black’, ‘dark red’, ‘dark green’, ‘brown’, ‘dark blue’, ‘dark magenta’, ‘dark cyan’, ‘light gray’monochromesettings: ‘bold’, ‘underline’, ‘blink’, ‘standout’For more informations you can take a look aturwidmanual.LicenseLicense isMIT. SeeLICENSE.
Package: pyhnefatafl
PyHnefatafl - A Python library for the Hnefatafl board gameAllowing you to play the game of Hnefatafl in Python. Based onchess:https://pypi.org/project/chess/ProgressBasic game logic of 11x11 HnefataflTests for the game's rulesExpand tests to cover more rules / variantsA couple of variant gamesBetter configuration of variant games (Brandubh, Tablut, Ard Rí, etc.)Define variant games in a config file or classSplit game rules from board rules (e.g. 11x11, 9x9, 7x7)
Package: pyhoe
Like Ruby’sHoe, pyhoe aimsto help developers by providing a basic project skeleton.
Projects created with pyhoe’s default settings include the following:A basic directory structure with templates for README, LICENSE,setup.py,.gitignore, and other
ubiquitous project files.Avirtualenvfor the new
project.Automated tests usingNosy,
which is built uponnose.
Mac OSX users will find a nose plugin calledSneazrto display Growl notifications on tests results.Tox, for testing
across multiple Python environments.For more information, check out therepository on Github,
or theonline documentation.
Package: pyhogan
Mustache to javascript compilerMustache to javascript compiler written in python. It is based on
twitter hogan.js compilerhttp://twitter.github.com/hogan.js/Hogan.Templateis still required for rendering.InstallationInstall virtualenv:$ wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py
$ python2.7 ./virtualenv.py --no-site-packages venvClone pyhogan from github and then install:$ git clone git://github.com/fafhrd91/pyhogan.git
$ cd pyhogan
$ ../venv/bin/python setup.py developCompile your mustache templates:$ ../venv/bin/pyhogan template.mustache

new Hogan.Template(function(c,p,i){...}TestingNode.js is required for tests:$ cd pyhogen/spec/
$ ../../venv/python ./mustache_spec.pyRequirementsPython 2.6 and upHogan.js 1.0.5CHANGES0.2 (2012-02-09)Fixed setup.py0.1 (2012-02-09)Initial release
Package: pyholaclient
PyHolaClientA HolaClient API Wrapper using Python!Special Thanks to The HolaClient Team!HolaClient's GithubCR072's Github (Main Dev)Installation
To install just runpipinstallpyholaclientUsageSetting up ClientfrompyholaclientimportHolaClientclient=HolaClient("https://foo.bar","foo")Getting User's HCIDfrompyholaclientimportHolaClientclient=HolaClient("https://foo.bar","foo")hcid=client.user_hcid(1000000000000000)# <= Discord IDprint(hcid)Getting User InfofrompyholaclientimportHolaClientclient=HolaClient("https://foo.bar","foo")hcid=1000user=client.user_info(hcid)print(user.email)print(user.first_name)print(user.last_name)print(user.username)print(user.id)print(user.root_admin)# <== True if Admin# And many more (Read pyholaclient/Classes/user.py)There are many moreBut for the sake of simplicity. Head to our Docs (WIP)
Package: py-holiday-calendar
py_holiday_calendaris a Python package containing methods to manipulate date columns of pandas dataframes
adjusting for business days and holidays.UsageJust run the following snippet in your python env and start using the package.pipinstall-vpy-holiday-calendarDocsYou can find the docshere.Exampleimportpandasaspdfrompy_holiday_calendarimportpy_holiday_calendarascheck# Making a dummy dataframedf={'day':['1/1/2018','4/8/2019','12/13/2019','1/2/2019'],'temp':[44,45,87,66],'str':['Brake','Data','Gimp','data'],'drake':['eminem','marshall','drogon','eminem'],'day1':['1/5/2018','4/12/2019','12/31/2019','1/8/2019'],}df=pd.DataFrame(df)# Explicitly conveerting the columns to datetime (with which the package works)df['day']=pd.to_datetime(df['day'])df['day1']=pd.to_datetime(df['day1'])# Pass in the arguments to cal diff between two date columnscheck.calc_diff_with_holidays(df,'day','day1','new_date')print(df)# Can also pass in custom business days as well as holidayscheck.calc_diff_with_holidays(df,'day','day1','new_date',workdays=[MO,TU,WE,TH])print(df)# Add custom business days to the provided columncheck.add_bus_days_with_holidays(df,'day','temp',1)print(df)To-DosAdd remaining methods.Add the tests.
Package: pyhoma
Deprecation Noticepyhomais deprecated. Please usepyoverkiz1.0 which is backwards compatible. Seehttps://github.com/iMicknl/python-overkiz-api.Somfy TaHoma / OverKizAn updated and async version of the originaltahoma-apiby@philklei. The aim of this wrapper is to offer an easy to consume Python wrapper for the internal API's used by tahomalink.com, or other vendors which use the OverKiz platform.Somfy TaHoma has an official API, which can be consumed via theSomfy-open-api. Unfortunately only a few device classes are supported via the official API, thus the need for this wrapper.This package is written for the Home Assistantha-tahomaintegration, but could be used by any Python project interacting with Somfy TaHoma devices.InstallationpipinstallpyhomaGetting startedimportasyncioimporttimefrompyhoma.constimportSUPPORTED_SERVERSfrompyhoma.clientimportTahomaClientUSERNAME=""PASSWORD=""asyncdefmain()->None:asyncwithTahomaClient(USERNAME,PASSWORD,server=SUPPORTED_SERVERS["somfy_europe"])asclient:try:awaitclient.login()exceptExceptionasexception:# pylint: disable=broad-exceptprint(exception)returndevices=awaitclient.get_devices()fordeviceindevices:print(f"{device.label}({device.id}) -{device.controllable_name}")print(f"{device.widget}-{device.ui_class}")whileTrue:events=awaitclient.fetch_events()print(events)time.sleep(2)asyncio.run(main())DevelopmentInstallationFor Linux, installpyenvusingpyenv-installerFor MacOS, runbrew install pyenvDon't forget to update your.bashrcfile (or similar):export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"Install the requireddependenciesInstallpoetry:curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | pythonClone this repositorycd python-tahoma-apiInstall the required Python version:pyenv installInit the project:poetry installRunpoetry run pre-commit installPyCharmAs IDE you can usePyCharm.Using snap, runsnap install pycharm --classicto install it.For MacOS, runbrew cask install pycharm-ceOnce launched, don't create a new project, but open an existing one and select thepython-tahoma-apifolder.Go toFile | Settings | Project: nre-tag | Project Interpreter. Your interpreter must look like<whatever>/python-tahoma-api/.venv/bin/python