Saravanan666/pypi-org huggingface dataset:
Package: python-heideltime-krypton
Python-HeidelTimeThis is a python wrapper for the multilingual temporal tagger HeidelTime.For more information about this temporal tagger, please visit :https://github.com/HeidelTime/heideltimeHeideltime needs a Part Of Speech Tagger, by default it uses TreeTagger :http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/.
This repo includes TreeTagger scripts for Mac and Linux. Windows users will have to download the appropriate scripts from the TreeTagger home page.DemoClone the current github repo:git clone https://github.com/amineabdaoui/python-heideltimeInstall its requirements:pip install -r requirements.txtCreate a python file in the same directory with the following code:importHeidelTimehw=HeidelTime.HeidelTimeWrapper('english')hw.parse('Neil Armstrong was born in 1930')Future WorkEncapsulate the returned tagged string in a python objectFind a way to install the appropriate POS tagger files according to the user OS.Package all the necessary parts in the same python package and release it on PyPi.Pull requestsare welcome to improve this wrapper (which is in an early stage).
Package: python-helpers
Python HelpersPython Helpers contains reusable functions for routine automation.Free software: MIT licenseDocumentation:https://and1er-python-helpers.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.3.0 (2019-08-27)The first helper is added:python_helpers.quote_line()!Nowmake testworks as expected.Changed Read the Docs link:https://and1er-python-helpers.readthedocs.io.0.2.x (2019-08-27)Deployment practicing.0.1.0 (2019-08-27)First release on PyPI.
Package: python-helper-utils
This is the description file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: pythonhere
Hereis theKivybased app to run Python code from theJupytermagic %there.Hereis a server part with the GUI interface. It could be Android, Raspberry Pi, some other remote device that being debugged.And%thereis a client - Jupyter magic command to run code interactively on remote device.This app could serve as a Python Kivy playground, for dynamic code execution from the PC.Project documentation:https://herethere.meInstall on AndroidApp is available onGoogle Play.Ready-to-usePythonHereAPKs are available in theReleasessection.For a list of installed Python packages, see:buildozer.spec.Quick Start with DockerDocker image is based onJupyter Docker Stacks, and includes installedPythonHerewith usage examples.Example command to start the Docker container:docker run \
       --rm \
       -p 8888:8888 \
       -v "$(pwd)/work":/home/jovyan/work \
       herethere/pythonhere:latestCommand will expose the Jupyter Notebook server on host port 8888. Jupyter logs appear in the terminal and include an URL to the notebook server:http://127.0.0.1:8888/?token=… . Visiting this URL in a browser loads the Jupyter Notebook dashboard page.Files from the directoryworkinside container, will be available in the host directory with the same name:work.Run with Docker ComposeCommands to run with Docker Compose, in the source directory::cp docker-compose.yml.tmpl docker-compose.yml
