Saravanan666/pypi-org huggingface dataset:
Package: pybeef
beefBeef is good for your health.An opinionated distributed RPC using AMQP messages (inspired by celery amqp backend).InstallingpipinstallpybeefUsageWorker:frombeefimportbeef@beefasyncdefadd(x:int,y:int)->int:returnx+yServer:asyncdefserver():asyncwithadd.connect('amqp://localhost/'):awaitadd.serve()# here server blocks forever, executing incoming tasksif__name__=='__main__':importasyncioasyncio.run(server())Client (blocking):asyncdefclient():asyncwithadd.connect('amqp://localhost/'):task_id=awaitadd.submit(1,2)# submits taskresult=awaitadd.result(task_id)# waits for completionif__name__=='__main__':importasyncioasyncio.run(client())Client (polling):importasyncioasyncdefclient():asyncwithadd.connect('amqp://localhost/'):task_id=awaitadd.submit(1,2)# submits taskwhileTrue:status=awaitadd.get_status(task_id)ifstatus.is_final:breakawaitasyncio.sleep(1)print(f'Task{task_id}completed with status{status})if__name__=='__main__':importasyncioasyncio.run(client())TestingYou need a running RabbitMQ server for testing. For example:dockerrun-it--networkhostrabbitmqThen, make sure that test dependencies are installed:pipinstall.[test]Finally, run the testsPYTHONPATH=.pytestbeef/testBuildingpipwheel.Publishingtwineuploaddist/pybeef-XXX.whl-u__token__-p<secret-pipy-token>
Package: pybeehive
pybeehiveA lightweight, event-driven concurrency library with bees!Free software: GNU General Public License v3Documentation:https://pybeehive.readthedocs.io.FeaturesOne interface for writing concurrent code, both sync and asyncBasic UsagefrompybeehiveimportHiveimporttimehive=Hive()@hive.streamerdefstream():whileTrue:time.sleep(1)yield'hello world!'@hive.listenerdefon_event(event):print(event)if__name__=='__main__':hive.run()$ python hello.py
Event(created_at=1525400000, data="hello world!")
Event(created_at=1525400001, data="hello world!")
Event(created_at=1525400002, data="hello world!")
...CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-05-27)First release on PyPI.0.11 (2018-05-28)Fixed installation of dependencies0.12 (2018-05-28)Fixed travis-ci building with coverage0.13 (2018-05-28)Coverage now only runs on travis-ci with only pybeehive source code0.14 (2018-05-29)Fixed bug in event propagation
Package: pybeepbeep
BeepBeepA python implementation of the BeepBeep cooperative ranging algorithm.Installationpip3installpybeepbeepReferencesChunyi Peng, Guobin Shen, Yongguang Zhang, Yanlin Li, and Kun Tan. 2007.BeepBeep: a high accuracy acoustic ranging system using COTS mobile devices.In Proceedings of the 5th international conference on Embedded networked sensor systems (SenSys ’07). Association for Computing Machinery, New York, NY, USA, 1–14. DOI:https://doi.org/10.1145/1322263.1322265
Package: py-bee-psd
#Beebeeis an all-in-one python framework for simplifying micro service program development.ComponentsConfig- Manage configuration for yml, yaml & jsonRPC- Lightweight and high performaceSerializableProtoBufjsonhttp to be continuedService Discovery - Automatic registration and name resolution with service discoveryetcd3consulLoad Balancing - Smart client side load balancing of services built on discoveryRandomBalancerRoundRobbinBalancerWeb- Web server with a variety of advanced features, to be continuedDatabasePsd - A lightweight, fluent SQL data access and ORM libraryMongoDB - A useful wrapper formongoRedis - A useful wrapper forredis,redis-py-clusterUtility- Some useful utility packages..debugi18nguidconstmapobjectpool
Package: py-bee-rpc
#Beebeeis an all-in-one python framework for simplifying micro service program development.ComponentsConfig- Manage configuration for yml, yaml & jsonRPC- Lightweight and high performaceSerializableProtoBufjsonhttp to be continuedService Discovery - Automatic registration and name resolution with service discoveryetcd3consulLoad Balancing - Smart client side load balancing of services built on discoveryRandomBalancerRoundRobbinBalancerWeb- Web server with a variety of advanced features, to be continuedDatabasePsd - A lightweight, fluent SQL data access and ORM libraryMongoDB - A useful wrapper formongoRedis - A useful wrapper forredis,redis-py-clusterUtility- Some useful utility packages..debugi18nguidconstmapobjectpool
Package: pybeerxml
pybeerxmlA simple BeerXML parser for PythonParses all recipes within a BeerXML file and returnsRecipeobjects containing all ingredients,
style information and metadata. OG, FG, ABV and IBU are calculated from the ingredient list. (your
milage may vary)Installationpip install pybeerxmlUsagefrom pybeerxml import Parser

