Saravanan666/pypi-org huggingface dataset:
Package: pybrainfuck
pybrainfuckpybrainfuckis yet another Python BrainFuck implementation. The goal is not
be the fastest or most efficient but rather to be extensive in the
implementation, configurable and extendable.It contains aBrainFckclass which can be directly used or subclassed to
use in scripts. The code is fully documented and commented.Or else the pip installed scriptpybrainfuckcan be directly used.DocumentationRead the full documentation at readthedocs.org:pybrainfuck documentationPython 2/3 SupportPython 2.7Python 3.2/3.3/3.4/3.5It also works with pypy and pypy3InstallationFrom pypi:pip install pybrainfuckFrom source:Place thepybrainfuckdirectory found in the sources inside your project
and import itScriptwise:The entire implementation has been kept inside a single file. You can copy
it inside other sources tooQuick UsageLet’s quickly put together a script:from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

import sys

from pybrainfuck import BrainFck

if name == '__main__':

    bfck = BrainFck()

    for arg in sys.argv[1:]:
        print('-' * 50)
        print('Running:', arg)
        print('-' * 50)
        bfck.runfile(arg)
        print()And prepare aHello World(including a newline)brainfuckprogram:++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.And both paired for a execution:$ ./readme-example.py readme-example.b
--------------------------------------------------
Running: readme-example.b
--------------------------------------------------
Hello World!Although the newlines afterHello World!are difficult to perceive.Using the built-in scriptpybrainfuck:$ pybrainfuck readme-example.b
Hello World!Which luckily produces the same result.
Package: pybrainlife
pybrainlifeThis repository contains the python package for collecting, collating, manipulating, analyzing, and visualizing MRI data generated on brainlife.io. Designed to used within the brainlife.io Analysis tab Jupyter notebooks, can be installed as a pypi package to your local machine.AuthorsBrad Caron (bacaron@iu.edu)ContributorsSoichi Hayashi (hayashi@iu.edu)Franco Pestilli (franpest@indiana.edu)FundingCitationsPlease cite the following articles when publishing papers that used data, code or other resources created by the brainlife.io community.Avesani, P., McPherson, B., Hayashi, S. et al. The open diffusion data derivatives, brain data upcycling via integrated publishing of derivatives and reproducible open cloud services. Sci Data 6, 69 (2019).https://doi.org/10.1038/s41597-019-0073-yDirectory structurepybrainlife
├── dist
│   ├── pybrainlife-1.0.0-py3-none-any.whl
│   └── pybrainlife-1.0.0.tar.gz
├── poetry.lock
├── pybrainlife
│   ├── data
│   │   ├── collect.py
│   │   └── manipulate.py
│   ├── __init__.py
│   └── vis
│       ├── plots.py
│       └── __pycache__
│           ├── data.cpython-38.pyc
│           └── plots.cpython-38.pyc
├── pyproject.toml
├── README.md
└── tests
    ├── __init__.py
    └── test_pybrainlife.pyInstalling locallyThis package can be installed locally via PyPi using the following command:pip install pybrainlifeDependenciesThis package requires the following libraries.python = "3.8"numpy = "^1.9.3"bctpy = "^0.5.2"seaborn = "^0.11.2"jgf = "^0.2.2"scikit-learn = "^1.0.2"pandas = "^1.4.2"scipy = "^1.8.0"requests = "^2.27.1"Library of Modules for Loading Data and Analyzing Data from brainlife.io2022 The University of Texas at Austin
