Saravanan666/pypi-org huggingface dataset:
Package: blancmange
BlancmangeDo you have enough Python in your Python?Blancmange is sweet dessert that once featured in Monty Python’s Flying Circus
playing tennis.  At the time of writing, this term isn’t featured anywhere in
the CPython core code or documentation.  This is sad since the notion of a
large, extra-terrestrial dessert trying to take over the world whilst playing
tennis is quite hilarious.  There are many more Python references that aren’t
present in the documentation, source, or elsewhere, so let’s fix that.This tool can scan a prescribed directory of source and determine which terms
from Monty Python’s Flying Circus feature and which don’t.Use it to Python-ise your Python.In addition, it can output some fun statistics and answer some queries regarding
the 45 standard English-language Flying Circus episodes, including:Total words spoken (165,483)[1]Total lines spoken (10,100)[1]Total number of sketches (~510)[1]Which Python spoke the most words (Michael Palin, with 24%)How often Spam was mentioned (74 times in Flying Circus, 2225 times in CPython!)…[1](1,2,3)According to the source material.UsageLacking rugged lumberjacks in your logging?Not enough fun in your functions?Try (a) Blancmanage today!Script detailsflying-circus-dbCreate the database that underpins the whole package. Draws data from
the included HTML files.flying-circusOutput statistics on Flying Circus scripts.completely-differentGet a random line from Monty Python’s Flying Circus. Pass-wto
open in a web browser for easy access.blancmangePerform textual analysis of a specified code base compared to the Flying
Circus scripts.  Helpfully offers which areas of Monty Python you are
lacking.InstallationInstall witheasy_install blancmangeorBuildoutwith thebuildout.cfgin this package/repository.  Buildout is the easiest option
as this helps manage other parts such as episode data, and cloning the
CPython source automatically.TodoExpand to encompass the movies and other specialsSuggest where to add Python references and references which are needed.
Working for non-Python languages would be a plus ;)Better code analysis and processing.  Just within comments or documentation,
for example, or just variables.Changelog0.2 (2014-08-03)Improve scoring algorithm for source vs Monty Python references.
Now reduces importance on common words in English amongst other things.
[davidjb]Add new scripts, expand functionality.  Generally make more better good.
[davidjb]0.1 (2014-08-01)Package created for PyCon AU 2014.  Still a work-in-progress.
[davidjb]
Package: blanketdb
BlanketDBBlanketDBis a very simple database written in Python based on SQLite.
It is intended for small IoT projects where you need a quick way to
collect and store data from sensors and other devices.
You communicate to BlanketDB using HTTP GET / POST / DELETE requests.
Request and response bodies are usually JSON, but you can also POST
HTML forms directly to BlanketDB.
There is no schema in the database, you simply store objects in buckets.BlanketDB is free software provided under a MIT license.
Documentation is available athttps://blanketdb.readthedocs.io.Why is it called BlanketDB? Well, ablanketis simple, lightweight, portable
and keeps you warm. But if you really want to relax, you’ll need acouch.FeaturesGET / POST / DELETE requests to communicate with BlanketDBJSON requests / responsesHTML forms can POST directly to BlanketDBData stored in bucketsSchemalessQuery using various parameters to a HTTP GET requestData is stored in a single file on the file system which is a SQLite databaseBlanketDB is a single Python file without any dependencies besides the standard libraryNo sequrity whatsoever; BlanketDB is completely open to readers and writers (use with care!)QuickstartTo install BlanketDB, you’ll need a Python (>=3.4) installation with pip:$pipinstallblanketdbTo use BlanketDB as a standalone database (and communicate over HTTP), enter the following command:$python3-mblanketdb-ilocalhost-p8080-f/path/to/db.sqliteBlanketDB will now serve its web interface athttp://localhost:8080.
You can open this page in your browser to check if everything works.To use BlanketDB in a Python project, enter the following code:fromblanketdbimportBlanketDBdb=BlanketDB('/path/to/db.sqlite')# you can now use db using its Python APIdb.store_dict(x='test')['id']forentryindb:print(entry)# db is alse a wsgi conforming callable# you can use it e.g. with the wsgi reference implementationfromwsgiref.simple_serverimportmake_serverhttpd=make_server('localhost',8080,db)httpd.serve_forever()Detailed documentation is available athttps://blanketdb.readthedocs.io.CreditsMain author and project maintainer isluphord.This package was prepared withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.4.0 (2020-02-26)Start uwsgi using http protocol by default in DOCKERFILE (s.t. standalone use is possible)Overwrite CMD in docker-compose file to communicate via uwsgi protocol between nginx and blanketdb container0.3.4 (2020-02-26)Support Python 3.80.3.3 (2019-12-12)Split tests into Python and HTTP API testsAdded tests that can be executed against an actual HTTP API ofBlanketDB0.3.2 (2019-12-04)Release to trigger build on dockerhub0.3.1 (2019-03-06)Improved clarity with default values0.3 (2019-03-06)Type annotations forBlanketDBPython 3.4 is not supported anymore (as it does not know type annotations)0.2.2 (2019-01-31)setuptools entrypoint for cliquickstart documentationadded logo0.2.1 (2019-01-24)fix tag confusion0.2.0 (2019-01-24)Added CLI for startingBlanketDBwithwsgiref.simple_serverTests forBlanketDBWeb API usingwebtestAdded documentation for usage and Web API0.1.0 (2019-01-18)First release on PyPI.
Package: blanksort
BlankSortThe Python package for the BlankSort keyword extraction algorithm.InstallationUse the following command to install from TestPyPI:pipinstall--upgradeblanksortUsageBlankSort can be imported like any other Python package:importblanksortAfter importing, you can create aBlankSortobject.algo=blanksort.BlankSort()Alternatively, you can use the following code to create theBlankSortobject.fromBlankSortimport*algo=BlankSort()TheBlankSortconstructor accepts the following arguments:binary_path[optional]The path to the binary folder that containsblanksort.databaseandstopwords-en.txt. If not specified, the default binary files will be downloaded.preloadVectors[optional keyword argument]A boolean (defaultFalse) that specifies if word vectors should be pre-loaded into memory.saveGeneratedVectors[optional keyword argument]A boolean (defaultFalse) that specifies if word vectors generated on-the-fly should be saved toblanksort.database.Exampleimportblanksortalgo=blanksort.BlankSort()keywords=algo.rank("[input text]")Binary FilesThe BlankSort package requires several files, collectively referred to as "binaries".File nameDescriptionblanksort.databaseA database file created usingSQLiteDict. The database contains word vectors and n-grams imported fromFastText.stopwords-en.txtA text file containing a list of stop words for pre-processing. Each line should contain a single word.If the files are not found in thebinary_path, the package will download the default binary folder from the latest version ofbinaries.zipattached to a release.
Package: blarg
Blarg READMEA static site generatorInstallation:git clone git@github.com:pydanny/blarg.git
cd blarg
pip install -e .Building:blarg build .Serving the site:blarg serveRelease to PyPICreate a pull request that:Adds release notes toCHANGELOG.md.Updates theVERSIONconstant inpyproject.tomland .Commit these changes in a single commit with subject matchingBump version to v....After merging the pull request, push an annotated tag to Github with:maketagThis will trigger a Github action to publish the package to PyPI.Note: Until we're configured, just do this to release:pip install -U build twine
python -m build
twine upload dist/*
Package: blargparse
Blargparse extendsargparse.ArgumentParser,
adding anadd_aggregatemethod that can help you separate
your user interface logic from everything else.How to useInstall from PyPI.pip install blargparseHere’s the simplest way to use it.b = BlargParser()
b.add_argument('--left', '-l', type = int, default = 0)
b.add_argument('--right', 'r', type = int, default = 100)
b.add_aggregate('numbers', lambda args: range(args.left, args.right))

b.parse_args([]).numbers == range(0, 100)You can get a bit fancier.b = BlargParser()
b.add_argument('--left', '-l', type = int, default = 0)
b.add_argument('--right', 'r', type = int, default = 100)
def f(args):
    output = range(args.left, args.right)
    del(args.left, args.right)
b.add_aggregate(f)

b.parse_args([]).numbers == range(0, 100)WhyI wrote Blargparse because I found myself doing stuff like this.# Construct the parser.
a = argparse.ArgumentParser()
a.add_argument('--left', '-l', type = int, default = 0)
a.add_argument('--right', 'r', type = int, default = 100)

# Parse the arguments
import sys
ns = a.parse_args(sys.argv)

# Convert them into the form I want for my application.
numbers = range(ns.left, ns.right)The input argument that made most sense to me while programming the
thing was thenumbersrange, but I thought it was easiest if the
end user could specify this range as a combination of--leftand--rightflags. And I might want to change that based on what
users seem to prefer.The above approach is fine because it’s small, but I had several
arguments like this spread across several subparsers in different places,
and the construction, parsing, and conversion of the arguments thus
wound up spread across functions and even files.With vanillaargparseI wound up doing stuff like this.def _build_subparsers(argparser):
    'This adds subparsers to the parser.'
    subparsers = argparser.add_subparsers()
    # ...

def _apply_aggregates(args):
    args.range = range(args.left, args.right)
    del(args.left, args.right)

argparser = argparser.ArgumentParser()
_build_subparsers(argparser)
args = argparser.parse_args()
_apply_aggregates(args)This is a bit better except that it groups subparsers together and
aggregates together. I wanted subparsers to be grouped with relevant
aggregates, and I did not want to group by whether something was a
subparser or an aggregate; I think of the aggregates as components of
the subparsers.A more confusing alternative would have been to come up with my own
non-argparse interface on top of this for specifying groupings of
subparsers and aggregates.
Package: blaseball-mike
blaseball-mikeTotally not a microphone to the blaseball APIThis is a python wrapper over blaseball's public APIs, including player/team/game fetches, as well as deserialization of the event stream.Installationpip install blaseball-mikeDocsFull API documentation can be found athttps://jmaliksi.github.io/blaseball-mike/DevelopmentmacOS/unix setup:python3 -m venv env
source env/bin/activate
pip install -r requirements.txtPublishing to pypiAutomatic (recommended)Bump version insetup.py. Use [https://semver.org/ semver], ie fixes are a patch, new features are a minor, and breaking changes are a major.Draft new releaseName new tag with the version insetup.py. Add useful description.Publishing will automatically kick off a github action to publishManual (use in case something goes wrong with auto publish)Bump version insetup.py. Use [https://semver.org/ semver], ie fixes are a patch, new features are a minor, and breaking changes are a major.Deletedist/*andbuild/*python3 setup.py sdist bdist_wheelpython3 -m twine upload -r pypi dist/*
Package: blaseball-reference
DEPRECATED blaseball-reference-pyDEPRECATED: This package is no longer being maintained. Datablase wrappers are being further developed inblaseball-mike.https://github.com/jmaliksi/blaseball-mikePython wrapper around the Blaseball stats APIInstallationpip install blaseball-referenceUsagehttps://api.blaseball-reference.com/docs#/Developmentpython3 -m venv env
source env/bin/activate
pip install -r requirements.txtReleaseUpdateversionin setup.py. Please use semver.Merge changesCreate a new release in github with matching version ID. Project will be uploaded to PyPi automatically.ExamplesTo start,from blaseball_reference import apiWhen no arguments are specified, adictobject is returned, with a key for each player ID that could fit the query. For example, runningprint(api.batting_average())will print a dictionary of every Blaseball batter and their batting averages, and will not return pitchers.{'batter_id': value'}Some queries,event_typefor example, will return every player.You can specify the ID of the player to filter by. Multiple pitchers can also be specified, by passing a list or a string delimited by commaspitcherera = api.era("pitcher_id")pitcherera = api.era(["pitcher_id", "pitcher_id", "pitcher_id"])pitcherera = api.era("pitcher_id, pitcher_id, pitcher_id")
Package: blask
BLASKBlask is a blogging engine based onFlask. Blask uses Markdown syntax to create and render
the contents of blog posts.Blask uses the Jinja2 template engine to render the web templates.To install Blask, usepip:pip install blaskor download the source code:git clone https://github.com/zerasul/blask/Later, you need to create asettings.pyfile:templateDir="templates"postDir="posts"defaultLayout="template.html"staticDir="static"title="Blask | A Simple Blog Engine Based on Flask"errors={404:"404"}For last, to Run Blask, use the next Code:fromblaskimportBlaskAppimportsettingsif__name__=='__main__':b=BlaskApp(templateDir=settings.templateDir,postDir=settings.postDir,defaultLayout=settings.defaultLayout,staticDir=settings.staticDir,title=settings.title,errors={404:'404'})b.run()Also, you can use a environment variable to set the settings:exportBLASK_SETTINGS=settingsYou can use the Blask Command Line Tool to run the site:blaskclirun--port4444#sets the port to 4444For more information, see theBlask web page. Also, you can subscribe to ourMailing List.You can see theCode of Participationof this project.Blask is Open Source under theGPL 3.0License
Package: blast
overviewblast is a simple web-based, multi-platform music/mp3 player written in python, HTML/CSS and javascript.installationthe easiest way to install blast is by using python setuptools “easy_install” command:$ easy_install blastyou can also install using ez_setup, pip or installing the package directly using setup.py:$ python setup.py installusage$ cd ~/Music
$ blastthen you can connect to the blast frontend athttp://localhost:5000(or via IP if you’re binding externally with -x).NOTE: if you use flashblock, make sure to whitelist your blast server (otherwise the URLs will simply open as if you clicked them)blast is primarily keystroke driven. here’s a list of the available key commands:v         Play
c         Toggle Pause
x         Stop
j k       Next / Previous Track (Google Reader style)
n         Next Track (same as j, Google Reader style)
b z       Next / Previous Track (Winamp Style)
, .       Reverse or Skip Ahead 1 second
{ }       Reverse or Skip Ahead 5 seconds
[ ]       Reverse or Skip Ahead 30 seconds
0         Reset to 0 position
s         Toggle Shuffle
m         Toggle Mute
?         Toggle Help
r         Randomize List
d         Debug Modewhen in doubt, you can also hit the “?” key in the UI to see this same help information.in addition to key commands, you can click on tracks to play/pause and seek around in tracks by clicking on the duration bar.platform supportblast is written with portability in mind. currently the server (the blast CLI) should run anywhere that python can be installed (pretty much everywhere) and the UI should run in most browsers. the UI is also known to work under iOS (e.g. for iPhone/iPad playback) - which means you can stream your large computer-based library to your iOS device over wifi.tested/verified platformsblast serverOSX pythonCygwin (Windows) pythonLinux pythonfront-end/UIOSX chromeOSX safariOSX firefoxiOS safari (iPhone/iPad)Windows chromeWindows firefoxuntested, but might work onWindows python (non-cygwin) and/or ActiveState pythonOther UNIXs (BSD, Solaris etc) pythonWindows Internet ExplorerOperaAndroidopen sourceblast currently leverages the following open source components to speed development:Flask (http://flask.pocoo.org/)SoundManager2 (http://www.schillmania.com/projects/soundmanager2/)SoundManager2 Page Player (http://www.schillmania.com/projects/soundmanager2/demo/page-player/)jQuery / jQueryUI (http://jquery.com/,http://jqueryui.com)jQuery Shuffle Plugin (http://yelotofu.com/labs/jquery/snippets/shuffle/)Bootstrap (http://twitter.github.com/bootstrap/)Sticky (http://thrivingkings.com/sticky)contributingblast is open sourced under a simple BSD license. you can find the source code on github:https://github.com/kwlzn/blast
Package: blast2xl
blast2xlBLAST output to XLSX spreadsheet and sort your sequences based on BLAST results.Free software: MIT licenseDocumentation:https://blast2xl.readthedocs.io.FeaturesGenerate an XLSX (Excel) BLAST result report from tabular BLAST resultsSort input sequences based on top BLAST results according to scientific name and NCBI taxidReorient input sequences to match BLAST subject orientation (plus strand)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-01-10)First release on PyPI.
Package: blastbesties
Blast-BestiesRapid discovery of reciprocal best blast pairs from BLAST output files.Table of contentsBlast-BestiesTable of contentsInstall Blast-BestiesExample usageInput requirementsStandard optionsLicenseInstall Blast-BestiesThere are 3 options available for installing Blast-Besties locally:Clone from this repository and install as a local Python package.gitclonehttps://github.com/Adamtaranto/blast-besties.git&&cdblast-besties&&pipinstall-e.Pip install directly from this git repository.pipinstallgit+https://github.com/Adamtaranto/blast-besties.gitInstall from PyPi.pipinstallblastbestiesExample usageRun BLASTp for each protein set AvsB and BvsA.
Require vaild alignments to cover 90% of the query sequence and with an e-value of < 0.001.blastp-qcov_hsp_perc90-queryA_prot.fa-subjectB_prot.fa-outAvB.tab-evalue0.001-outfmt6-use_sw_tback
blastp-qcov_hsp_perc90-queryB_prot.fa-subjectA_prot.fa-outBvA.tab-evalue0.001-outfmt6-use_sw_tbackReport reciprocal best match pairs where each hit meets criteria e-value
<= 0.001, hit-length >= 40, bitscore >= 100.blastbesties-e0.001-l40-s100-aAvB.tab-bBvA.tab-opairs.tabInput requirementsTakes two BLAST output files as input. SetA vs SetB, and SetB vs SetA.BLAST output format 6 (tabular)Hits must be sorted by query name then descending match quality - this is default BLAST behaviour.Standard optionsUsage: blastbesties [-h] [-v] -a BLASTAVB -b BLASTBVA [-l MINLEN] [-e EVAL]
                     [-s BITSCORE] [-o OUTFILE] [-d OUTDIR]

Options:

  # Info
  -h, --help        Show this help message and exit.
  -v, --version     Show program's version number and exit.
  
  # Input 
  -a, --blastAvB    Blast tab result file for fastaA query against fastaB
                    subject.
  -b, --blastBvA    Blast tab result file for fastaB query against fastaA
                    subject.
  
  # Settings
  -l, --minLen      Minimum length of hit to consider valid.
  -e, --eVal        Maximum e-value to consider valid pair.
  -s, --bitScore    Minimum bitscore to consider valid pair.

  # Output
  -o, --outFile     Write reciprocal blast pairs to this file.
  -d, --outDir      Directory for new sequence files to be written to.LicenseSoftware provided under MIT license.
Package: blastbot-cloud-api-python
Blastbot Cloud API PythonBlastbot Cloud API Client for pythonInstallationblastbot-cloud-api-python is supported on Python 3.7+. The recommended way to install it is via pip.pip install blastbot-cloud-api-pythonUsageThe library is built with asyncio and aiohttp, that means that most of the functions are async and need to run inside the asyncio event loop.See usage examples inmain.py.TLDR:# Initializeapi=BlastbotCloudAPI()success=awaitapi.async_login(EMAIL,PASSWORD)# ... do your stuff with api ...# IMPORTANT: Always close the session before exitingawaitapi.async_close()Referenceblastbot_cloud_api.apiBlastbotCloudAPIasync_close(): Closes underlying aiohttp sessionasync_login(email: str, password: str) -> bool: Logs in to Blastbot Cloud, returns if successfulasync_get_devices() -> List[Device]: Get devicesasync_get_device(id: int) -> Device: Get a specific deviceasync_get_controls(type: str = None) -> List[Control]: Get controls, optionally filter by type (switch, ac or ir)async_get_control(id: int) -> Control: Get a specific controlasync_get_switches() -> List[Control]: Get all switch controlsasync_get_acs() -> List[Control]: Get al AC controlsasync_get_irs() -> List[Control]: Get all ir/rf controlsblastbot_cloud_api.models.deviceDeviceid: intaddress: intbridge: dictbridgeId: intconfig: dictconnected: boolmac: strstate: strversion: strname: strtype: strasync_update(): Updates device data from Blastbot Cloudblastbot_cloud_api.models.controlControlid: intdeviceId: intname: strtype: str: (switch, ac or ir)acSettings: dictbuttons: List[dict]device: dictswitches: List[dict]switch_state() -> bool: Get switch state (for switch controls)async_control_button(button_id: int): Execute a button action (for ir/rf controls)async_control_switch(is_on: bool): Control a switch (for switch controls)async_control_ac(state: str = None, temperature: str = None, fan: str = None): Control the ac state (for ac controls)state: "on" or "off"temperature: number of ºC in stringfan: one of "auto", "low", "medium" or "high"async_update(): Update control data from Blastbot CloudContributingDevelopment Requirementspython 3.8pipenvDevelopment setupOn macOS:brew install python
brew install pipenvInside this folder:pipenv shell --python=3.8