docker-compose upRun locallyCommands to run locally:pip install pythonhere jupyter
jupyter notebookBuild Android appTo build withBuildozer, run in the source directory:buildozer android debugRelated resourcesKivy Remote Shell: Remote SSH+Python interactive shell applicationherethere: Library for interactive code execution, based on AsyncSSHAsyncSSH: Asynchronous SSH for PythonBuildozer action: GitHub action that is used to build Android APK with Buildozer
Package: python-heritrix
python-heritrixA simple wrapper around the Heritrix 3.x API:https://webarchive.jira.com/wiki/display/Heritrix/Heritrix+3.x+API+GuideDeveloped in April 2012 against Heritrix 3.1.0 at GWU Libraries in
Washington, DC, USA.known issuesUbuntu versions later than 10.04 LTS ship with an openssl version that
leads to the SSL error noted in the API guide (link above).  This does
not occur with 10.04 LTS.
Package: python-hessian
python-hessianis a Python implemention of Hessian, a binary web services
protocol. It supports theHessian 1.0.2 specificationand theHessian 2.0 Serialization Protocol. The library
is a fork ofmustaine, which is no
longer maintained. It provides a standard HTTP-based client
as well as a general-purpose serialization library.UsageUsingpyhessian.clientTesting againstCaucho’sreference service:frompyhessian.clientimportHessianProxyservice=HessianProxy("http://hessian.caucho.com/test/test")printservice.replyDate_1()SourceUp-to-date sources and documentation can always be found at thepython-hessian
GitHub site.
Package: python-hhc-n10
python-hhc-n10What is this lib ?This library is made to communicate with HHC-N10 devices. They are relays that can be toggled via ethernet (TCP/IP).How to use the libfromhhcn10importhhcn10h=hhcn10.HHCN10()h.set_relay(True)print('The relay is: '+str(h.read_relay()))time.sleep(1)h.set_relay(False)print('And now the relay is: '+h.read_relay())Please note that the implementation of their TCP stack is finnicky and only accepts 5 parallel connections. If you try to open too many sockets at once the relay will hang for some time.Default paramsThe relay default's IP is192.168.0.105/24. If your computer is not in this same subnet, you'll need to add a static route + a static IP in the same subnet as this relay. You can then change the device's IP using thechange_ip(addr, netmask, gw)method.
Package: python-hiddenmarkov
hiddenmarkovA simple Python library for Hidden Markov Models.This library was created for educational purposes and does not aim to have the most efficient implementation.SetupSimple installationpip install python-hiddenmarkovDevelop versiongitclonehttps://github.com/neosatrapahereje/hiddenmarkov.gitcdhiddenmarkov
pipinstall-e.UsageExample fromWikipediaimportnumpyasnpfromhiddenmarkovimportCategoricalObservationModel,ConstantTransitionModel,HMMobs=("normal","cold","dizzy")observations=("normal","cold","dizzy")states=("Healthy","Fever")observation_probabilities=np.array([[0.5,0.1],[0.4,0.3],[0.1,0.6]])transition_probabilities=np.array([[0.7,0.3],[0.4,0.6]])observation_model=CategoricalObservationModel(observation_probabilities,obs)init_distribution=np.array([0.6,0.4])transition_model=ConstantTransitionModel(transition_probabilities,init_distribution)hmm=HMM(observation_model,transition_model,state_space=states)path,prob=hmm.find_best_sequence(observations,log_probabilities=False)print("Example Wikipedia")print("Best sequence",path)print("Expected Sequence",["Healthy","Healthy","Fever"])print("Sequence probability",prob)print("Expected probability",0.01512)LicenceThe code in this package is licensed under the MIT Licence. For details,
please see theLICENSEfile.
Package: python-hide-my-name
title: python-axelI know how much of a struggle it is to find working proxies. Even the best websites sometimes give you proxies that don't work! So I made python-hide-my-name.
Automatically finds proxies from hidemy.name, tests them, and only gives you the ones that actually work!Free software: MIT licenseDocumentation:https://python-hide-my-name.readthedocs.io.FeaturesTests a single proxy for you!
Fetches as many proxies as you want for you! (Multithreading applied here. So yes it's fast!)
Tests those proxies! (Multithreading applied here as well. A lot less IO bottleneck!)
Returns the ones that do work!CreditsThis package was coded in it's entirety by Aria Bagheri. But you can always contribute if you want! Just fork the project, have your go at it, and then submit a pull request!
Special thanks to hidemy.name. Without their amazing work, this project would not be here!
It is worth mentioning that hidemy.name regularly removes broken proxies from their website and their website is constantly updated with new proxies thanks to their ingenious 'spider robot'.
But between their proxy check intervals, there are proxies breaking and it is simply not feasible for them to update evey second.
That's where this tool comes in handy.
Package: python-Hijri-Umalqurra
Date Api that support Hijri Umalqurra calendar.
Features:
1-Convert Gregorian to Hijri
2-Convert Hijri to Gregorian
3-give the arabic name of the hijri month
4-give the english name of the  gregorian month
5-give the day name in Arabic and English
6-give the current day both in Hijri and Gregorian
Package: python-hilo
python-hilopython-hilo(akapyhilo) is a Python 3.11,asyncio-driven interface to the unofficial
Hilo API from Hydro Quebec. This is meant to be integrated into Home Assistant but can also
be used as a standalone library.Home assistant integration is availablehereTODOType everything: almost done, got a few "type: ignore" to fixLater?Full docstrings and doc generationUnit testingFunctional testingIf anyone wants to contribute, feel free to submit a PR. If you'd like to sync up first, you can
fire me an emailme@dvd.dev
Package: python_hindi
python_hindipython_hindi is a Python library (with command-line utilities) for programming Python in Hindi.
(Haan, Bhai possible hai!)python_hindi runs in Python 3.6+After downloading this library, you can write a script like:# if-else

sankhya = poornank(niwesh("Ek sankhya daalein: "))
yadi (sankhya % 2) == 0:
    bol("{0} sam hai".format(sankhya))
anyatha:
    bol("{0} visam hai".format(sankhya))# while loop

num = 0
jabtak num < 10:
    num += 1
    yadi (num % 2) == 0:
        jaari
    bol(num)#for loop

languages = ['Swift', 'Python', 'Go', 'JavaScript']
pratyek language mein languages:
    bol(language)Name the filekuchbhi.pyhiand run it withpyhi kuchbhi.pyhi.You can also import other.pyhiand.pyfiles from the main file:aayat kuchbhiInstallingTo install with pip, type in the terminal:and for non-errors support :pip install python-hindiThis will create the command-line script:pyhiUsageYou can run pyhi files withpyhi <file>You can start the Hindi Python console with justpyhiExample:pyhi file.pyhi.pyhifile syntax.pyhifile supports Hindi Python syntax (syntax with keywords likeaayat(import)and functions likebol(print))
in addition to normal Python syntax.Use from normal Python file/replYou can use it as a library:To import.pyhifiles into your.pyfile:from python_hindi import create_hook
create_hook(run_module=False, console=False) # without running the main module or starting the repl
import pyhi_module # now you can import .pyhi filesOr to start the REPL from the normal REPL:from python_hindi import create_hook
create_hook(run_module=True, console=True) # *with* starting the repljupyter/ipythonpython-hindisupportsjupyterandipythoninteractive console by IPython extension. To use:Install Jupyter Notebook by:pip install notebookStart Jupyter Notebook by:jupyter notebook.
Then create a new Python 3 by the new button.In the first cell, enter the text%load_ext python_hindiand pressCtrl + Enter.Now you can write Hindi Python in the entire notebook.Dependenciespython-hindi depends on the Python libraries:friendly- for more friendly Hinglish(hindi in roman script) tracebackideas- most of this library is built on this project. It supports easy creation of import hooks and it has asimple examplefor replacing keywords with French keywords[rich] - rich is a Python library for rich text and beautiful formatting in the terminal.ContributeFor all errors, problems, or suggestions, please open aGitHub issueAuthorKaran SinghLicenseThis project is licensed under theBSD-4 License.
Package: python-hipchat
Command Line Tool for HipChatInstallationpip install python-hipchat && hcConfigurationIf your configuration file is not found by thehccommand, it will guide you though creating one. The default configuration is in~/.hipchat.cfg.The configuration file is of the form:[hipchat]
api_token = abc123
room_name = cool_room ; This is the default room alias, one of the room aliases listed below.[rooms]
cool_room = 123[message_sender]
alias = ryan
color = random ; gray, green, purple, red, yellow, randomUsageSimple message sending:hc “Hi, from Python-HipChat”Altering the sender’s name and specifying the room alias:hc –user “Dr. Nick” –room cool_room “Hi, everybody!”
Package: python-hipchat-v1
DescriptionEasy peasy wrapper for theHipChat API v1. Exposes core URI endpoint wrapper and some basic methods for common integrations.DependenciesNone beyond the Python standard library.UsageInstall:pip install python-hipchat-v1Instantiate:import hipchat
hipster = hipchat.HipChat(token=YourHipChatToken)Request a URI endpoint as described in the HipChat API docs:hipster.method(url='method/url/', method="GET/POST", parameters={'name':'value', })Example:# List rooms
hipster.method('rooms/list')

# Post a message to a HipChat room
hipster.method('rooms/message', method='POST', parameters={'room_id': 8675309, 'from': 'HAL', 'message': 'All your base...'})

# Get history from a room
hipster.room_history(room_id='', date=)Changelogv0.3.xAdded shortcut method for listing users (thanks @Raizex)Added shortcut method for finding user by name (thanks @Raizex)Added shortcut method for finding room by name (thanks @Raizex)Added trove classifiers(thanks @ghickman)v0.2.xAdded Python 3 support without losing support for Python 2(thanks @pimterry)Expose timeout for safer synchronous use(thanks @zachsnow)v0.1.xAdded shortcut method for messaging a roomAdded shortcut method for listing rooms
Package: python-hll
python-hllA Python implementation ofHyperLogLogwhose goal is to bestorage compatiblewithjava-hll,js-hllandpostgresql-hll.NOTE:This is a fairly literal translation/port ofjava-hllto Python. Internally, bytes are represented as Java-style bytes (-128 to 127) rather than Python-style bytes (0 to 255).
Also this implementation is quite slow: for example, in JavaHLLSerializationTesttakes 12 seconds to run
while in Pythontest_hll_serializationtakes 1.5 hours to run (about 400x slower).Runs on: Python 2.7 and 3Free software: MIT licenseDocumentation:https://python-hll.readthedocs.ioGitHub:https://github.com/AdRoll/python-hllOverviewSeejava-hllfor an overview of what HLLs are and how they work.UsageHashing and adding a value to a new HLL:from python_hll.hll import HLL
import mmh3
value_to_hash = 'foo'
hashed_value = mmh3.hash(value_to_hash)

hll = HLL(13, 5) # log2m=13, regwidth=5
hll.add_raw(hashed_value)Retrieving the cardinality of an HLL:cardinality = hll.cardinality()Unioning two HLLs together (and retrieving the resulting cardinality):hll1 = HLL(13, 5) # log2m=13, regwidth=5
hll2 = HLL(13, 5) # log2m=13, regwidth=5

# ... (add values to both sets) ...

hll1.union(hll2) # modifies hll1 to contain the union
cardinalityUnion = hll1.cardinality()Reading an HLL from a hex representation ofstorage specification, v1.0.0(for example, retrieved from aPostgreSQL database):from python_hll.util import NumberUtil
input = '\\x128D7FFFFFFFFFF6A5C420'
hex_string = input[2:]
hll = HLL.from_bytes(NumberUtil.from_hex(hex_string, 0, len(hex_string)))Writing an HLL to its hex representation ofstorage specification, v1.0.0(for example, to be inserted into aPostgreSQL database):bytes = hll.to_bytes()
output = "\\x" + NumberUtil.to_hex(bytes, 0, len(bytes))Also see theAPI documentation.DevelopmentSeeContributingfor how to get started building, testing, and deploying the code.History0.0.0 (2019-06-14)Submitted to AdRoll HackWeek.0.1.0 (2019-09-12)First release on PyPI.0.1.1 (2019-09-12)Add missing install_requires: numpy0.1.2 (2019-12-12)Fix alpha_m_squared for m=32:https://github.com/AdRoll/python-hll/pull/20.1.3 (2021-01-22)Fix AttributeError: ‘HLL’ object has no attribute ‘_sparse_probabilistic_storage’:https://github.com/AdRoll/python-hll/pull/4
Package: python-hll2
python-hllA Python implementation ofHyperLogLogwhose goal is to bestorage
compatiblewithjava-hll,js-hllandpostgresql-hll.NOTE:This is a fairly literal translation/port ofjava-hllto Python.
Internally, bytes are represented as Java-style bytes (-128 to 127)
rather than Python-style bytes (0 to 255). Also this implementation is
quite slow: for example, in JavaHLLSerializationTesttakes 12 seconds
to run while in Pythontest_hll_serializationtakes 1.5 hours to run
(about 400x slower).Runs on: Python 2.7 and 3Free software: MIT licenseDocumentation:https://python-hll.readthedocs.ioGitHub:https://github.com/AdRoll/python-hllOverviewSeejava-hllfor an
overview of what HLLs are and how they work.UsageHashing and adding a value to a new HLL:from python_hll.hll import HLL
import mmh3
value_to_hash = 'foo'
hashed_value = mmh3.hash(value_to_hash)

hll = HLL(13, 5) # log2m=13, regwidth=5
hll.add_raw(hashed_value)Retrieving the cardinality of an HLL:cardinality = hll.cardinality()Unioning two HLLs together (and retrieving the resulting cardinality):hll1 = HLL(13, 5) # log2m=13, regwidth=5
hll2 = HLL(13, 5) # log2m=13, regwidth=5

# ... (add values to both sets) ...

hll1.union(hll2) # modifies hll1 to contain the union
cardinalityUnion = hll1.cardinality()Reading an HLL from a hex representation ofstorage specification,
v1.0.0(for example, retrieved from aPostgreSQL
database):from python_hll.util import NumberUtil
input = '\\x128D7FFFFFFFFFF6A5C420'
hex_string = input[2:]
hll = HLL.from_bytes(NumberUtil.from_hex(hex_string, 0, len(hex_string)))Writing an HLL to its hex representation ofstorage specification,
v1.0.0(for example, to be inserted into aPostgreSQL
database):bytes = hll.to_bytes()
output = "\\x" + NumberUtil.to_hex(bytes, 0, len(bytes))Also see theAPI
documentation.DevelopmentSeeContributingfor how to get started building, testing, and deploying the code.
Package: python-hmac-auth
# python-hmac-authHMAC authentication for Python client libraries.This library makes it easy to add support for HMAC authentication in Python clients that:1. Interface with a REST API that uses[jersey-hmac-auth](https://github.com/bazaarvoice/jersey-hmac-auth) to implement HMAC authentication, and2. Use the Python [Requests](http://docs.python-requests.org) library to make API calls.It works by providing a custom authenticator for the Requests library that modifies outgoing API calls to encodethe requests for HMAC authentication.## Getting StartedTo install:```pythonpip install python-hmac-auth```In your code, import the `HmacAuth` class and specify it on the `auth` parameter when issuing API calls:```pythonimport requestsfrom python_hmac_auth import HmacAuthresponse = requests.get('http://example.com/api', auth=HmacAuth('your_api_key', 'your_secret_key'))```## User GuideSee the [User Guide](https://github.com/bazaarvoice/jersey-hmac-auth/wiki) for jersey-hmac-auth for more detailsabout HMAC authentication on the server and for clients libraries.## ContributingTo get the code:```sh$ git clone git@github.com:bazaarvoice/python-hmac-auth.git```To submit a new request or issue, please visit the [Issues](https://github.com/bazaarvoice/python-hmac-auth/issues) page.Pull requests are always welcome.
Package: python-hmr
Python Hot Module ReloadBetter debugging experience with HMRAutomatic reload your project when files are modified.No need to modify your source code. Works in any environment.Supported Syntax:✅import X✅from X import YSupported Types:✅Module✅Function✅ClassInstallationpipinstallpython-hmrQuick Start[!CAUTION]
From v0.3.0, there is only one API,hmr.reload.Import your dev packages as usual. And add 2 lines
for automatically reloading.importdevimporthmrdev=hmr.reload(dev)If you have multiple modules to reload, you can do it like this.fromdevimportrun1,run2importhmrrun1,run2=hmr.reload(run1,run2)Now you are ready to go! Try to modify therun1orrun2and see the magic happen.Detailed UsageFunction/Class instanceWhen you try to add HMR for a function or class, remember to
pass the name of the function or class instance without parenthesis.fromdevimportRunnerimporthmrRunner=hmr.reload(Runner)a=Runner()b=Runner()[!IMPORTANT]
Here, when bothaandbwill be updated after reloading. This may be helpful
if you have an expansive state store within the class instance.However, it's suggested to reinitialize the class instance after reloading.@Decorated FunctionUsefunctools.wrapsto preserve
signature of your function, or the function information will be replaced by the decorator itself.importfunctoolsdefwork(f):@functools.wraps(f)defargs(*arg,**kwargs):returnf(*arg,**kwargs)returnargsStateful applicationIf your application is stateful, you can exclude the state from being reloaded.
For simplicity, you can group all your state variable into the same.pyfile likestate.pyand exclude that from being reloaded.Make sure you know what you are doing.
This could lead to unexpected behavior and unreproducible bugs.importdevimporthmrdev=hmr.reload(dev,exclude=["dev.state"])In this waydev/state.pywill not be reloaded, the state will persist.This also apply when reloading a function or class.fromdevimportrunimporthmrrun=hmr.reload(run,exclude=["dev.state"])AcknowledgementInspired from the following package.auto-reloaderreloadr
Package: python-hn
HackerNews / Algolia Python LibraryThis is a simple library to interface withHN Search API(provided by Algolia).Install instructions$pipinstallpython-hnUsageCheck outInteractive Docsto try the library without installing it.fromhnimportsearch_by_date# Search everything (stories, comments, etc) containing the keyword 'python'search_by_date('python')# Search everything (stories, comments, etc) from author 'pg' and keyword 'lisp'search_by_date('lisp',author='pg',created_at__lt='2018-01-01')# Search only storiessearch_by_date('lisp',author='pg',stories=True,created_at__lt='2018-01-01')# Search stories *or* commentssearch_by_date(q='lisp',author='pg',stories=True,comments=True,created_at__lt='2018-01-01')TagsTags are part of HN Search API provided by Algolia. You can read more intheir docs. They can form complex queries, for example:# All the comments in the story `6902129`tags=PostType('comment')&StoryID('6902129')The available tags are:PostType: with optionsstory,comment,poll,pollopt,show_hn,ask_hn,front_page.Author: receives the username as param (Author('pg')).StoryID: receives the story id (StoryID('6902129'))FiltersFilters can be applied to restrict the search by:Creation Date:created_atPoints:pointsNumber of comments:num_commentsThey can accept>, <, >=, <=operators with a syntax similar to Django's.lt(<): Lower than. Exampleponts__lt=100lte(<=): Lower than or equals to. Exampleponts__lte=100gt(>): Greater than. Examplecreated_at__gt='2018'(created after 2018-01-01).gte(>=): Greater than or equals to. Examplenum_comments__gte=50.Examples (SeeAlgolia docsfor more info):# Created after October 1st, 2018search_by_date(created_at__gt='2018-10')# Created after October 1st, 2017 and before January 1st 2018search_by_date(created_at__gt='2018-10',created_at__lt='2018')# Stories with *exactly* 1000 pointssearch_by_date(tags=PostType('story'),points=1000)# Comments with more than 50 pointssearch_by_date(tags=PostType('comment'),points__gt=50)# Stories with 100 comments or moresearch_by_date(tags=PostType('story'),num_comments__gt=100)Search[TODO]RoadmapV0.0.3: Post type aliasesV0.0.2CURRENT: Functioning APIV0.0.1: Initial Version