Package: pybrainyquote
PyBrainyquoteGet quotes from brainyquote. Make you life positive. :smile:Requirementsrequestsbs4furlDownloadpip install pybrainyquoteWhyThe original onebrainyquoteis too simple.Grammarimportfrompybrainyquoteimport*# or# import pybrainyquote as bqget quotesQuote.today(topic=whatyoulike)# get today topicget_popular_topics()# have a look at the lists popular topics, if you do not have any ideaget_topics()get_authors()# just try the following, methods mimicking `bs4`Quote.find_all(topic)Quote.find(topic)Quote.find(topic)Quote.choice_yaml(yamlfile)# choose a quote in yaml files randomlyQuote.read_yaml(yamlfile)FutureDefine a search engine for quotes, and a method to get one quote randomly. (Completed partly)Support f-string from now on!
Package: pybrams
pybramspybramsis a Python package that allows you to access information and data from the BRAMS (Belgian RAdio Meteor Stations) project. BRAMS is a network of radio receiving stations that use forward scattering techniques to study the meteoroid population. This project, coordinated by the Belgian Institute for Space Aeronomy (BISA), provides a valuable source of data for researchers, amateur astronomers, and meteor enthusiasts.FeaturesFetch detailed information about BRAMS stations, including their location, name, number of antennas, and more.Retrieve raw data files in WAV format, which can be used for in-depth analysis of meteoroid activity.Access PNG images representing spectrograms, making it easy to visualize meteoroid detections.InstallationYou can installpybramsusing pip:pip install pybramsUsageHere's a simple example of how to usepybramsto retrieve station information:frombramsimportlocationsimportjsonforlocationinlocations.all():json.dumps(location,indent=4)For more detailed usage instructions, documentation, and examples, please visit our documentation.
Get StartedReady to explore the fascinating world of meteoroid detection and analysis? Install pybrams and start accessing BRAMS data with ease. Whether you're a scientist, amateur astronomer, or simply curious about meteoroid activity, this package provides the tools you need to delve into this exciting field.
ContributeContributions and feedback are welcome! If you'd like to improve this package or report issues, please visit our GitHub repository.
LicenseThis package is licensed under the MIT License. Feel free to use and modify it as needed.
Package: pybranca
Branca Tokens for PythonAuthenticated and encrypted API tokens using modern crypto.What?Brancais a secure easy to use token format which makes it hard to shoot yourself in the foot. It uses IETF XChaCha20-Poly1305 AEAD symmetric encryption to create encrypted and tamperproof tokens. Payload itself is an arbitrary sequence of bytes. You can use for example a JSON object, plain text string or even binary data serialized byMessagePackorProtocol Buffers.Although not a design goal, it is possible to useBranca as an alternative to JWT.InstallInstall the library using pip. Note that you also must havelibsodiuminstalled.$ brew install libsodium
$ pip install pybrancaUsageThe payload of the token can be anything, like a simple string.importsecretsfrombrancaimportBrancakey=secrets.token_bytes(32)branca=Branca(key)token=branca.encode("Hello world!")payload=branca.decode(token)print(token)print(payload)# 87xqn4ACMhqDZvoNuO0pXykuDlCwRz4Vg7LS3klfHpTiOUw1ramOqfWoaA6bvsGwOQ49MDFOERU0T# b'Hello world!'For more complicated data structures JSON is an usual choice.importjsonimportsecretsfrombrancaimportBrancakey=secrets.token_bytes(32)branca=Branca(key)string=json.dumps({"scope":["read","write","delete"]})token=branca.encode(string)payload=branca.decode(token)print(token)print(payload)print(json.loads(payload))# 6AlLJaBIFpXbwKTFsI3xXsk4se8YsdEKOtxYwtYDQHpoqabwZzmxAUS99BLxBJpmfJqnJ9VvzJYO1FXfsX78d0YsvTe43opYbUPgUao0EGV5qBli# b'{"scope": ["read", "write", "delete"]}'# {'scope': ['read', 'write', 'delete']}By usingMessagePackyou can have more compact tokens.importmsgpackfrombrancaimportBrancakey=secrets.token_bytes(32)branca=Branca(key)packed=msgpack.dumps({"scope":["read","write","delete"]})token=branca.encode(packed)payload=branca.decode(token)print(token)print(payload)print(msgpack.loads(payload,raw=False))# 3iJOQqw5CWjCRRDnsd7Jh4dfsyf7a4qbuEO0uT8MBEvnMVaR8rOW4dFKBVFKKgxZkVlNchGJSIgPdHtHIM4rF4mZYsriTE37# b'\x81\xa5scope\x93\xa4read\xa5write\xa6delete'# {'scope': ['read', 'write', 'delete']}LicenseThe MIT License (MIT). Please seeLicense Filefor more information.
Package: pybraries
Pybraries is a Python wrapper for the libraries.io API.
g
You can use it to subscribe to email alerts for
new versions of open source packages.You can also use it to find information about
many aspects of open source packages and repositories.The full documentation is hosted atRead the Docs.Quick StartInstallInstall from PyPI.:pip install pybrariesUseGet your API key fromlibraries.io.Set your API key as to theLIBRARIES_API_KEYenvironment variable from the command line withexport LIBRARIES_API_KEY="your_libraries.io_api_key_goes_here"Import the pybraries package and use it to subscribe to a package.frompybraries.subscribeimportSubscribes=Subscribe()s.subscribe("pypi","pandas")Now you’ll get an email update every time a new version ofpandasis released.Here’s another example.
Search for projects withvisualizationas a keyword andpythonas a language.
Sort by the number of stars.frompybraries.searchimportSearchsearch=Search()info=search.project_search(keywords='visualization',sort='stars',platform='pypi')print(info)A list of dictionaries with project names and other project information is returned.Note that the Libraries.io API is rate limited to 60 requests per minute.All libraries.io methods are implemented,
except updating a subscription to not include prereleases.
This option can be toggled at thelibraries.iowebsite.Search() and Subscribe() are the two classes in this package.
See all their available methods by clicking on the method names in the left sidebar in thedocumentation.Key TermshostA repository host platform. e.g. GitHubownerA repository owner. e.g. pandas-devrepoA repository. e.g. pandasuserA repository user  e.g. a GitHub username. e.g. discdiverplatformA package manager platform. e.g. PyPIprojectA package or library distributed by a package manager platform. e.g. pandasNote that many repos and projects share the same name.
Many owners and repos also share the same name.
Further, many owners are also users.
Fun! 😁Pybraries methods that return one item generally return a dict with information.Methods that return multiple items return a list of dicts.DocsCheck out the full pybrariesdocumentation.Getting Help1. Check out the pybraries docs.
1. Check out the libraries.io docs.
1. Open an issue onGitHubor tag a question onStack Overflowwith “pybraries”.ContributingContributions are welcome and appreciated! SeeContributing.LicenseBSD-3-clause
Package: pybravia
pybraviaPython Bravia provides an easy-to-use async interface for controlling of Sony Bravia TVs 2013 and newer.This library primarily being developed with the intent of supportingHome Assistant.For more information, take a look atBRAVIA Professional Display Knowledge Center.RequirementsThis library supports Python 3.8 and higher.InstallationpipinstallpybraviaConnect and API usageWith PSK (recommended)importasyncioimportloggingfrompybraviaimportBraviaClient,BraviaErrorHOST="192.168.1.20"PSK="sony"logging.basicConfig(level=logging.DEBUG)asyncdefmain():"""Example of connect with PSK."""asyncwithBraviaClient(HOST)asclient:try:connected=awaitclient.connect(psk=PSK)info=awaitclient.get_system_info()print(info)awaitclient.volume_up()exceptBraviaError:print("Could not connect")loop=asyncio.new_event_loop()loop.run_until_complete(main())loop.close()With PIN codeStart pairing process and display PIN on the TVimportasyncioimportloggingfrompybraviaimportBraviaClient,BraviaErrorHOST="192.168.1.20"CLIENTID="MyClientID"NICKNAME="MyNicknameID"logging.basicConfig(level=logging.DEBUG)asyncdefmain():"""Pairing process initialization example."""asyncwithBraviaClient(HOST)asclient:try:awaitclient.pair(CLIENTID,NICKNAME)exceptBraviaError:print("Could not connect")loop=asyncio.new_event_loop()loop.run_until_complete(main())loop.close()Connect and usageimportasyncioimportloggingfrompybraviaimportBraviaClient,BraviaErrorHOST="192.168.1.20"CLIENTID="MyClientID"NICKNAME="MyNicknameID"PIN="2170"logging.basicConfig(level=logging.DEBUG)asyncdefmain():"""Example of connect with PIN."""asyncwithBraviaClient(HOST)asclient:try:connected=awaitclient.connect(PIN,CLIENTID,NICKNAME)info=awaitclient.get_system_info()print(info)awaitclient.volume_up()exceptBraviaError:print("Could not connect")loop=asyncio.new_event_loop()loop.run_until_complete(main())loop.close()ContributingSee an issue? Have something to add? Issues and pull requests are accepted in this repository.LicenseThis project is released under the MIT License. Refer to the LICENSE file for details.
Package: pybravo
pybravo :mechanical_arm:pybravo is a Python interface for interacting with theReach Bravo
7manipulator
over an Ethernet connection.:warning: Disclaimer :warning:This is an independent project, and is not affiliated with or maintained by
Reach Robotics. Please refer to theReach Robotics
SDKfor all official software.Main featuresThe main features of pybravo include:An easy-to-use interface for sending and receiving packets from the
Bravo armImplements the Reach serial protocolAttach callbacks for asynchronous packet handlingInstallationpybravo can be installed fromPyPIby
running:python3-mpipinstallpybravoTo build pybravo from source, please refer to the following steps:Clone the projectrepositoryNavigate to thepybravobase directorycdpath/to/pybravoInstall the packagepython3-mpipinstall.Quick startRefer to the following code snippet for a simple example showing how to get
started with pybravo. Additional examples may be found in the projectexamples.importstructimporttimefrombravoimportBravoDriver,PacketID,DeviceID,Packetdefexample_joint_positions_cb(packet:Packet)->None:"""Read the joint positions from the Bravo 7.Args:packet: The joint position packet."""position:float=struct.unpack("<f",packet.data)[0]print(f"The current joint position of joint{packet.device_id}is{position}")if__name__=="__main__":bravo=BravoDriver()# Attempt to establish a connection with the Bravobravo.connect()# Attach a callback to be executed when a packet with the POSITION ID is# receivedbravo.attach_callback(PacketID.POSITION,example_joint_positions_cb)# Create a request for the current joint positionsrequest=Packet(DeviceID.ALL_JOINTS,PacketID.REQUEST,bytes([PacketID.POSITION.value]))# Send the requestbravo.send(request)# Wait a second for the Bravo to respond to the requesttime.sleep(1.0)bravo.disconnect()LicenseAny proprietary documents or software owned by Reach Robotics and used within
this project are subject to the Reach Robotics licensing. All other software
is is released under the MIT license.
Package: pybrboleto
O projeto original pode ser encontrado aqui:https://github.com/eduardocereto/pybrboletopybrboleto provides a python class to generate “boletos de cobranca” as these
are the Brazilian equivalent for invoices.It’s easy to implement classes for new banks.This class is still in development and currently has no documented API.Implemented BanksYou can help writing code for more banks or printing and testing current
implementations.For now here’s where we are.BankCarteira /ConvenioImplementedTestedBanco do Brasil18YesYesBanrisulxYesYesBradesco06, 03YesYesCaixa EconomicaSRYesNoHSBCCNR, CSBYesNoItau157YesYesItau175, 174, 178,
104, 109YesNoReal57YesNoSantander102YesYesSantander101, 201YesNoDocumentationhttp://packages.python.org/pybrboleto/The best way to learn how to create Boletos using pybrboleto is to look at the
examples atpdf_pybrboleto_sample.pyorhtml_pybrboleto_sample.pyInstallationYou can install pybrboleto either via the Python Package Index (PyPI)
or from source.To install using pip,:$ pip install pybrboletoTo install using easy_install,:$ easy_install pybrboletoDownloading and installing from sourceDownload the latest version of pybrboleto fromhttp://pypi.python.org/pypi/pybrboleto/You can install it by doing the following,:$ tar xvfz pybrboleto-0.0.0.tar.gz
$ cd pybrboleto-0.0.0
$ python setup.py build
# python setup.py install # as rootUsing the development versionYou can clone the repository by doing the following:$ git clone https://github.com/eduardocereto/pybrboleto.gitExecuting unittestsYou needpdftohtml.:$ cd pybrboleto
$ python setup.py testLicenseThis software is licensed under theNew BSD License. See theLICENSEfile in the top distribution directory for the full license text.
Package: pybrctl
PybrctlPybrctl is a pure Python library for managing bridges. It is a lightwight wrapper for the linux brctl command, included in the bridge-utils package.
It requires Python, Linux, and the bridge-utils package.It was written by Ido Nahshon at Jan 2015, and it was released under the GPL license.Example UsageThis example shows how to set up a new bridge and remove it:import pybrctl

