Saravanan666/pypi-org huggingface dataset:
Package: python-blockbee-checkout
BlockBee's Python LibraryPython implementation of BlockBee's payment gatewayRequirements:Python >= 3.0
Requests >= 2.20Installpipinstallpython-blockbee-checkouton pypioron GitHubUsageImporting in your project filefromBlockBeeimportBlockBeeCheckoutHelperGenerate a Payment Checkout pagefromBlockBeeimportBlockBeeCheckoutHelperbb=BlockBeeCheckoutHelper(api_key,params,bb_params)payment_page=bb.payment_request(redirect_url,value)Where:api_keyis the API Key provided by ourDashboard.paramsis any parameter you wish to send to identify the payment, such as{'order_id': 1234}.bb_paramsparameters that will be passed to BlockBee _(check which extra parameters are available here:https://docs.blockbee.io/#operation/create).redirect_urlURL in your platform, where the user will be redirected to following the payment. Should be able to process the payment using thesuccess_token.valueamount in currency set in Payment Settings you want to receive from the user.Getting notified when the user completes the PaymentWhen receiving payments, you have the option to receive them in either thenotify_urlor theredirect_url, but adding theredirect_urlis required (refer to our documentation athttps://docs.blockbee.io/#operation/paymentipn).Requesting DepositfromBlockBeeimportBlockBeeCheckoutHelperbb=BlockBeeCheckoutHelper(api_key,params,bb_params)deposit_page=bb.deposit_request(notify_url)api_keyis the API Key provided by ourDashboard.paramsis any parameter you wish to send to identify the payment, such as{'order_id': 1234}.bb_paramsparameters that will be passed to BlockBee _(check which extra parameters are available here:https://docs.blockbee.io/#operation/deposit).notify_urlURL in your platform, where the IPN will be sent notifying that a deposit was done. Parameters are available here:https://docs.blockbee.io/#operation/depositipn.Getting notified when the user makes a depositWhen receiving deposits, you must provide anotify_urlwhere our system will send an IPN every time a user makes a deposit (refer to our documentation athttps://docs.blockbee.io/#operation/depositipn).HelpNeed help?Contact us @https://blockbee.io/contacts/Changelog1.0.0Initial Release1.0.1Minor bugfixes1.0.2Minor bugfixes
Package: pythonbmp
pythonbmpA pure Python 2D/3D graphics library that outputs to windows bitmap formatDeveloped and tested using Python 3.8 / 3.10.4 / 3.11No dependencies requiredInstructionsRun Hello_somestring_here.pyThis will show minimum code to accomplish certain tasks(my old friend) is a minimum templateRunIt should generate a bitmap and open MS Paint under windows to show output...Close the MS Paint window to execute another scriptUnit tests (images are links to test)Will generate images (one per function under test) then compare it with previously generated images generated with the function under test (this might take a while)Moar docs
Package: python-bmp-generator
Python Bitmap GeneratorThis program was created with the intent of learning how to generate bitmaps from scratch.
Please feel free to open a pull-request, issue, or fork!This tool was built using Python version 3.11.2. I have not tested this using any other versions, although it likely works with substantially older versions of Python3.INSTALLATIONrunpip install python-bmp-generatorUSAGECLIrunpython-bmp-generator -hfor help.example:python-bmp-generator -r 0 -g 255 -b 0 -o green-image.bmpPython ModuleThere is really only one function at this time. See "create_bmp.py" for details.include like:from python_bmp_generator import create_bmpexample:from python_bmp_generator import create_bmp

create_bmp(file_name="output.bmp", width=100, height=100, red=255, green=0, blue=255)
Package: python-boardgamegeek
python-boardgamegeekpython-boardgamegeekis a Python library which makes it easy to access data fromBoardGameGeekusing theirofficial XML API.This is a fork oflcosmin/boardgamegeek.Installation$pipinstall--upgradepython-boardgamegeekDocumentationDocumentation is available athttp://lcosmin.github.io/boardgamegeek
Package: python-bogus-project-honeypot
python-bogus-project-honeypotThis project releases automatically on PyPi… by a bot. It’s then downloaded by bots and mirrors.If you want to be a real jerk, download it.Why is this project necessary?To correct statistics.Thousands of hits are generated by bots and mirrors, often way more than humans create. This makes it very difficult to collect statistics from PyPi.The great maintainers of PyPi should not suffer anymore headaches inflicted by bots and mirrors. We as a community can try to provide a meaningful service for correcting those statistics already offered.
Package: python-boilerplate123123
Python boilerplateTable of ContentsPrerequisitesInstallationWhat's in the box ?TestingDockerPrerequisitesPython>=3.11 <3.12(tested with 3.11.5)pre-commitpoetry>=1.2.2 <1.7(tested with 1.6.1)docker(optional)InstallationClone the git repositorygitclonehttps://github.com/smarlhens/python-boilerplate.gitGo into the project directorycdpython-boilerplate/Checkout working branchgitcheckout<branch>Enable pre-commit hookspre-commitinstallWhat's in the box ?PoetryPoetryis a tool for dependency management and packaging in Python. It allows you to
declare the libraries your project depends on and it will manage (install/update) them for you.pyproject.toml file(pyproject.toml): orchestrate your project and its dependenciespoetry.lock file(poetry.lock): ensure that the package versions are consistent for everyone
working on your projectFor more configuration options and details, see theconfiguration docs.pre-commitpre-commitis a framework for managing and maintaining multi-language pre-commit hooks..pre-commit-config.yaml file(.pre-commit-config.yaml): describes what repositories and
hooks are installedFor more configuration options and details, see theconfiguration docs.ruffruffis an extremely fast Python linter, written in Rust.Rules are defined in thepyproject.toml.For more configuration options and details, see theconfiguration docs.mypymypyis an optional static type checker for Python that aims to combine the benefits of
dynamic (or "duck") typing and static typing.Rules are defined in thepyproject.toml.For more configuration options and details, see theconfiguration docs.blackblackis an uncompromising code formatter.Rules are defined in thepyproject.toml.For more configuration options and details, see theconfiguration docs.banditbanditis a tool designed to find common security issues in Python code.Rules are defined in thepyproject.toml.For more configuration options and details, see theconfiguration docs.docformatterdocformatteris a tool designed to format docstrings to
followPEP 257.Options are defined in the.pre-commit-config.yaml.TestingWe are usingpytest&pytest-covto write tests.To run tests:poetryrunpytesttestsOutputcollected 1 item

tests/test_myapplication.py::test_hello_world PASSEDTo run tests with coverage:poetryrunpytesttests--cov=srcOutputcollected 1 item

tests/test_myapplication.py::test_hello_world PASSED

---------- coverage: platform linux, python 3.10.4-final-0 -----------
Name                            Stmts   Miss  Cover
---------------------------------------------------
src/myapplication/__init__.py       1      0   100%
src/myapplication/main.py           6      2    67%
---------------------------------------------------
TOTAL                               7      2    71%DockerBuildTo build the dockerproductionimage usingDockerfile:dockerbuild.-tmy-python-application:latestTo build the dockerdevelopmentimage usingDockerfile:dockerbuild.--targetdevelopment-tmy-python-application:devRunTo run the python app example inside Docker:dockerrun-it--rmmy-python-application:latest# or :dev for developmentOutputHello WorldExecute command inside containerdockerrun-it--rmmy-python-application:latestbash
Package: python_boilerplate2
Python BoilerplatePython Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://python-boilerplate.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-09-06)First release on PyPI.
Package: python-boilerplate-decaf
python boilerplate decafPython Boilerplate CfB contains all the boilerplate you need to create a Python package within the DeCaF projectFree software: GNU General Public License v3Documentation:https://python-boilerplate-decaf.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-07-21)First release on PyPI.
Package: python-boilerplate-uwbobqpgbvbg
Python BoilerplatePython Boilerplate contains all the boilerplate you need to create a Python package.Free software: GNU General Public License v3Documentation:https://python-boilerplate.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-09-23)First release on PyPI.
Package: python-bol-api-latest
A Python wrapper for the bol.com API forked fromhttps://github.com/pennersr/python-bol-apiThis is currently under development but stable to be used.
We are adding more and more features as the api has changed a lot from the time this version was created in original projectA Python wrapper for the bol.com API. Currently rather incomplete, as
it offers only those methods required for my own projects so far.Open APIInstantiate the API:>>> from bol.openapi.api import OpenAPI
>>> api = OpenAPI('api_key')Invoke a method:>>> data = api.catalog.products((['1004004011187773', '1004004011231766'])JSON data is returned “as is”:>>> data['products'][0]['ean']
u'0093155141650'Retailer APISupports the BOL Api v8, documented here:https://api.bol.com/retailer/public/Retailer-API/selling-on-bolcom-processflow.htmlInstantiate the API:>>> from bol.retailer.api import RetailerAPI
>>> api = RetailerAPI()Authenticate:>>> api.login('client_id', 'client_secret')Invoke a method:>>> orders = api.orders.list()
>>> order = api.orders.get(orders[0].orderId))Fields are derived 1:1 from the bol.com API, including lower-CamelCase
conventions:>>> order.customerDetails.shipmentDetails.streetName
'Billingstraat'Fields are properly typed:>>> repr(order.orderPlacedDateTime)
datetime.datetime(2020, 2, 12, 16, 6, 17, tzinfo=tzoffset(None, 3600))
>>> repr(order.orderItems[0].offerPrice)
Decimal('106.52')Access the underlying raw (unparsed) data at any time:>>> order.raw_data
>>> order.raw_contentRunning the testsFirst, make sure that you havetoxinstalled on your system:pip install toxThen, just run the tox:tox
Package: python-boltz
API for authenticating modem users with bolt account:from pyboltz.boltz import Boltz

bolt = Boltz("bolt modem phone number", "password")

if bolt.authenticate():
        print("authentication success !")
        # profile bolt account
        if bolt.myprofile():
                print(bolt.data_post())
                print(bolt.get_profile())
else:
        print("authentication failed !")
Package: python-bonmarketplace-b2w
============python-bonmarketplace-b2w============python-bonmarketplace-b2w é um Cliente Python para integração com Bon Marketplace B2W (Shoptime, Lojas Americanas, Submarino e Soubarato)Installation^^^^^^^^^^^^^Use ``PIP`` or ``easy_install``: ::pip install python-bonmarketplace-b2wDocumentation^^^^^^^^^^^^^Docs are hosted at `ReadTheDocs <http://python-bonmarketplace-b2w.readthedocs.org/>`_.
Package: python-bootstrapper
You can use this project to create new modules quickly. The process for creating a new module is to simply fork this project, rename theproject_modulepackage, change it’s content to and explain your project by replacing any current documentation.  TODO: This docstring should be in standard PEP8 style, with a short description of the module on the first line as seen above. The short line should be followed by a long-form description of your module similar to the one which you are currently reading.
Package: python-borium
Borium provides an API for the borium queue. It exposes simple get/set
methods to grab and push jobs.Borium is a simple queue system written by Kazuyoshi Tlacaelel. To
learn more, visitthe project repository.Usageimport borium

response = borium.put(job_type, config)  # sends the job to the queue
job = borium.get(job_type)               # fetches a jobIn both examples, job_type is a string that specifies the job that is to
be enqueued. The config, though dependent on the job itself, is usually
a JSON object containing the configuration needed.All requests to the queue will return an object containing a key called
status. In the case of get this can be: nothing, unparseable, error or
found. In the case of put this can be: error or stored.If the job was found, the object will also include the key “job” which
includes the config string passed.
Package: pythonbot
Python Bot Api WrapperHandles messages and other events from the Python Bot api.Messages are returned as a Message object with the content and a unique id.When the client if defined and ran, it will asynchronously check for new messages in the api.There are two types of events currently:on_readyandon_messageon_readyis used to check if the api is up and that everything is working correctly.on_messageis used to perform certain actions when a message is received.Example of usageimport pythonbot

client = pythonbot.Client()

@client.event
async def on_ready():
    print("Client is ready.")

@client.event
async def on_message(message):
    print("New message: " + message.content)

client.run()
Package: python-boxview
Python client library forBox View APIInstallationThe easiest way to install the latest version is by using
pip/easy_install to pull it from PyPI:pip install python-boxviewYou may also use Git to clone the repository from Github and install it
manually:git clone https://github.com/caxap/python-boxview.git
python setup.py installAuthenticationBox View API uses token-based authentication. You need create
application and generate api token atBox Developes Portal. Then use
the token to create instancefromboxviewimportboxviewapi=boxview.BoxView('<your box view api key>')Alternatively, token can be set by environment variableBOX_VIEW_API_KEY.Usagepython-boxview supports all methods from Box View API. List of methods
and parameters description can be foundhereimportosfromboxviewimportboxviewapi=boxview.BoxView('<your box view api key>')# upload file to create new documentdoc=api.create_document(file='python-boxview.pdf',name='python-boxview')# create new document from public urldoc=api.create_document(url='https://cloud.box.com/shared/static/4qhegqxubg8ox0uj5ys8.pdf')doc_id=doc['id']# retrieve existings documentdoc1=api.get_document(doc_id)# list all uploaded documents for your api keyall_docs=api.get_documents(limit=10)# update name of existing documentdoc1=api.update_document(doc_id,name='python-boxview')# check that document ready to viewbool(api.ready_to_view(doc_id))# start view session for documentsession=api.create_session(doc_id,duration=300)ses_id=session['id']# get link to box viewerapi.get_session_url(ses_id)# retrieve original document content to stringcontent,mimetype=api.get_document_content_to_string(doc_id)len(content)# retrieve pdf version of document to fileapi.get_document_content_to_file('python-boxview.pdf',doc_id,extension='.pdf')os.path.exists('python-boxview.pdf')# retrieve mimetype of original document contentmimetype=api.get_document_content_mimetype(doc_id)# create webhookapi.create_webhook('http://example.com/my-webhook')# create S3 storage profileapi.create_storage_profile('S3','super-awesome-bucket','AKIAIOSFODNN7EXAMPLE','wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY')# and delete documentapi.delete_document(doc_id)Dealing with Rate Limitingimporttimefromboxviewimportboxviewapi=boxview.BoxView('<your box view api key>')document_id='2da6cf9261824fb0a4fe532f94d14625'retry,max_retry=0,3whileTrue:try:api.get_thumbnail_to_file('thumbnail_100x100.png',document_id,100,100)break# ok, thumbnail savedexceptboxview.RetryAfterase:retry+=1ifretry<=max_retry:time.sleep(e.seconds)# waiting for next callelse:raise# failed after `max_retry` attempts, exit with exceptionLicenseThe MIT License (MIT)Contributed byMaxim Kamenkov
Package: python-bpe-tokenizer
The BPE Tokenizer is a Python package implementing a Byte Pair Encoding (BPE) Tokenizer for code snippets. It tokenizes code based on a predefined vocabulary learned from the input code.## FeaturesTokenizes code using Byte Pair Encoding (BPE) methodology.Sanitizes code by extracting relevant tokens.Supports various case styles: camel case, Pascal case, snake case, and lowercase.## Installation`bash pip installbpe-tokenizer`
Package: pythonbpjs
pythonbpjsAplikasi Python yang digunakan untuk menangani proses dekripsi respon data dari bridging BPJS VClaim v2.0 (Encrypted Version). Support VClaim v1 / v1.1 dan Antrean RS.KebutuhanUtamaPythonPackagelzstringrequestspycryptodomeVirtual EnvironmentBagian ini opsional tetapi sangat disarankan untuk membuat virtual environment supaya ketika ada update package yang tidak support / bermasalah tidak akan mengganggu aplikasi lain.Membuat Virtual Environmentpython-mvenvvirtualenvataupython3-mvenvvirtualenvAktivasi Virtual EnvironmentWindowsvirtualenv\Scripts\activateBashsourcevirtualenv/bin/activateInstalasipipinstallpythonbpjsSumber Dayahttps://dvlp.bpjs-kesehatan.go.id:8888/trust-mark/portal.htmlLisensiAplikasi ini open source dengan lisensiMIT.
Package: pythonbq
PythonBQPython wrapper for easy use of big queryFeaturesEasily pull big query data from pythonSetupMake sure you have Python 3.7.x (or higher) installed on your system. You can download ithere.Installationpip install pythonbqExamplefrom pythonbq import pythonbq
myProject=pythonbq(
  bq_key_path='path/to/bq/key.json',
  project_id='myGoogleProjectID',
  legacy_sql=False
)
output=myProject.query(sql="""select * from myProjectTable""")Documentation for pythonbq Functionshttps://connor-makowski.github.io/pythonbq/pythonbq.htmlOutput DataOutput from thequeryfunction is returned as a list of dictionariesThis can be modified by specifying the argumentout_typein your.query()dict: list of dictionarieslist: list of lists (header as the first row)raw: list of lists (with no header row)EG:output=myProject.query(sql="""select * from myProjectTable""", out_type='list')EG:query = """
    SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013`
    WHERE state = "TX"
    LIMIT 5
"""

myProject = pythonbq(
    key_path='./private/bq_key.json',
)
output = myProject.query(sql=query)
# output = [{'name': 'Mary'}, {'name': 'Roberta'}, {'name': 'Marguerite'}, {'name': 'Katie'}, {'name': 'Eunice'}]
Package: python-brainfuck
brainfuck.py - seamless usage of Brainfuck in Python codebrainfuck.py compiles Brainfuck programs to Python AST, enabling the
integration of industial-strength Brainfuck programs with Python code. Example:>>>importbrainfuck>>>hello=brainfuck.to_function("""++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.""")>>>hello()'Hello World!\n'For convenience, an import hook is also provided:>>>brainfuck.install_import_hook()>>># Note: programs is a python package (with __init__.py# and a brainfuck file named rot13.bf)>>>fromprogramsimportrot13>>>rot13.rot13("brainfuck")'oenvashpx'>>># The module can also be called directly>>>rot13("foobar")'sbbone'Installation$ pip install python-brainfuckOR$ git clone git@github.com:koirikivi/brainfuck.git
$ cd brainfuck
$ python setup.py installOR just copybrainfuck.pysomewhere in your PYTHONPATH.Platform supportLatest versions of Python 2, 3 and PyPy are supported and tested. Other Python
versions that have support for theastmodule should work too, but are not
tested.Unit testsRun tests with$ python test_brainfuck.pyTODOOptimizations for the brainfuck-generated AST  (this is a big one!)More testsRunning tests with toxPython AST to brainfuck compilation (may take some time)LicenseMIT (programs in the programs-directory may be licensed differently)
Package: python-brcode
python-brcodeGenerates static BR Codes that could be used for PIX payments
using simple value copy and paste or generating QR Codes.Notes:Although this initial version is functional,
it's yet very simple.
We're not performing proper data validation
and the user is responsible for providing valid PIX Keys.For example:email addresses should be validCPF and CNPJ should contain only digitsphone numbers should follow international patterns and begin with a + signthe amount should not be a negative numberAlways check the resulting codes or code generation routines before exposing them in production environments.Tested with Nubank, Inter, Banco do Brasil, and BTG banks.Installingpipinstallpython-brcodeUsageIncluding all parametersfromdecimalimportDecimalfrombrcodeimportBRCodebrcode=BRCode(name="Victor Torres",key="vpaivatorres@gmail.com",city="Natal",amount=Decimal(10.00),# optionaldescription="Biblioteca python-brcode",# optionaltransaction_id="***",# optional)assertstr(brcode)=="00020126720014br.gov.bcb.pix0122vpaivatorres@gmail.com0224Biblioteca python-brcode520400005303986540510.005802BR5913Victor Torres6005Natal62070503***6304C1FA"Omitting optional parametersfromdecimalimportDecimalfrombrcodeimportBRCodebrcode=BRCode(name="Victor Torres",key="vpaivatorres@gmail.com",city="Natal",)assertstr(brcode)=="00020126480014br.gov.bcb.pix0122vpaivatorres@gmail.com02005204000053039865802BR5913Victor Torres6005Natal62070503***6304A5EE"Generating QR CodeThis library does not handle QR Code generation.To generate a QR Code that could be scanned by most bank apps,
you should use a third-party library of your choice.
The QR Code should be generated using the BR Code as its text.ExampleUsing the librarypython-qrcode:Install the library:pipinstallqrcodeGenerate a new BR Code and then a QR Code out of it:fromdecimalimportDecimalfrombrcodeimportBRCodeimportqrcodebrcode=(name="Victor Torres",key="vpaivatorres@gmail.com",city="Natal",)img=qrcode.make(str(brcode))img.save("qrcode.png")ReferencesBased ongo-pixrepositoryRegulamento PIX
Package: python-brickscout-api
python-brickscout-apiWrapper for the BrickScout APIInstallThis package is published on PyPi:https://pypi.org/project/python-brickscout-api/Install with pippipinstallpython-brickscout-apiUsageUsage at this point is minimal. I will extend this package as I go and as I need.Create connectionYou will need your username and password.Create a new API connectionfrombrickscout.apiimportBrickScoutAPIapi=BrickScoutAPI(username='xxx',password='xxx')OrdersGet all open ordersOrders are considered open if they have not been marked as deleted or shipped.orders=api.orders.get_open_orders()fororderinorders.iterator():print(vars(order))Retrieve an orderorder=api.orders.get(id)print(vars(order))Update an orderorder=api.orders.get(id)order.internalComment='this is my new comment'api.orders.update(order)Mark an order asPAIDorder=api.orders.get(id)api.orders.mark_as_paid(order)Mark an order asPACKEDorder=api.orders.get(id)api.orders.mark_as_packed(order)Mark an order asSHIPPEDorder=api.orders.get(id)api.orders.mark_as_shipped(order)Error handlingBasic error handling has been added. You can check if an error has occured during a call by checking thehas_errorattribute on an object. If thehas_errorhas been set toTrue, anErrorobject will be attached to theerrorattribute of the same object. TheErrorobject contains following attributes:type,exception_code,developer_message,more_info_urlandtimestamp.order=api.orders.get(id)iforder.has_error:print(order.error.exception_code)print(order.error.developer_message)