path_to_beerxml_file = "/tmp/SimcoeIPA.beerxml"

parser = Parser()
recipes = parser.parse(path_to_beerxml_file)

for recipe in recipes:

    # some general recipe properties
    print(recipe.name)
    print(recipe.brewer)

    # calculated properties
    print(recipe.og)
    print(recipe.fg)
    print(recipe.ibu)
    print(recipe.abv)

    # iterate over the ingredients
    for hop in recipe.hops:
        print(hop.name)

    for fermentable in recipe.fermentables:
        print(fermentable.name)

    for yeast in recipe.yeasts:
        print(yeast.name)
        
    for misc in recipe.miscs:
        print(misc.name)TestingUnit tests can be run with PyTest:python -m pytest testsContributing / DevelopmentCommunity contributions are welcome.Some kind of virtual environment for Python is recommended. Considervenv,condaor similar. Dependency management is handled throughPoetry:pip install poetry

poetry installMake sure to Test, Lint, Format, & Type-Check your code before sending a pull request:python -m pytest tests
python -m black pybeerxml tests/*.py
python -m pylint pybeerxml tests/*.py
python -m mypy pybeerxml tests/*.pyLicenseMIT
Package: pybeeryaml
A YAML format parser for beer storageParse a recipe from a YAML file and returns an object containing ingredients and
metadata. Supports export tobeerxmlformat.InstallationpipinstallpybeeryamlUsagefrompybeeryamlimportRecipepath_to_beeryaml_file="/tmp/my_recipe.yml"# create recipe from filerecipe=Recipe.from_file(path_to_beeryaml_file)# or from stringwithopen(path_to_beeryaml_file,"r")asmybeer:recipe2=Recipe.from_yaml(mybeer.read())assertrecipe==recipe2# True# convert to beerxml formatrecipexml=recipe.to_xml()TestingUnit tests can be run withpytest.py.testtests
Package: pybees
pybees: Python optimization toolkit using the bees algorithmWhat is it?pybeesis a Python package for function optimization. It uses the nature inspiredbees algorithm, proposed by Pham et al. and is built on top of SciPy.pybeesis distributed under the 3-Clause BSD license.The bees algorithm is a swarm based search algorithm, which mimics the food foraging behaviour of honey bees. The basic algorithm is suitable for bothcontinuousandcombinatorialoptimization problems, which is demonstrated in thebasic examplessection.Main featuresHigh-level API to optimize continuous functions (training amultilayer perceptron).High-level API to optimize discrete functions (traveling salesperson problem).Built in single-objective cost functions.plotlyplotting tools for 2D and 3D (both continuous and discrete).Extensible API for developing new ideas.Where to get itIf all dependencies are already installed, then the easiest way to install pybees is usingpip.pipinstallpybeesHow to use itPlease visit the examples folder to view the demonstrationexamples. These include.Continuous functionoptimization (levy,drop_waveandmichalewicz)Combinatorial functionoptimization (travelling salesperson problem)Future examples will includeMultilayer perceptronDependenciespybees requires:numpy >= 1.17.4scipy >= 1.3.2plotly >= 4.4.1tqdm >= 4.40.2sklearn >= 0.22pandas >= 0.25.3LicenseBSD 3Basic ExamplesContinuous function optimizationimportpybeesaspbsbc=pb.SimpleBeesContinuous(n_scout_bees=50,elite_site_params=(15,40),best_site_params=(15,30),bounds=(-10,10),n_dim=2,nbhd_radius=2)This operation returns ascipy.optimize.OptimizeResult.funrepresents the value of the objective function (lowest point).nitrepresents the number of iterations taken.xrepresents the coordinates of the value found for the objective function.>>>sbc.optimize(pb.levy)fun:1.007063464503951e-06nit:100x:array([0.99905553,0.99967304])The results may also be visualised by using the followingsbc.plot(global_min=(1,1))Combinatorial optimization (e.g. travelling salesperson problem)importpybeesaspbsbd=pb.SimpleBeesDiscrete(n_scout_bees=50,elite_site_params=(15,40),best_site_params=(15,30),coordinates=np.random.randint(10,size=[10,2]))This operation returns ascipy.optimize.OptimizeResultresult.res.coordinatesrepresentssbd.coordinatesreordered, resulting from the optimization of some objective function. In this example,tour_distancewas minimized. As such,coordinatesrepresents the sequence, corresponding to the shortest path between all coordinates (i.e. travelling salesperson problem).funrepresents the value of the objective function (shortest distance).nitrepresents the number of iterations taken.xrepresents the permutation of the original sequence passed toSimpleBeesDiscretewhich gives the shortest distance.>>>sbd.optimize(pb.tour_distance)coordinates:array([[7.,8.],[4.,8.],[2.,6.],[0.,5.],[1.,0.],[3.,2.],[2.,4.],[3.,4.],[5.,4.],[7.,4.]])fun:27.228009718084742nit:100x:array([1.,9.,7.,5.,0.,3.,4.,6.,2.,8.])The results may also be visualised by using the followingsbd.plot()
Package: py-bee-util
#Beebeeis an all-in-one python framework for simplifying micro service program development.ComponentsConfig- Manage configuration for yml, yaml & jsonRPC- Lightweight and high performaceSerializableProtoBufjsonhttp to be continuedService Discovery - Automatic registration and name resolution with service discoveryetcd3consulLoad Balancing - Smart client side load balancing of services built on discoveryRandomBalancerRoundRobbinBalancerWeb- Web server with a variety of advanced features, to be continuedDatabasePsd - A lightweight, fluent SQL data access and ORM libraryMongoDB - A useful wrapper formongoRedis - A useful wrapper forredis,redis-py-clusterUtility- Some useful utility packages..debugi18nguidconstmapobjectpool
Package: pybeginners
pybeginnersPython package to help beginners with basic math program functionalities likeisprime(number)oddeven(number)issquare(number)iscube(number)Installationpip install pybeginnersHow to UseInstall the package.To check if a number is perfect square, use the following code:from pybeginners import programs
print(programs.issquare(number))Similarly, you can useprograms.isprime(number)and two more functions.
Package: pybehance
behance-pyFree download of pictures from behance.netInstallationpipinstallpybehanceUsefrompybehanceimportBehanceEXAMPLE_URL="https://www.behance.net/gallery/157806987/Folio-Reader-Types"behance=Behance()# without special path to save picsbehance=Behance(path_to_save="/path/to/save/example_dir")data=behance.get_pictures_list(EXAMPLE_URL)# return listbehance.download_pictures()# download all pictures
Package: pybehnevis
<h1>PyBehnevis</h1>
<p>a simple, easy-2-use, independent python3 wrapper for <a href=”http://www.behnevis.com/api.html”>Behnevis API</a>.</p>
<h2>Usage</h2>
<p><code>from pybehnevis import PyBehnevis
behnevis = PyBehnevis()
behnevis.convert(“maar ra khaham goft: che shokuhi darad ghuk!”)</code></p>
Package: pybel-artifactory
An extension for handling BEL resources with Artifactory.InstallationGet the LatestDownload the most recent code fromGitHubwith:$python3-mpipinstallgit+https://github.com/pybel/pybel-artifactory.gitFor DevelopersClone the repository fromGitHuband install in editable mode with:$gitclonehttps://github.com/pybel/pybel-artifactory.git$cdbio2bel$python3-mpipinstall-e.
Package: pybel-cx
A PyBEL extension for interconversion with CX.InstallationPyBEL-CX can be installed easily fromPyPIwith the following code in
your favorite terminal:$python3-mpipinstallpybel-cxor from the latest code onGitHubwith:$python3-mpipinstallgit+https://github.com/pybel/pybel-cx.gitCommand Line UsagePyBEL-CX installs two command line utilities:bel_to_cxandcx_to_bel.CX to BELRunning this script has the caveat that the CX document should conform to the schema created by PyBEL-CX.$catmy_network.cx|cx_to_bel>my_network.belBEL to CX$catmy_network.bel|bel_to_cx>my_network.cxSince this operation can be expensive, PyBEL caches namespace resources. The-cflag can be used to specify a
database connection string to use a high performance RDBMS instead of the default SQLite. For example, if you would
like to use MySQL, this database string will look something likemysql+pymysql://<username>:<password>@<host>/<dbname>?charset=utf8[&<options>]. Be sure topip installthe
connector, which ispymysqlin this example.$pipinstallpymysql$catmy_network.bel|bel_to_cx-c"mysql+pymysql://root:root@localhost/mydb?charset=utf8">my_network.cxMore documentation on connection strings athttp://pybel.readthedocs.io/en/latest/manager.html#pybel.manager.BaseManager.from_connection.
Package: pybelieva
Pybelieva|logo| ## About Pybelieva > Pybelieva is a library providing a Python interface
to the >UnbelivaBoat API <https://unbelievable.pizza/api/docs>__. To
use it, you need > to get a token from the official documentation page.
Also supports discord.py > Guild and User objects.|discord| |status| |release| |api| |documentation| |python|HelpYou can find an in-depth tutorial and a detailed documentation on
`our wiki <https://github.com/dev-cats/Pybelieva/wiki>`__.Quick StartSetup1. Install Pybelieva.
2. Go to `the UnbelivaBoat site <https://unbelievable.pizza>`__.
3. Login to your Discord account.
4. Go to `the API page <https://unbelievable.pizza/api/docs>`__.
5. Click "Copy" under the big string of red text. Your token is now in
   the clipboard. |example|

.. code:: python

    >>> client = Client('Insert token here')
    >>> guild = Guild(0) # Replace 0 with a Discord guild id
    >>> user = User(0)   # Replace 0 with a Discord user id

Functions.. code:: pythonclient.get_balance(guild, user)Returns:Userwith all attributes set... code:: pythonclient.get_leaderboard(guild)Returns:listofUser\ s with all attributes set, ordered by
rank... code:: pythonclient.patch_balance(guild, user, cash, bank)Returns:Userwith all attributes except rank set and an updated
balance... code:: pythonclient.set_balance(guild, user, cash, bank)Returns:Userwith all attributes except rank set and the new
balance.Dependencies-  Python
-  aiohttp
-  discord.py (optional).. |logo| image::https://i.imgur.com/RLRDeQw.png.. |discord| image::https://discordapp.com/api/guilds/566686199834476555/embed.png:target:https://discord.gg/azdCbgv.. |status| image::https://img.shields.io/badge/status-release-brightgreen.svg:target:https://github.com/dev-cats/Pybelieva/releases/tag/v1.0.0.. |release| image::https://img.shields.io/badge/version-v1.2.0-blue.svg:target:https://github.com/dev-cats/Pybelieva/wiki/Version-History.. |api| image::https://img.shields.io/badge/api-v1-ff266a.svg:target:https://unbelievable.pizza/api/docs.. |documentation| image::https://img.shields.io/badge/documentation-100%25-brightgreen.svg:target:https://github.com/dev-cats/Pybelieva/wiki/Documentation.. |python| image::https://img.shields.io/badge/python-any-blue.svg:target:https://python.org/.. |example| image::https://i.imgur.com/HBcXbn9.png
Package: pybel-jupyter
A PyBEL extension for Jupyter notebooks.WarningThis module has been included in PyBEL as of v0.14.0, so it has been deprecated. You can keep using it like normal,
though.Installationpybel_jupytercan be installed easily fromPyPIwith the following
code in your favorite terminal:$pipinstallpybel-jupyteror from the latest code onGitHubwith:$pipinstallgit+https://github.com/pybel/pybel-jupyter.gitGetting StartedInside a Jupyter notebook, run the following code at the end of the cell to get an interactive visualization:>>>frompybel.examplesimportsialic_acid_graph>>>frompybel_jupyterimportto_jupyter>>>to_jupyter(sialic_acid_graph)
Package: pybel-ols
A PyBEL[1]extension for building BEL resources with the EBI[2]Ontology
Lookup Service.InstallationGet the LatestDownload the most recent code fromGitHubwith:$pipinstallgit+https://github.com/pybel/pybel-ols.gitFor DevelopersClone the repository fromGitHuband install in editable mode with:$gitclonehttps://github.com/pybel/pybel-ols.git$cdpybel-ols$pipinstall-e.Getting StartedThe main goal is to generate a namespace file. For example, to generate a namespace for theHuman Phenotype Ontology, abbreviated with the prefixhp, the following command can be used:$pybel-olsnamespace_from_olshp--encoding"O"--output~/Desktop/hp.belnsWhere--encoding"O"tells it that all terms in this ontology correspond to the pathology/phenotype BEL type.Alternatively, the ‘-b’ option can be used to specify an alternate OLS instance$pybel-olsnamespace_from_olshp--encodingO--output~/Desktop/hp.belns-bhttps://localhost/olsReferences[1]Hoyt, C. T.,et al.(2017).PyBEL: a Computational Framework for Biological Expression Language. Bioinformatics, 34(December), 1–2.[2]Cote, R.,et al.(2006).The Ontology Lookup Service, a lightweight cross-platform tool for controlled
vocabulary queries. BMC Bioinformatics, 7, 1–7.
Package: pybelqis
Belqis client by Ahmed KhorsiThis is a python client for Belqis Systemhttps://belqis.intelgx.comInstallationFirst you will have to sign up to get an API keyhttps://belqis.intelgx.com/signupIt is FREEThen copy the token from the dashboardhttps://belqis.intelgx.com/dashboardthen install the packagepip install -U pybelqisUsagefrompybelqisimportBelqisb=Belqis(token='<put in here the token you get from https://belqis.intelgx.com/dashboard>')# Diactritizationr=awaitb.tashkeel('السلام عليكم')print(r)# Other servicesINSHAAALLAHwillbemadeavailable
Package: pybelt
pyBeltPyBelt is a Python library to control the feelSpace naviBelt from your application. The feelSpace naviBelt is a device that provides tactile feedback using vibration motors located in a belt. The naviBelt can be controlled by an application via Bluetooth Low-Energy or USB.The naviBelt can be used in various domains, for instance:navigation applications,VR,simulation,research experiments that require tactile feedback,outdoor and video-games,applications that require tactile feedback to improve focus or attention.Installationpip install pybeltDocumentationpyBelt documentationDeveloper page (coming soon)About feelSpaceLearn more about feelSpace atwww.feelspace.deCopyright and license noticeCopyright 2020, feelSpace GmbH.Licensed under the Apache License, Version 2.0:http://www.apache.org/licenses/LICENSE-2.0Note on using feelSpace Trademarks and Copyrights:Attribution:You must give appropriate credit to feelSpace GmbH when you use feelSpace products in a publicly disclosed derived work. For instance, you must reference feelSpace GmbH in publications, conferences or seminars when a feelSpace product has been used in the presented work.Endorsement or Sponsorship:You may not use feelSpace name, feelSpace productsâ€™ name, and logos in a way that suggests an affiliation or endorsement by feelSpace GmbH of your derived work, except if it was explicitly communicated by feelSpace GmbH.
Package: pybel-tools
PyBEL Toolsis a suite of tools built on top ofPyBELto facilitate data management, integration, and analysis. For examples,
see thePyBEL Notebooksrepository.CitationIf you find PyBEL useful for your work, please consider citing:[1]Hoyt, C. T.,et al.(2017).PyBEL: a Computational Framework for Biological Expression Language. Bioinformatics, 34(December), 1–2.InstallationPyBEL Tools can be installed easily fromPyPIwith the following code in
your favorite terminal:$pipinstallpybel_toolsor from the latest code onGitHubwith:$pipinstallgit+https://github.com/pybel/pybel-tools.gitSee theinstallation documentationfor more advanced
instructions.Documentation and ExamplesDocumentation athttps://pybel-tools.readthedocs.ioCookbook athttps://github.com/pybel/pybel-notebooksAcknowledgementsThis package was originally developed as part of the master’s work ofCharles Tapley HoytatFraunhofer SCAI.LinksDocumented onRead the DocsVersioned onGitHubTested onTravis CIDistributed byPyPI
Package: pybemolle
PyBemolle is a Pygments library plugin made to colorize guitar chords.Highlights are:both Latin and English chords notationsflat and sharp chords have different stylesmajor and minor chords have different stylessupport for alteration part like: Gm6, F7+, F#m7, Cmaj7, Cmaj7/E     alteration part has a separate stylecopyright:Copyright 2019-2020 by the Ihor Nahuliak, see AUTHORS.license:GNU General Public License v3 (GPLv3), see LICENSE for details.Home-page:https://github.com/ihor-nahuliak/pybemolleAuthor: Ihor Nahuliak
Author-email:ihor.nahuliak@gmail.comLicense: GPL v.3.0
Description: UNKNOWN
Platform: any
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Development Status :: 1 - Planning
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Provides-Extra: dev
Package: pyben
Pyben v0.3.2Small library for encoding/decoding bencode data.
Supports Unicode pathnames as of PyBen 3.0.
Pyben Enables fast and easy encoding and decoding of bencoded data.PrerequisitesPython v3.6+Installing PyBenTo install PyBen, follow these steps:Using pip:pip install pybenUsing git:git clone https://github.com/alexpdev/pyben.gitUsing PyBenThe API is intentionally designed to mimic Python's json and pickle modules.>>> import os
>>> import pyben
>>> file_path = "path/to/encoded.file"
>>> data = {"item1": ["item2", 3, [4], {5: "item6"}]}
>>> encoded = pyben.dumps(data)
>>> encoded
... b'd5:item1l5:item2i3eli4eedi5e5:item6eee'
>>> decoded = pyben.loads(encoded)
>>> decoded
... {'item1': ['item2', 3, [4], {5: 'item6'}]}
>>> decoded == data
... TrueOne key difference is that the 'load' and 'dump' methods accept as arguments,
string paths or path-like objects as well as an open BytesIO object.For Example this:>>> with open(file_path, "wb") as fd:
>>>    pyben.dump(decoded, fd)
>>> os.path.exists(file_path)
... True
>>> with open(file_path, "rb") as fd:
>>>    decoded_file = pyben.load(fd)
>>> decoded_file == decoded == data
... Trueis the same as doing following.>>> pyben.dump(data, file_path)
>>> os.path.exists(file_path)
... True
>>> decoded_file = pyben.load(file_path)
>>> decoded_file == decoded == data
... TrueThe full API includes many other functions and classes as well.
See docs for more full API.LicenseThis project uses the following license: Apache 2.0