brctl = pybrctl.BridgeController()

b = brctl.addbr("br0")
b.addif("eth0")
b.addif("eth1")
b.setmaxageing(0)

brctl.delbr("br0")SourceLatest version on github:https://github.com/udragon/pybrctlFeel free to contribute. ;)
Package: pybrdst
Um simples calculador das datas de início e fim do horário de verão
brasileiro a partir de um ano especificado.InstalandopipinstallpybrdstComo usarObtendo o início e fim do horário de verão:frompybrdst.pybrdstimportPyBrDSTdst=PyBrDST()start,end=dst.get_dst(2017)print(start)2017-10-1500:00:00print(end)2018-02-1800:00:00Obtendo somente o início do horário de verão:frompybrdst.pybrdstimportPyBrDSTdst=PyBrDST()start=dst.begin_dst(2017)print(start)2017-10-1500:00:00Obtendo somente o fim do horário de verão:Observe que a data informada será o fim que ocorreu ou ocorrerá no ano
informado e não no ano seguintefrompybrdst.pybrdstimportPyBrDSTdst=PyBrDST()end=dst.end_dst(2017)print(end)2017-02-1900:00:00Obtendo a data da Páscoa:frompybrdst.pybrdstimportPyBrDSTdst=PyBrDST()easter_date=dst.easter_date(2017)print(easter_date)2017-04-1600:00:00Obtendo a data do carnaval:frompybrdst.pybrdstimportPyBrDSTdst=PyBrDST()carnival_date=dst.carnival_date(dst.easter_date(2017))print(carnival_date)2017-02-2800:00:00Todos os retornos são do tipodatetime.datetime
Package: pybreach
Bidirectional Reach (BReach)This Python Package provides an implementation of the methodology presented in Identification of temporal consistency in rating curve data: Bidirectional Reach (BReach). BReach identifies the consistency of rating curve data based on a quality analysis of model results. Results of this analysis enable the detection of changes in data consistency.Free software: MIT licenseDocumentation:https://pybreach.readthedocs.io.FeaturesThe current scope of the package is to ensure that based on a 2-D matrix of performance measures (calculated for each data point and a given number of parameter sets), the package calculates both reaches and provides the visualisation(s) to interpret the data.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-04-19)First release on PyPI.
Package: pybreaks
Detection and correction of structural breaks in (climate) time series.DescriptionThis package currently includes methods to test for inhomogeneities in satellite soil moisture measurements.
In also contains implementations for correcting detected breaks, currently there are three methods:Linear Model Pair matchingHigher Order Moment adjustment (see alsohttps://doi.org/10.1175/JCLI3855.1)Quantile Category Matching (see alsohttps://doi.org/10.1175/2010JAMC2376.1)The main modules in the package are:TsRelBreakTest: Implements relative statistical tests between two subperiods to detect a break between them.RegressPairFit,HigherOrderMoments,QuantileCatMatch: Classes that implement the correction methods.TsRelBreakAdjust: Combines the detection and correction methods to correct a break between two subperiods.TsRelMultiBreak: Iterates over multiples breaks in a time series to correct them.DocumentationMethods in this package are described in“W. Preimesberger, T. Scanlon, C. -H. Su, A. Gruber and W. Dorigo, “Homogenization of Structural Breaks in the Global ESA CCI Soil Moisture Multisatellite Climate Data Record,” in IEEE Transactions on Geoscience and Remote Sensing, vol. 59, no. 4, pp. 2845-2862, April 2021, doi: 10.1109/TGRS.2020.3012896.”NoteThis project has been set up using PyScaffold 2.5.9. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.
Package: pyBrematic
pyBrematicThe topic "smart home" or "home automation" in particular has become increasingly popular throughout the last few years. While many manufacturers are relying
on cloud infrastructure, there are some that produce local-only devices, using the 433 MHz ISM band.The python module "pyBrematic" enables you to control and automate your 433 MHz remote power outlets (and other switches/dimmers) with the Python programming
language. All you need for this is a supported 433 MHz network gateway, such as theIntertechno ITGW-433, theBrematic GWY 433(orCONNAIR 433, which is
basically the same as the Brematic one).With the help of the community we might get other devices working as well.InstallationThis module is available on pypi and hence can be downloaded via pip like this:pip install pyBrematicAnd if you are having issues with installing the package, try to use the--userswitch,
toinstall it to your home directory.PyBrematic has no external dependencies. Only Python versions >= 3.5 are supported.Example usageTo check out how to use the module, go to theexample file. There you'll
find an example configuration of how to use the module.frompyBrematicimportActionfrompyBrematic.devices.brennenstuhlimportRCS1000NfrompyBrematic.devices.intertechnoimportITR3500,calc_system_and_unit_codefrompyBrematic.gatewaysimportBrennenstuhlGateway# Set your system and unit codessystem_code="11110"# DIPs 1-4 are in the 'up' position, 5 is 'down'unit_code="10000"# DIP A is in the 'up' position, B-E are 'down'# Create a new device with the specified codesdesk_lamp=RCS1000N(system_code,unit_code)# For Intertechno devices you can also use the following methods to get the code# via master/slave (letter/number) notation. Allowed values are "A-P" and "1-16".led_system_code,led_unit_code=calc_system_and_unit_code("A3")led_strip=ITR3500(led_system_code,led_unit_code)# Create a new gateway located at the specified IPgw=BrennenstuhlGateway("192.168.178.9")# Send the request and pass it the device and the action (on/off)gw.send_request(desk_lamp,Action.ON)gw.send_request(desk_lamp,Action.OFF)Important noticeSince all data packets are sent to the gateways viaUDP, it cannot be guaranteed, that all requests
will be received by the gateway. For critical purposes you cannot rely on sending the signal once.
Package: pybrewerydb
This is a Python wrapper around the BreweryDB API.  It is a work in progress with
only a handful of endpoints implemented at this point.DocumentationRead the full documentationhttp://pybrewerydb.readthedocs.orgInstallationUse pip:pip install pybrewerydbPython Package Indexhttps://pypi.python.org/pypi/pybrewerydbGet yourself an API key to usehttps://www.brewerydb.com/auth/signup/ref/appsBasic UsageCreate a PyBreweryDB instance using your api key:>>> from brewerydb.brewerydb import BreweryDB
>>> brew_api = BreweryDB(key)
>>> beers = brew_api.search_beer('fat tire')ContributingClone the repo athttp://github.com/dstegelman/pybrewerydbFeel free to log issues in Github or, better yet, submit a Pull Request against themasterbranch.LicensingPyBreweryDB is distributed under the MIT License.### AuthorsDerek StegelmanHeavily inspried and several linez of codez drawn from PyMarvel by @gpennington
Package: pybricks
This repository documents the Pybricks end-user MicroPython API.EachPybricks firmwarecomes with thePybricks package. All modules,
classes, methods, and functions in that package have optimized implementations
in C for high performance and reduced memory footprint.This repository provides an empty, pure Python blueprint of that package. It is
used to generate theofficial documentation.
See thecontributor’s guidefor acceptable changes and
instructions to build the documentation locally.You can use the API stubs in this repository for syntax highlighting and code
completion when programming the EV3 with VS Code. To enable, remove the"python.languageServer"="None"line in the.vscode/settings.jsonfile
generated by theLEGO® MINDSTORMS® EV3 MicroPythonextension.For general discussion, please visit thesupportissue tracker.