Saravanan666/pypi-org huggingface dataset:
Package: bakasur
BakasurBakasur(/buh-KAA-soor/) is your friendly demon who helps you analyse your Thuisbezorgd order history and visualise it.DisclaimerThis tool requires you to log in using your Thuisbezorgd credentials. Upon correct input, you will recieve
a email with a verification code from Thuisbezorgd. Once the details are added,bakasurwill create athuisbezorgd_token.jsonfile in your current working directory which will store theauthTokenandrefreshTokenreceived from the login request.
These tokens will help in authenticating the Thuisbezorgd API in the subsequent runs of this tool.
If you are concerned about the security of the tokens they are on your local filesystem and you can also review
the code to check that there are no evil intentions here.Your username and password are not stored.How to use this toolThis tool uses a number of packages such astyper,rich,datapane. To avoid any conflicts with your current installed
site-packages, it is preferable to create a virtual environment and then install this tool.Create a virtual environmentvirtualenv venvand activate itsource venv/bin/activateInstall Bakasur usingpip install bakasurOnce it is installed you can now type inbakasurin your terminal and get startedTool specificsWhen you first log in to Thuisbezorgd usingbakasurit creates a sqlite database in your current working directorythuisbezrgd.db.
The database stores all your orders and their details in tablesordersanditemsrespectively. During subsequent runs
of the tool, your most recent orders are inserted into the databaseRequires:Python v3.7.1+Thuisbezorgd account (duh!)ContributionGive this tool a try and if you find any bugs or issues with it then feel free to open an issue or start a discussion.
Feature requests, Bug fixes are most welcome.LicenseMIT LicenseImportantThis tool is intended for personal use. A fun hobby project for demo. I am not responsible if you tweak the code and violate
any Thuisbezorgd Terms and Conditions.d-kold
Package: baka-tenshi
Baka model add-ons==================`Baka_tenshi <https://github.com/suryakencana/Baka_tenshi>`_. is add-ons baka framework built top of pyramid that provides an SQLAlchemydeclarative ``Base`` alias model.Model and a add method on ``request.db``.Usage-----You can use these as base classes for declarative model definitions, e.g... code:: pythonfrom base_model.model import Modelclass MyModel(Model):"""Example model class."""__tablename__ = 'base.mymodel'@classmethoddef do_first(cls, session):instance = session.query(cls).first()Register Model--------------using Baka_tenshi, you can apply dependency injection method for model that has been created... code:: pythondef includeme(config):config.register_model('base.MyModel')# in view handler request@route('/my.model', renderer='json')def view_mymodel(request):MyModel = request.find_model('base.mymodel')mymodel = MyModel()mymodel.name = 'user model'mymodel.address = 'user address'mymodel.phone = '0089800-998'request.db.add(mymodel)return {'success': True}Install-------Install with ``.ini`` file.. code:: bashpyramid.includes =Baka_tenshipyramid_debugtoolbarpyramid_mailerInstall with code.. code:: pythondef includeme(config):config.include('Baka_tenshi')
Package: bakatrouble-pony-migrate
AboutPony ORM is easy to use and powerful object-relational mapper for Python.
Using Pony, developers can create and maintain database-oriented software applications
faster and with less effort. One of the most interesting features of Pony is
its ability to write queries to the database using generator expressions.
Pony then analyzes the abstract syntax tree of a generator and translates it
to its SQL equivalent.Following is an example of a query in Pony:select(p for p in Product if p.name.startswith('A') and p.cost <= 1000)Such approach simplify the code and allows a programmer to concentrate
on the business logic of the application.Pony translates queries to SQL using a specific database dialect.
Currently Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.The packagepony.orm.examplescontains several examples.Installationpip install bakatrouble_pony_migrateEntity-Relationship Diagram EditorPony online ER Diagram Editoris a great tool for prototyping.
You can draw your ER diagram online, generate  Pony entity declarations or SQL script for
creating database schema based on the diagram and start working with the database in seconds.Pony ORM Links:Main site:https://ponyorm.comDocumentation:https://docs.ponyorm.comGitHub:https://github.com/ponyorm/ponyMailing list:http://ponyorm-list.ponyorm.comER Diagram Editor:https://editor.ponyorm.comBlog:https://blog.ponyorm.com
Package: bake-a-py
Bake a PyThis project provides a template from which you can create your own Python packages and projects.
It uses modern tools and conventions to ensure a good development experience.Package StructureGitHub FeaturesToolingPackage StructurePackage structure was inspired by various templates and recommended best practices, such as:https://github.com/TezRomacH/python-package-templatehttps://github.com/pyscaffold/pyscaffoldhttps://github.com/f4str/python-package-templatehttps://github.com/audreyfeldroy/cookiecutter-pypackagehttps://github.com/ionelmc/python-namelessIt provides asrcdirectory, under which your own packages sit. Example files for__init__.py,__main__.pyandcli.pyare already provided.Tests are placed under thetestsdirectory, and documentation under thedocsdirectory.To start your new project, you should change its name, URL and metadata details at:README.mdCHANGELOG.mdsetup.pytests/*.pysrc/*GitHub FeaturesThe.githubdirectory comes with a number of files to configure certain GitHub features.Various Issue templates can be found underISSUE_TEMPLATE.A Pull Request template can be found atPULL_REQUEST_TEMPLATE.md.Automatically mark issues as stale after a period of inactivity. The configuration file can be found at.stale.yml.Keep package dependencies up to date with Dependabot. The configuration file can be found atdependabot.yml.Keep Release Drafts automatically up to date with Pull Requests, using theRelease Drafter GitHub Action. The configuration file can be found atrelease-drafter.ymland the workflow atworkflows/release-drafter.yml.Automatic package building and publishing when pushing a new version tag tomain. The workflow can be found atworkflows/publish-package.yml.Code quality and security analysis with CodeQL. The workflow can be found atworkflows/codeql-analysis.yml.ToolingThis package sets up varioustoxenvironments for static checks, testing, building and publishing.
It is also configured withpre-commithooks to perform static checks and automatic formatting.If you do not usetox, you can build the package withbuildand install a development version withpip.Assumecdinto the repository's root.To install thepre-commithooks:pre-commitinstallTo run type checking:tox-etypecheckTo run linting tools:tox-elintTo run automatic formatting:tox-eformatTo run tests:toxTo build the package:tox-ebuildTo build the package (withbuild):python-mbuildTo clean the previous build files:tox-ecleanTo test package publication (publish toTest PyPI):tox-epublishTo publish the package to PyPI:tox-epublish----repositorypypiTo install an editable version:pipinstall-e.
Package: baked
A script to detect that the import order matches Mozilla WebDev Pythonguidelines.Example::[baked] zamboni $ p ~/sandboxes/baked/baked.py lib/video/ffmpeg.py -plib/video/ffmpeg.py:9: order wrong for check_output, subprocess, VideoBase--- /Users/andy/sandboxes/zamboni/lib/video/ffmpeg.py	2014-05-23 16:11:56.000000000 -0700+++ /var/folders/15/3crpnr7j4sj75xynpsqkqbr00000gp/T/tmpXvc_Ml.py	2014-05-23 16:12:11.000000000 -0700@@ -1,14 +1,14 @@import logging+import loggingimport reimport tempfilefrom django.conf import settings+from django_statsd.clients import statsdfrom tower import ugettext as _-from django_statsd.clients import statsdfrom .utils import check_output, subprocess, VideoBase-import loggingNotice that it detected that `logging` should be up at the top and`django_statsd` with the 3rd party imports.Usage::baked.py [filename] [filename..]Filename can be a glob. Or multiple filenames. For example::baked.py apps/*.py mkt/*.pyBaked will also accept files being piped to it, for example::git diff-index HEAD^ --name-only | bakedBaked loads a confg file as JSON. It will look in the following places for the file:* in the current and parent directories of the file being checked for``.baked``* the current directory for ``.baked``* the users profile directory for ``.baked``For an example see:https://gist.github.com/andymckay/5507339The config file contains:* *order*: the list of orders of import ``blocks``. This allows you to group your imports into categories.* *fallback*: if a category is not found for lib, what should it fall back to, for most this will be ``local``.* *from_order*: a dictionary of sections with a boolean value for each section. If the value is false, then baked will not care that an ``import`` came before ``from``. Default is true for each category.* *modules*: a dictionary of categories and a list of modules. This allows baked to put each module in the category.If you'd like to exclude an import from baked add the comment ``#NOQA``.Guidelines:http://mozweb.readthedocs.org/en/latest/coding.html#import-statementsWith one exception, we ignore that imports should be ordered ``CONSTANT``,``Class``, ``var``. Just sort by alpha, case insensitive. That's easier foreveryone to parse.Config params:* ``-i`` change the file in place, but note that it doesn't fix the order ofimports on the same line, for example: ``from foo import XX, bar`` is raisedas a warning, but the order of ``XX`` and ``bar`` is not fixed.* ``-p``: print the diff that baked has calculatedChanges-------0.2.1: lower case import names, so ``import StringIO`` comes after ``importos`` for example0.2: Is a backwards incompatible change, it focuses on generating diffs whichis a lot easier to read than some rules. For imports statements on oneline which are out of order, it still prints the import order anddoesn't try to fix it up.
Package: baked-brie
BRIE: The Barrier Inlet Environment modelThis is the python version of the BarrieR Inlet Envrionment (BRIE) model written
by Jaap Nienhuis and Jorge Lorenzo Trueba. The matlab to python conversion was
performed by Katherine Anarde. Eric Hutton worked to wrap the model with a basic
model interface, reorganized the many model components into classes (i.e., The
Alongshore Transporter), which now allows for dynamical testing of the alongshore
transporter model (see the Jupyter Notebook).CreditsDevelopment LeadsKatherine Anarde <kanarde@ncsu.edu> (python conversion)Jaap Nienhuis <j.h.nienhuis@uu.nl> (original matlab version)ContributorsEric Hutton <mcflugen@gmail.com>Changelog for brie1.0.0b1 (unreleased)Nothing changed yet.1.0.0b0 (2023-02-23)Nothing changed yet
Package: bakeit
BakeIt is a command line utility (and Python library) toPastery, the best pastebin in the world.
BakeIt aims to be simple to use and unobtrusive.InstallationTo install, usepip:pip install bakeitYou are done!UsageUsing BakeIt is similarly easy. First, create a file with your Pastery
API key in~/.config/bakeit.cfg, like so:[pastery]
api_key = eisha8ahqui7Aesh0fasyu8HFsdoThen, just pass the file you want to upload to thebakeitcommand:$ bakeit myfile.txt
Paste URL: https://www.pastery.net/oniasd/You can also pipe stuff to it:$ cat myfile.txt | grep hello | bakeit
Paste URL: https://www.pastery.net/oxczvs/The config fileA full config file can look like this:[pastery]
api_key = eisha8ahqui7Aesh0fasyu8HFsdo
duration = 2880Theapi_keyparameter, as explained above, is mandatory. You can find it at
the bottom ofyour Pastery account page.Thedurationparameter is optional. If set, it will be used as the default
duration for every new paste. The command-line argument takes precedence over
this parameter, though, so you can change it per-paste when invokingbakeit.Usage as a Python libraryBakeIt provides thePasteryUploaderclass:>>> from bakeit import PasteryUploader
>>> pu = PasteryUploader("your API key")
>>> pu.upload("this is the text to upload")
"https://www.pastery.net/pabtus/"PasteryUploaderaccepts the following arguments:body- The body of the paste.title(optional) - The title to give the paste.language(optional) - The language the paste is in. Pastery will
attempt to autodetect this if omitted.duration(optional) - The number of minutes to keep this paste
for.max_views(optional) - The number of views to keep this paste
for.Happy pasting!
Package: bakelite
BakeliteDocumentation|Protocol Spec|Arduino ExampleBakelite is a utility that makes it simple to communicate with your firmware.
Bakelite uses a code generator to automate the tedious process of hand-building your own protocol.
It includes features like framing, error detection, and a lightweight C++ implementation suitable for small microcontrollers.FeaturesCompact, easy to understand data serialization formatSimple message passingBuilt in framing and error detectionEasy to integrate with Serial, USB, TCP, I2C, etc...Use only the parts you needCode generators for:C++ (header only, no STL or memory allocation)PythonA more formal overview of the protocol can be foundhere, and examples can be foundhere.StatusThis project is in early development. The C++ implementation is currently WIP.
The API and data format are not stable, and will change without notice.How Does it Work?You start by creating a protocol definition file that describes the messages and fields you'd like to send. It also includes information about the protocol itself, like what kind of framing to use and the maximum message length.Here's an example:structTestMessage{message:string[128]}structAck{code:uint8}protocol{maxLength=256framing=COBScrc=CRC8messageIds{TestMessage=1Ack=2}}Now that you've created the definition file, we can generate some code:bakelitegen-lpython-imy_proto.bakelite-omy_proto.pyAnd then use it to send a message over a serial port:fromprotoimportProtocol,TestMessage,Ackimportserial# Open a serial port and send an Ack messagewithserial.Serial(':COM1',9600)asport:proto=Protocol(stream=port)proto.send(Ack(code=123))Message serialization, framing, and error detection are all taken care of.
If you need something more customized, you can use any of the components independently.
Drop-in your own CRC algorithm, use the framer with your own message format, or just use the serializer on its own.For a more complete example, have a look at thePython/Arduino Example.
Package: bake_o_matic
import bake_o_matic at the end of a script to turn it into a baked command script.$ cat say.py#!/usr/bin/pythondef hi(msg, **opt):"greet"print 'OH HAI', msg, optimport bake_o_matic$ ./say.pyUsage: ./say.py COMMAND <options>Available commands:hi  greetUse './say.py <command> --help' for individual command help.$ ./say.py hi hoOH HAI ho {}
Package: bakepy
BakePyCreate good-looking documents programatically and easilyBakePy was conceived as an way to create good-looking documents in Python without messing with templates or difficult layout systems.Creating a BakePy Report is simple:importpandasaspdfromdatetimeimportdatetimeasdtfrombakepyimportReportr=Report()r.recipe("title","Example BakePy Report")r.recipe("markdown",f"""###{dt.now().strftime("%Y-%m-%d")}""")#We want to center text in the current column.r.set_col_cls("text-center")#A separatorr.recipe("separator")#Some variablesa=4color="blue"l=["red",3,False]#Replacing variables in generated text.r.recipe("markdown",f"""We can add markdown and use the power of Python to mix:- Variables, like a={a}- Conditional formatting, like adding the <span style="color:{color}">color{color}</span>- And even directly transform Python objects beyond things like the list:{l}""")#Now we add some more text, this time in the same row we were at before.r.add("<h2> See some examples below! </h2>",new_row=False)#We can even add items to the same column!r.recipe("spacer",level=3,new_col=False)r.add("""For example, Pandas Dataframes and Matplotlib Figures""",new_col=False)#Adding a DataFrame in a new line.data={"cost":[10,23,40],"gain":[20,40,45]}df=pd.DataFrame(data)r.add(df,caption="This is a table")#We set row items to be aligned at the center.r.set_row_cls("align-items-center")#Adding a plot on the same line.r.add(df.plot(x="cost",y="gain"),size=6,caption="This is a figure",new_row=False)#Saving the report#An imager.recipe("img","https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/800px-Wikipedia-logo-v2.svg.png",size=2,caption="Adding an image from the Internet.")r.save_html("example_report.html")Simple to use, easy to hackBakePy is designed to automatically transform Python objects such as Matplotlib Figures and Pandas DataFrames into HTML code. By using Bootstrap 5's grid you can easily arrange markup, mathematical formulas, plots and tables without needing boilerplate code.If you need more customization, you can easily add CSS stylesheets in order to make the Report look exactly how you want it to.
Package: baker2
CHANGES1.0.1 (2013-03-15)Fix setup.py so that an install of the package will actually work.1.0.0 (2013-03-06)Initial PyPI release.baker 2This package provides a Python 3 ported version of Python 2.7’sbakermodule. It has also been back-ported to work in Python 2.6.In Python 3, the implementation ofrandrange()was changed, so that even
with the same seed you get different sequences in Python 2 and 3. Note that
several high-level functions such asrandint()andchoice()userandrange().In my testing code I heavily rely on stable baker generator results and it
makes porting code to Python 3 a lot harder, if all those tests have to be
adjusted. This package fixes that.
Package: bakery
Bakery Support LibraryA collection of tools to help students write code, meant for the Python Bakery CS1 curriculum.For now, mostly improved assertions.InstallationInstall from PyPi:pip install bakeryOr install from:https://github.com/python-bakery/bakery-support-libraryExamplesfrombakeryimportassert_equaldefhalve(number):returnnumber/2# Correctly handles floating pointsassert_equal(halve(10),5.0)OutputThis library will print a message to STDOUT if an assertion fails, and returns True/False. It does not raise an exception or print to STDERR.Supported TypesNumbers: strictly compares numeric types, but allows floats to have imprecision, defaults to 4 placesStrings: can strictly compare types with exact_strings=True, but defaults to ignore whitespace on newlines and capitalizationLists, Tuples: applies same rules to inner types as container typesSets, Frozensets, Dictionary: checks that all elements are contained in both, in any orderGenerators: functions likeenumerateand.items()that produce generators are converted to lists and sets (as appropriate), then checked that their values match.Other types should work as well, but require that the result oftypematch, and thatx == y
Package: baking-wijesooriya
Learning tool for teaching the Cake Baking AnalogyMeant to make the analogy literal so that beginners can better understand the basics of functions.1.1 Functions:(All functions sleep one second after they run except complete)measure: waits one second then prints its string argumentmixIngredients: sleeps for one second then prints "Batter is mixed"pourBatter: waits one second then prints "Batter has been poured"setOvenTempTo: prints "Setting oven temp", waits 0.2 seconds, prints "Heating up...", prints "Ready in x hours" where x is the oven temperature divided by 100 then stops and prints "Oven temperature set to y degrees" where y is its int argumentbakeBatter: prints "Baking x layer" and then "x layer baked" where x is the ordinal form of 1 through 3 and then prints "All layers are baked!"assembleCake: prints "Assembling cake..." then sleeps for 1 second then prints "Cake is assembled and ready to be iced!"iceCake: prints "Icing cake..." then "Cake is iced!"complete: executes every function and takes unlimited string arguments which are use in measure and uses 500 for setOvenTemp argument.
Package: bakkes-rcon
bakkes-rconClient for interacting withBakkesModover its websocket RCON.Installationpipinstallbakkes-rconUsageimportasynciofrombakkes_rconimportBakkesRconClientasyncdefmain():# By default, connects to ws://127.0.0.1:9002, with password "password"asyncwithBakkesRconClient()asclient:inventory=awaitclient.get_inventory()foritemininventory:print(item)asyncio.run(main())
Package: baklabel
Baklabel is intended for use in automated scripts to deliver a sensible directory path
fragment (or label) each day to construct a grandfathered local backup.Import baklabel.Grandad to produce today's label fragment.See test_baklabel.py for examples of how to call GrandadIt is also a stand-alone utility to find the backup label produced for any given date
and set of options.python3 baklabel.py -h  to see command line usage and options.Python 3.x (Python 2.7 should also work but is no longer tested)In the doc directory of the baklabel repo, see release_note.txt for more detail on the
package, examples.txt for baklabel output examples and backup_howto.txt for a sample
backup script for Windows.Properly grandfathered, there needs to be a daily backup to one of 23 separate tapes,
sets of media or local directories on a storage device. This complement is made up of
6 weekday backups, 5 week-end backups, 11 month-end backups plus one for year-end.23 backups is quite economical for 12 months coverage.This represents real comfort when retrieving data which has been compromised at some
unknown point in the past.Source:https://github.com/mdewhirst/baklabelMike Dewhirstmiked@dewhirst.com.au
Package: bakplane-python-sdk
Bakplane Client for PythonBakplane is the orchestration backbone for Dominus, FinFlo, and Fabrik.This SDK can be used to control ingestion sessions, mastering executions, plugin installation, etc.InstallationInstalling the bakplane python client takes just a few seconds:pipinstallbakplane-python-sdkSparkIf you'd like to use Bakplane inside of Spark running in Docker:dockerrun-it--rm-p8888:8888--namepysparkjupyter/pyspark-notebookInside of your notebook run:!pipinstallbakplane-python-sdkNote: usehost.docker.internalinstead oflocalhostwhen testing.DocumentationIf you're interested in learning more then read the documentation:https://docs.openaristos.io/Copyright (C) 2021 Aristos Data, LLC
Package: bakura-pkg-topsyi
UsageThis library is published as a package inTODOPackagesPythonTODODevelopmentRequirementsMake sure you have Python 3.6 installed on your machine and run:pip3installvirtualenv--user

virtualenv--python=python3.6venvsourcevenv/bin/activate

pipinstall-rrequirements.txtLocal testingUnit testingTODOTodo:Add testsConvert in library
Package: balaboba
balabobaWrapper forYandex Balaboba(Яндекс Балабоба).Asynchronous versionhere.DisclaimerThe neural network doesn’t really know what it’s saying, so it can say absolutely anything. Don’t get offended if it says something that hurts your feelings. When sharing the texts, make sure they’re not offensive or violate the law.Installationpython-mpipinstall-UbalabobaDocumentationhttps://balaboba.readthedocs.io/LicenseMIT