Saravanan666/pypi-org huggingface dataset:
Package: heatwave
HeatwaveA tool for displaying a visual representation of your git history.Heatwave generates a heat map of your git commits, similar to how GitHub's heat map looks. View all commits or a single user's commits for the past year or previous years. Now in stylish red and green colors it makes the perfect Christmas gift.Behold the beauty of command line graphics!DependenciesYou will probably need to install an environment tool to manage different version of pythons. After you are on Python 3.7+ then install Pip to most easily install heatwave.Install PyEnv firstInstall Pip secondInstallationI always vote for the easy way, but do what you want I guess...Recommend WayThe fastest way to install heatwave is with pip.pip install heatwaveManual WayTo install this manually clone this repo and then install the dependencies using pip:git clone https://github.com/james-stoup/heatwave.git
cd heatwave
pip install -r requirements.txtUsageView All CommittersView repo stats for all committers:$ heatwave /path/to/my/repo -aView All Committers For Several YearsView 3 years worth of commits:$ heatwave /path/to/my/repo -a -y 3View A Specific CommitterView stats on a particular committer:$ heatwave /path/to/my/repo 'James Stoup'View Number of CommitsView number of commits a user made, instead of color:$ heatwave --status-type number /path/to/my/repo 'James Stoup'Other OptionsView ContributorsList everyone who committed to this repo:$ heatwave /path/to/my/repo -lVerbose ModeView detailed stats on a particular committer:$ heatwave -v /path/to/my/repo 'James Stoup'Get Everything on EveryoneView detailed stats on everyone going back 10 years$ heatwave /path/to/my/repo -v -a -y 10
Package: heatzy
python-heatzy - Python Heatzy controllerheatzyHeatzy (https://heatzy.com/) is a provider of heating control solutions (such as Pilot Wire addons to radiators). There is an API available on Google Drive, this software was created to control the Pilot Wire solution from a Python library.UsagePython>>>importheatzy# First create the handler with your heatzy app login/password>>>hh=heatzy.HeatzyHandler('bidon@bidon.fr','p@ssw0rd')# Get the devices dictionary (containing object type HeatzyDevice) associated to your account. The key is the device name>>>deviceDict=hh.getHeatzyDevices()# Assigns the device named 'Chambre'>>>device=deviceDict['Chambre']# Gets status>>>device.status()'ECO'### Sets 'confort' mode>>>device.confort()# Gets status>>>device.status()'CONFORT'>>>device.off()# Sets mode to 'off'>>>device.horsgel()# Anti-freezing mode>>>device.eco()# Sets 'ECO' mode>>>device.setMode('ECO')# Different way to set 'ECO' modeCLIA CLI tool for interacting with the library is included (bin/heatzy-cli)heatzy-cli
usage:heatzy.py[-h][-uUSERNAME][-pPASSWORD][-dDEVICE][-l][-mSETMODE]ControlsHeatzydevicesthroughttheCLI

optionalarguments:-h,--helpshowthishelpmessageandexit-uUSERNAME,--usernameUSERNAMEUsernameontheHeatzy(Gizwits)platform-pPASSWORD,--passwordPASSWORDPasswordoftheuser-dDEVICE,--deviceDEVICENameoftheHeatzydeviceyouwishtocontrol-l,--listListalldevices-mSETMODE,--setmodeSETMODESetsthemodeofthedevice
heatzy-cli-ulogin@heatzy.com-pp@ssw0rd-l# Lists the devicesheatzy-cli-ulogin@heatzy.com-pp@ssw0rd-dBedroom# Prints the info of the deviceheatzy-cli-ulogin@heatzy.com-pp@ssw0rd-dBedroom-mECO# Sets the device in the bedroom in ECO modeHASS IntegrationAn optional component is available under opt/homeassistant. Put it in your '/custom_components/climate' directory, and edit your configuration.yaml file.# Heatzyclimate:-platform:heatzyusername:'bidon@bidon.com'password:'p@ssw0rd'
Package: heatzypy
heatzypyManage your Heatzy in PythonCheck your config, enable or disable heater, change preset mode.InstallUse the PIP package manager$pipinstallheatzypyOr manually download and install the last version from github$gitclonehttps://github.com/cyr-ius/heatzypy.git
$pythonsetup.pyinstallGet started# Import the heatzypy package.importasynciofromheatzypyimportHeatzyClientasyncdefmain():api=HeatzyClient("username","password")devices=awaitapi.async_get_devices()fordeviceindevices:name=device.get("dev_alias")data=awaitapi.async_get_device(device["did"])mode=data.get("attr").get("mode")logger.info("Heater :{}, mode :{}".format(name,mode))loop=asyncio.get_event_loop()loop.run_until_complete(main())Have a look at theexample.pyfor a more complete overview.Notes on HTTPSNot implemented
Package: heaven
Heaven :Heaven is a very very small, extremely tiny, and insanely fastASGIweb application framework. It was designed to facilitate productivity by allowing for complete mastery in 7 minutes or less.Heaven is a very light layer around ASGI with support for application mounting and is perhaps the simplest and one of the fastest python web frameworks (biased opinion of course).InstalllingInstall withpip$pipinstallheavenA Simple ExamplefromheavenimportRouterasyncdefindex(req,res,ctx):res.body='Hello, World!'router=Router()router.GET('/',index)You can run with uvicorn, gunicorn or any other asgi HTTP, HTTP2, and web socket protocol server of your choice.$uvicornmain:router--reload*Runningonhttp://127.0.0.1:8000ContributingFor guidance on how to make contributions to Routerling, see theContribution GuidelinesLinksDocumentationGo To DocsPyPihttps://pypi.org/project/heavenSource CodeGithub
Package: heavyai
heavyaiThis package enables using common Python data science toolkits withHeavyDB.
It brings data frame support on CPU and GPU as well as support for arrow.
See thedocumentationfor more.Quick Install (CPU)Packages are available on conda-forge and PyPI:# using conda-forgecondainstall-cconda-forgeheavyai# using pippipinstallheavyaiQuick Install (GPU)We recommend creating a fresh conda 3.8 or 3.9 environment when installing
heavyai with GPU capabilities.To install heavyai for GPU Dataframe support (conda-only):mambacreate-nheavyai-gpu-crapidsai-cnvidia-cconda-forge-cdefaults\--no-channel-priority\cudfheavyaipyheavydbpytestshapelygeopandaspyarrow=*=*cudaDocumentationFurther documentation for heavyai usage is available at:http://heavyai.readthedocs.io/
Package: heavy_celery
managed celery taskDocumentationThe full documentation is athttps://heavy_celery.readthedocs.io.QuickstartInstall heavy_celery:pip install heavy_celeryAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'heavy_celery',...)Featuressettings.pyCELERY_DEFAULT_QUEUE='default'CELERY_DEFAULT_EXCHANGE_TYPE='default'CELERY_DEFAULT_ROUTING_KEY='default'CELERY_QUEUES=(Queue('default',Exchange('default'),routing_key='default'),Queue('time_sensitive',Exchange('time_sensitive'),routing_key='time_sensitive_tasks'),Queue('background',Exchange('background'),routing_key='background'),)CELERY_REVOKE='example.apps.sample.tasks.celery_revoke'# 適当なモジュールパスに変更MIDDLEWARE+=['heavy_celery.middlewares.GlobalRequestMiddleware',]example/apps/sample/tasks.py@app.task()defcelery_revoke(task_id):fromcelery.task.controlimportrevokerevoke(task_id,terminate=True)cronの機能を使うためにfromcelery.schedulesimportcrontabfrom<project_name>.celery_confimportappfromheavy_celery.cronimportspawneras_cron_scheduler@app.task()defcron_scheduler():_cron_scheduler()app.conf.beat_schedule={'cron_scheduler':{'task':'<appname>.tasks.cron_scheduler','schedule':crontab(),'args':(),'options':dict(queue='time_sensitive',routing_key='time_sensitive_tasks'),},}task定義の仕方fromheavy_celeryimportbase@app.task(base=base.Task)defcommand(command_name,*args,**kw):call_command(command_name,*args,**kw)タスクの定期実行のやり方TaskSignatureの追加name : タスク名description : タスク詳細task_path : タスクパス e.g) apps.foo.tasks.example_taskargs : タスクに渡す引数(yaml形式)kwargs : タスクに渡すkw引数(yaml形式)options : タスクのスケジュールオプション、どのQueueにいれるかとか
したみたいにしておけば、time_sensitiveのQueueで走るようになるqueue: time_sensitive
routing_key: time_sensitive_tasksCronScheduleの追加name : cronタスク名description : cronタスク詳細cron_expr : cron表記task : TaskSignatureオブジェクトmax_run_count : 最大繰り返し回数Running TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageDevelopment$ cookiecutterhttps://github.com/pydanny/cookiecutter-djangopackage$ mkvirtualenv –no-site-packages heavy_celery
$ pip install tox twine# test
$ make test-all# release
$ python setup.py publish  # at first
$ pip install readme_renderer  # at first
$ python setup.py check -r -s   # syntax check
$ make releaseHistory0.1.0 (2017-07-06)First release on PyPI.
Package: heavylight
heavylightA lightweight actuarial modelling framework for Pythonsingle scriptinstallation optional: package with your models.only depends onpandasComponentsModel:projection controllerclass to subclass with your proprietary modelsBeforeRunandAfterRunmethodsget all values as a list withvaluesattributeget the sum of all values withsum()methodTable:simple long format table objecttype information encoded via|int,|float,|strheader suffixesUsageModel ClassCreate your model as a subclass of `heavylight.Model``.  Each model variable is defined as a method:importheavylightclassAnnuity(heavylight.Model):deft(self,t):returntdefexpected_claim(self,t):returnself.number_alive(t)*self.data["annuity_per_period"]defnumber_alive(self,t):ift==0:returnself.data["initial_policies"]else:returnself.number_alive(t-1)-self.deaths(t-1)defdeaths(self,t):returnself.number_alive(t)*self.mortality_rate(t)defmortality_rate(self,t):return0.02defv(self,t):"""discount factor from time t to time 0"""ift==0:return1else:returnself.v(t-1)/(1+self.forward_rate(t))defforward_rate(self,t):return0.04defpv_expected_claim(self,t):returnself.expected_claim(t)*self.v(t)Define input data as a dictionarypolicy_data={"initial_policies":10,"annuity_per_period":55,}Call the model, passing in the data dictionary, with a projection length of 20.model=Annuity(data=policy_data,do_run=True,proj_len=20,)Get the sum ofpv_expected_claim:print(model.pv_expected_claim.sum())Display result as a pandas tablemodel_cashflows=model.ToDataFrame()NotesThis package is designed for projecting actuarial variables, and calculates t=0, 1... in order.Actuarial models are generally highly recursive.If you create a method which refers to future t value (such as an NPV function) you may hit the python stack limit.The recommended solution is to project forward first, and then calculate T0 metrics based on the result, for example using an `npv()`` function
Package: heavymodel-lewisfogden
Heavymodelheavymodel is a class-based library which enables Actuaries (and other modelling professionals) to build actuarial models in Python, using a function-based syntax similar to other actuarial modelling software, combined with the simplicity of writing code in python.InstallationInstall via pip:pip install heavymodel-lewisfogdenSimple Model CreationImport heavymodel, and then subclass your own model fromModel:fromheavymodelimportModelimportpandasaspdclassDemographicModel(Model):defnum_policies(self,t):ift==0:return1else:returnself.num_policies(t-1)-self.num_lapses(t-1)defnum_lapses(self,t):return0.1*self.num_policies(t)demo=DemographicModel()demo._run(20)df=pd.DataFrame({"num_lapses":demo.num_lapses.values,"num_policies":demo.num_policies.values})print(df)Seehttps://www.digitalactuary.co.uk/for further documentation.
Package: heavymouse
===HeavyMouse===A simple program to give your mouse momentum and mass–install–pip3 install heavymouse–usage–python3 -m heavymouse–details–heavymouse uses defopt for command line options, you can see the details by runningpython3 -m heavymouse –helpusage: heavymouse.py [-h] [–drag DRAG] [–grav GRAV] [–bottom BOTTOM][–left LEFT] [–right RIGHT] [–top TOP]
[–allsides ALLSIDES] [–maxspeed MAXSPEED]
[–framerate FRAMERATE]HeavyMouse - a python mouse moverexample, for bouncy walls, no gravity and less speed:python heavymouse.py –drag .04 –grav 0 –allsides bounce –maxspeed 10optional arguments:-h,--helpshow this help message and exit--dragDRAGamount of drag. 0.0 to 1.0, default is 0.02 (default: 0.02)--gravGRAVgravity, default is 1.5 (default: 1.5)--bottomBOTTOMcan be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)--leftLEFTcan be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)--rightRIGHTcan be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)--topTOPcan be ‘bounce’, ‘wrap’ or ‘stop’ - default is bounce (default: bounce)--allsidesALLSIDESwill override settings for each side - no default (default: None)--maxspeedMAXSPEEDprevent the mouse moving (much) faster than this each frame - default is 40 (default: 40)--framerateFRAMERATEfrequency the program operates at - default is 50 (default: 50)
Package: heavytailed
heavytailedPerform distribution analysis on heavy-tailed distributed dataRaw data are expected to bepositive integers. Maximum likelihood estimation (MLE) will be performed to fit the following models to the data:Exponential distributionPower-law distributionPower-law distribution with exponential cutoffPairwise power-law distributionPoisson distributionYule–Simon distributionLognormal distributionTruncated lognormal distributionShifted power-distribution with exponential cutoffTruncated shifted power-law distributionAn optimizer based on sequential least squares programming (SLSQP) is applied to maximize the likelihood function. (Initially, it was based on L-BFGS-B, but L-BFGS-B cannot handle inequality constraints, which are used to avoid overflow.)The model with minimumAIC(or say the largest Akaike weight) will be selected as the best-fitted model.The analysis mainly focuses on the tails, and the start of the tail will be determined through minimizing theK-S distancebetween fitted models and the empirical distribution.Installation:pip install heavytailedorconda install -c wangxiangwen heavytailedExample Usage:fromheavytailedimportcomparecompare.comparison('testdata/raw_25_bets.dat',xmin=25)The MLE could be a non-convex function, therefore it is suggested to try different initial values (for distribution parameters) to avoid local minima.If you find this package useful in your publication, please kindly consider citing the following two articles:Wang, X., & Pleimling, M. (2017). Foraging patterns in online searches. Physical Review E, 95(3), 032145.Wang, X., & Pleimling, M. (2018). Behavior analysis of virtual-item gambling. Physical Review E, 98(1), 012126.
Package: hebcal
HebcalA python package for working with Hebrew dates, times, and holidaysNote: This is still in development and not ready for production. There will still be lots of breaking changes.There are several python packages that deal with Hebrew dates, Z'manim and Jewish holidays. However, since the Hebrew calendar considers nightfall the beginning of the new day, I've found it very inconvenient to work with other packages. Just converting a Gregorian date to a Hebrew date doesn't give you the proper conversion, as it could be past nightfall, which needs to manually accommodated.The same goes for any Jewish holiday package. You first need to figure out what the real Hebrew date is before you can determine if it's currently a holiday.I wanted something that I can just ask "is today a rest holiday?" and I should get a True or False.I wrote Hebcal to solve these problems. It takes in a latitude and longitude to calculate the location.
It can be installed through pip:pip install hebcal.Here's a quick example:importhebcaltime_info=hebcal.TimeInfo.now(latitude=40.089909,longitude=-74.216270)print(time_info.today_sunrise().strftime('%-I:%M:%S %p'))###6:48:58 AMprint(time_info.hebrew_date())###(5779, 7, 19)You can input a specific date and time with a string:time_info=hebcal.TimeInfo('2018, 9, 27 10:07 pm',latitude=40.089909,longitude=-74.216270)print(time_info.today_sunrise().strftime('%-I:%M:%S %p'))###6:48:58 AMprint(time_info.hebrew_date())###(5779, 7, 19)The Hebrew date that is returned takes into account sunrise/sunset. If it's after sunset it will automatically return the correct Hebrew date.You can also query directly if its night, or dayprint(time_info.is_night())###Trueprint(time_info.is_day())###FalseNote: Calculating the timezone from the lat/lon slows down the calculations. It is best to pass the timezone as an argument:time_info=hebcal.TimeInfo.now(timezone='America/New_York',latitude=40.089909,longitude=-74.216270)You can manually get the timezone using Hebcal:fromhebcal.util.locationimportget_locationtimezone=get_location(latitude==40.089909,longitude=-74.216270)print(timezone)###America/New_YorkHebcal zmanim.Zmanimnote: All times are datetime.datetime objects. They can be formated using.strftime().Here's an example of the hebcal.zmanimtime_info=hebcal.TimeInfo.now(latitude=40.089909,longitude=-74.216270)# pass a hbcal.TimeInfo object into Zmanimzmanim=hebcal.Zmanim(time_info)print(zmanim.last_shema_ma)###2018-09-27 09:12:12.895624-04:00print(zmanim.last_shema_ma.strftime("%-I:%M:%S %p"))###9:12:12 AMOther than accessing individual zmanim, You can just print the Zmanim object, which returns formated times (i.e.9:12:12 AM).Another option is to get all the zmanim configures as json:zmanim_json=hebcal.Zmanim.json(time_info)print(zmanim_json['earliest mincha'])###2018-09-27 13:17:19.756457-04:00Add calandar README here.
Package: hebikani
HebiKaniThis program is not an official WaniKani client. Use at your own risk.A command line interface to do your WaniKani lessons and reviews.Story written by OpenAI (text-davinci-002):The snake had always been interested in learning Japanese, and so when it saw the Crabigator teaching the language, it decided to enroll in the class. The Crabigator was a great teacher, and the snake quickly learned the basics of the language. After a few months, the snake graduated from the class, and as a reward, the Crabigator gave it a magical stone that would allow it to transform into a half-crab, half-snake creature. The snake was thrilled, and immediately used the stone to transform. It then set out to teach Japanese to people all over the world, using its new form to make learning the language fun and easy.DEMOThis is a preview of what a lesson session looks like:INSTALLpipinstallhebikaniCheck thedocumentationto install audio libraries on OSX and Linux or if the japanese characters do not display on Windows.RUNCheck the help:hebikani--helpTo display your review summary:hebikanisummaryTo start a review session:hebikanireviewsTo start a review session in hard mode with audio and a limited number of reviews:hebikanireviews--hard--autoplay--limit10Download all the subjects in local:hebikanidownloadYou may use the same command to update the database. It should only download the differences.DEVELOPMENTThis project usesPoetry.poetryinstallTESTRun the test:poetryrunpytest
Package: hebill
HEBILL还未正式能使用目录安装说明使用说明贡献名录许可授权联系作者安装说明安装pip install hebill更新pip install --upgrade hebill使用说明整理中贡献名录整理中许可授权整理中免责声明在任何情况下，任何人或组织对于因使用或无法使用本产品而导致的任何直接、间接、偶发、特殊或后果性损害概不负责。联系作者hebillhttp://www.hebill.net
Package: hebrew-names
hebrew_namesRandom Hebrew name generatorInstallationThe script isavailable on PyPI.  To install with pip:pip install hebrew-namesUsageHebrew Names can be used as a command line utility or imported as a Python package.Command Line UsageTo use the script from the command line:$hebrew_namesצביכהןPython Package UsageHere are examples of all current features:>>>importhebrew_names>>>hebrew_names.get_first_name('jew','female')'יעל'>>>hebrew_names.get_first_name('jew','female')'תמר'>>>hebrew_names.get_first_name('jew','male')'אהרון'>>>hebrew_names.get_first_name()'מקסים'>>>hebrew_names.get_first_name()'נור'>>>hebrew_names.get_first_name('muslim','male')"מג'די">>>hebrew_names.get_first_name('muslim','male')'מוחמד'>>>hebrew_names.get_first_name('christian','male')"'ג'ורג'">>>hebrew_names.get_first_name('druze','male')'ריאן'>>>hebrew_names.get_first_name('other','male')'אנטוני'>>>hebrew_names.get_last_name('jew')'גלברד'>>>hebrew_names.get_full_name('muslim','female')'אמירה איוב'LicenseThis project is released under anMIT License.Data in the following files are public domain (derived from Israel’s Central Bureau of Statistics 1948-2021 data):dist.jew.male.firstdist.jew.female.firstdist.jew.lastdist.muslim.male.firstdist.muslim.female.firstdist.muslim.lastdist.christian.male.firstdist.christian.female.firstdist.christian.lastdist.druze.male.firstdist.druze.female.firstdist.druze.lastdist.other.male.firstdist.other.female.firstdist.other.lastChangestip (unreleased)Add Hebrew dataset for last namesAdd Hebrew dataset for first namesModified names.get_first_name to only accept ‘male’ and ‘female’ gender values0.3.0 (2013-05-14)Fixed Python 3 supportImproved tests and fixed minor bugs0.2 (2013-02-17)Initial releaseContributingPlease file bugs to theGithub issue tracker.  Pull requests are welcome.Hacking and Pull RequestsPlease try to conform toPEP8for code contributions and ensure that the
tests continue to function.Please include new tests with your pull requests when appropriate.Feel free to open pull requests before you’ve finished your code or tests.
Opening your pull request sooner will allow others to comment on it sooner.A checklist of things to remember when making a feature:Write tests if applicableNote important changes in theCHANGESfileUpdate theREADMEfile if neededUpdate the documentation if neededAdd yourself to theAUTHORSfile
Package: hebrew-python
hebrew-pythonhebrew-python is a python library (with commandline utities) for programming python in Hebrew.
(Yes, it is really possible!)hebrew-python
runs in Python 3.6+ (becauseideasruns in Python 3.6+)After downloading this library you can write a script like:מתוךבנוי.אקראייבאמספר_אקראימשתנה_כלשהו=מספר_אקראי(1,9)הראה(משתנה_כלשהו)Name the filesomething.hepyand run it withhepy something.hepy.You can also import other.hepyand.pyfiles from the main file:יבאsomethingInstallingTo install with pip
type in terminal:pipinstall"hebrew-python[errors]"and for non-errors support (without friendly-traceback):pipinstallhebrew-pythonThis will create the commandline script:hepyUsageYou can run hepy files withhepy <file>You can start Hebrew Python console with justhepy.hepyfile syntax.hepyfile supports hebrew python syntax (syntax with keywords likeיבא(import)and functions likeהראה(print))
in additional to normal python syntaxUse from normal python file/replYou can use as library:to import.hepyfiles into your.pyfile:fromhebrew_pythonimportcreate_hookcreate_hook(run_module=False,console=False)# without running main module or starting replimporthepy_module# now you can import .hepy filesor to start repl from normal repl:fromhebrew_pythonimportcreate_hookcreate_hook(run_module=True,console=True)# *with* starting repljupyter/ipythonhebrew-pythonsupportjupyterandipythonintercative console by ipython extension. to use:install jupyter-notebook by :pip install notebookstart jupyter-notebook by :jupyter notebook.
then create new python3 by the new button.on the first cell enter the text%load_ext hebrew_pythonand pross contoll+enter.and then you can write hebrew-python in all notebookDependencieshebrew-python depends on the python libraries:friendly- for more friendly english tracebackideas- most of this library is built on this project. It support easy creation of import hooks and it has asimple examplefor replacing keywords to French keywordsContributeOn all errors, problems or suggestions please open agithub issueIf you found this library useful, it would be great if you could buy me a coffee:Authormatan hLicenseThis project is licensed under theBSD-4 License.
Package: hebrewtools
Useful tools for working with vocalized Hebrew Text in Python.DescriptionCurrently, hebrewtools consists of two functions:
sbl_normalization: performs custom Unicdoe normalization using the
normalization classes defined in Appendix B of  the SBL Hebrew
Font User Manual
is_sbl_normalized: checks whether a given string has undergone SBL
normalizationInstallationpip install hebrewtools