Saravanan666/pypi-org huggingface dataset:
Package: bumpfontversion
bumpfontversionVersion-bump yoursourcefont files.This tool, patterned after the wonderfulbumpversion, allows you to update the version of your font source files, as well as create commits and tags in git.It currently supports UFO and Glyphs format font files.InstallationYou can download and install the latest version of this software from the Python package index (PyPI) as follows:pip install --upgrade bumpfontversion
```

## Usage

For users of bump2version, please note that the interface is slightly different. You can *either* use:

```
bumpfontversion --new-version 0.5 MyFont.ufo
```

to set the version directly, or

```
bumpfontversion --part minor MyFont.glyphs # Upgrade the minor version
bumpfontversion --part major MyFont.glyphs # Upgrade the major version
```

As per bump2version, you can use `--commit` to commit the new version to git, and `--tag` to add a new git tag.

## See also

* [bumpversion](https://github.com/c4urself/bump2version)
* [font-v](https://github.com/source-foundry/font-v): Similar tool for font *binary* files

## License

[Apache license](http://www.apache.org/licenses/LICENSE-2.0)
Package: bumping
BumpingPython tool to calculate SemVer based on conventional git commit messages.PrerequisitePython >= 3InstallationpipinstallbumpingUsageExecutebumpingand the calculated version would be printed.$bumping0.1.1Assume the latest version is0.5.1and the version tag isv0.5.1or0.5.1, calculate the incremental version starting from the base revision with the following command, which is really useful for the situation where you didn't use SemVer in the previous versions and want to use it afterwards.# Treat tag v0.5.1 as the base version,# calculate the incremental version number# and plus with 0.5.1.bumping--basev0.5.1# Treat master as the base version, version# number is 0.5.1, calculate the incremental version# number and plus with 0.5.1.bumping--basemaster--base-version0.5.1Changelog0.5.1New Featuresadd commit range optionsuse click to replace docoptFixesadd regex to parse_versionfix version calculating0.3.0New Featuresadd version calculatingadd docoptadd project structure
Package: bumpkin
bumpkinTool to do source bumps :jack_o_lantern:FeaturesQuick information fetch using the defined plugins$bumpkindemobasichttphttps://discord.com/api/download?platform=osx
INFO:bumpkin.sources.basichttp:Downloadingandhashing:https://dl.discordapp.net/apps/osx/0.0.273/Discord.dmg{'sha256':'54794fbf4b29c9a56f6e8a736ff5445c75a1fd3cf49dce7b4d7aa6ff067ae2ef','final_url':'https://dl.discordapp.net/apps/osx/0.0.273/Discord.dmg'}Evaluation with JSON files. See the examples folder.$catexamples/discord.json{"x86_64-linux":{"stable":{"_type":"basichttp","url":"https://discord.com/api/download?platform=linux&format=tar.gz"},"ptb":{"_type":"basichttp","url":"https://discord.com/api/download/ptb?platform=linux&format=tar.gz"},"canary":{"_type":"basichttp","url":"https://discord.com/api/download/canary?platform=linux&format=tar.gz"}},"x86_64-darwin":{"stable":"https://discord.com/api/download?platform=osx","ptb":"https://discord.com/api/download/ptb?platform=osx","canary":"https://discord.com/api/download/canary?platform=osx"},"aarch64-darwin":{"ptb":"https://discord.com/api/download/ptb?platform=osx"}}$bumpkineval-iexamples/discord.json-o/tmp/discord.json$cat/tmp/discord.json|jq{"x86_64-linux":{"stable":{"sha256":"581726cbd7f018fab756cd7eee520e47b3a25bf7749193482a9e10e4d458042c","final_url":"https://dl.discordapp.net/apps/linux/0.0.25/discord-0.0.25.tar.gz"},"ptb":{"sha256":"2e80e0de2c0ad7cac3b3353f75010ad3f27c0c8c6bab276c7df959a3c200464b","final_url":"https://dl-ptb.discordapp.net/apps/linux/0.0.39/discord-ptb-0.0.39.tar.gz"},"canary":{"sha256":"d99ad20f23e3dc01eb882599fdb6f7d371f727ded34ee9fffd68e62273449b09","final_url":"https://dl-canary.discordapp.net/apps/linux/0.0.148/discord-canary-0.0.148.tar.gz"}},"x86_64-darwin":{"stable":"https://discord.com/api/download?platform=osx","ptb":"https://discord.com/api/download/ptb?platform=osx","canary":"https://discord.com/api/download/canary?platform=osx"},"aarch64-darwin":{"ptb":"https://discord.com/api/download/ptb?platform=osx"}}How it worksThe basic primitive of bumpkin is a source, which is basically a reducer.The reducer takes some parameters such as the URL, and exposes areducemethod. This method takes the previous state of the result data, or a empty dictionary, changes and then returns the new data. So, if the plugin has some handling to not refetch stuff if the URL or latest version didn't changed, for example, it has everything it needs at hand.Install it from PyPIpipinstallbumpkinUsage$python-mbumpkin#or$bumpkinDevelopmentRead theCONTRIBUTING.mdfile.
Package: bumplus
Bumplus is a command line tool to bump your project version.PrerequisitesPython 3.8, 3.9, 3.10, 3.11, 3.12Installationpip install bumplusUsagePut aTOMLfile named.bumplus.tomlin the top-level directory of
your project. This file at least contains the following content:version = "<current_version>"SeeConfigurationfor more config options.Command linecd <project root dir>
bumplus <new_version>Usebumplus –helpto display the help text.Pythonimport bumplus
bp = bumplus.Bumplus('<project root dir>')
bp.bump_version('<new_version>')Example of.bumplus.tomlversion = '1.2.3'

[[files."CHANGELOG.md"]]
search = '''
## Unreleased
'''
replace = '''
## Unreleased

## {{new_version}} - {{utcnow | strftime("%Y-%m-%d")}}
'''

[[files."CHANGELOG.md"]]
search = '''
http://host/changelog/{{old_version}}.html
'''
search = '''
http://host/changelog/{{new_version}}.html
http://host/changelog/{{old_version}}.html
'''

[[files."LICENSE"]]
search = '{{old_version}}'
replace = '{{new_version}}'

[[files."src/version.py"]]
search = '{{old_version}}'
replace = '{{new_version}}'ConfigurationversionA string that is the current version.filesA table which configures all files need to be modified.Every key is a relative path name. The value of a key is an array of
replacement config. Every item of an array is an object which has two
keys:searchandreplace. The value ofsearchis the pattern to be
replaced. The value ofreplaceis the new text after replacing.The contents ofsearchandreplaceareJinja2templates. Several
predefined variables can be used in the templates:old_versionnew_versionnowutcnownowandutcnoware Pythondatetimeobjects.The Jinja2 templates also support a custom filterstrftime, which is
used to format time such asnowandutcnow. The format string is the
same as the parameter ofstrftimemethod of Pythondatetimeobject.Attention!Bumplus always replaces the current version in.bumplus.tomlafter
processing all files in the configuration.LicenseMIT
Package: bumpr
Bump'R: Bump and release versionsBump'R is a version bumper and releaser allowing in a single command:Clean-up release artifactBump version and tag itBuild a source distribution and upload on PyPIUpdate version for a new development cycleBump'R intend to be customizable with the following features:Optionnal test suite run before bumpCustomizable with a config fileOverridable by command lineExtensible with hooksCompatibilityBump'R requires Python>=3.7(and<4.0)InstallationYou can install Bump'R with pip:pip install bumprUsageYou can use directly the command line to setup every parameter:bumpr fake/__init__.py README.rst -M -ps devBut Bump'R is designed to work with a configuration file (bumpr.rcby defaults).
Some features are only availables with the configuration file like:commit message customizationhooks configurationmultiline test, clean and publish commandsHere's an exemple:[bumpr]file=fake/__init__.pyvcs=gittests=toxpublish=python setup.py sdist register uploadclean=python setup.py cleanrm -rf *egg-info build distfiles=README.rst[bump]unsuffix=truemessage=Bump version {version}[prepare]suffix=devmessage=Prepare version {version} for next development cycle[changelog]file=CHANGELOG.rstbump={version} ({date:%Y-%m-%d})prepare=In development[readthedoc]id=fakeThis way you only have to specify which part you want to bump on the
command line:bumpr -M  # Bump the majorbumpr     # Bump the default part aka. patchDocumentationThe documentation is hosted on Read the Docs:StableDevelopment
Package: bumpreqs
bumpreqsUsage$pipinstallbumpreqs$python-mbumpreqs--writerequirements*.txtIt will update the requirements to all use the latest versions.  Most
environment markers are ignored (although preserved on modified lines).python_versionandfull_python_versionThere is some rudimentary support that works for simple comparisons using theandoperator (as inrequires_pythonusing,).  If there isanyoverlap
between the constraint and release'srequires_python, then it can be bumped.The reason to check foranyoverlap rather thanfulloverlap is because many
project specify a constraint likepython_version < "3.7"without a lower
bound, and when checking against a release that hasRequires-Python: >=3.6the
check would fail because3.5(or2.1or any other silly example) is not
included.  See currently open issue for future work.Licensebumpreqs is copyrightTim Hatch, and licensed under
the MIT license.  I am providing code in this repository to you under an open
source license.  This is my personal repository; the license you receive to
my code is from me and not from my employer. See theLICENSEfile for details.
Package: bump-testclient
bump-testclientStarlette 0.21.0 changed theTestClientimplementation: it replaced therequestslibrary withhttpx.
As those libraries have different APIs, this change break tests for Starlette's users.Thiscodemodmakes the transition to Starlette 0.21.0 easier.
It makes the changes needed to make the tests work again.Why?Make your life easier. Suggested bySebastián Ramírezas a joke, but well... I did it.TransformationsReplaceclient.<method>(...)byclient.request("<method>", ...)The methods ("delete", "get", "head", "options") doesn't accept thecontent,data,jsonandfilesparameters.Conditions for this transformation:Usingclient.<method>and ` in ("delete", "get", "head", "options").Usingcontent,data,jsonorfilesparameters.Replaceclient.<method>(..., allow_redirects=...)byclient.<method>(..., follow_redirects=...)HTTPX usesfollow_redirectsinstead ofallow_redirects.Replaceclient.<method>(..., data=...)byclient.<method>(..., content=...)If the argument passed todatais either text or bytes,contentshould be used instead.Conditions for this to happen:dataparameter receives a bytes/text argument.Installationpipinstallbump-testclientUsageRun the following on the repository you want to format:python-mbump_testclient<files>You can also use the pre-commit. Add the following to your.pre-commit-config.yamlfile:-repo:https://github.com/Kludex/bump-testclientrev:0.3.0hooks:-id:bump_testclientLicenseThis project is licensed under the terms of the MIT license.
Package: bumpymcbumpface
Bumpy McBumpfaceTL,DRTo run:/home/blah/myproject$bumpymcbumpface--push-git--push-pypiTo get help:/home/blah/myproject$bumpymcbumpface-husage:bumpymcbumpface.py[-h][--debug][--show][--dry-run][--push-git][--push-pypi][{major,minor,patch}]bumpymcbumpface-version-bump,tag,push,deploypositionalarguments:{major,minor,patch}optionalarguments:-h,--helpshowthishelpmessageandexit--debugPrintdebuggingmessages(default:False)--showShowthecurrentversionandexit(default:False)--dry-runDescribewhatwouldbedone,andexit(default:False)--push-gitPushthenewcommitandtagtogithub(default:False)--push-pypiPushthenewbuiltpackagestoPyPI(default:False)/home/blah/myproject$OverviewWhen doing a new release, I got real tired of doing these things by hand:Update the version number of my packageCommit that change to gitCreate a git tag with the new versionPush the tag (and the new commit) to githubBuild new distributable packages: wheel (.whl) and source dist (.tar.gz)Upload the new packages to pypiBumpy McBumpfacewill do these things, and will not ask questions.RequirementsYou need to have these:A file calledVERSIONin your project root, with MAJOR.MINOR.PATCH numbersgittwine (set upkeyringso that twine won’t ask you for login/password)pipwheelYou probablySHOULD BEin master branch branch when you run, but you
only need to be in a branch that has a valid remote.InstructionsThere are a several options, but only two important ones. By default,
it will NOT do these things automatically:Push to githubDeploy to PyPIThis is just so that it defaults to “safe” by not affecting anything
beyond your computer during testing. To make it do these things too,
run it like this:$bumpymcbumpface--push-git--push-pypiBumpy McBumpfaceassumes that your version number is in the following
format:MAJOR.MINOR.PATCHwhere each of the three fields is an integer. This also works for
calendar-based versioning. By default, the PATCH value will be increased
by 1 if you run without arguments. These two are the same:$bumpymcbumpface--push-git--push-pypi$bumpymcbumpface--push-git--push-pypipatchFor a MINOR bump, change the wordpatchtominor. Likewise formajor.Now that you’re using a file calledVERSIONin your project root to
store your version number, how do you get it into yoursetup.py?
Just read it in, like this:# setup.pyfromosimportpathfromioimportopen# For universal packages + py27here=path.abspath(path.dirname(__file__))setup(name='bumpymcbumpface',version=open(path.join(here,'VERSION')).readline().strip(),...)Good luck!
Package: bunch
Bunch is a dictionary that supports attribute-style access, a la JavaScript.>>> b = Bunch()
>>> b.hello = 'world'
>>> b.hello
'world'
>>> b['hello'] += "!"
>>> b.hello
'world!'
>>> b.foo = Bunch(lol=True)
>>> b.foo.lol
True
>>> b.foo is b['foo']
TrueDictionary MethodsA Bunch is a subclass ofdict; it supports all the methods adictdoes:>>> b.keys()
['foo', 'hello']Includingupdate():>>> b.update({ 'ponies': 'are pretty!' }, hello=42)
>>> print repr(b)
Bunch(foo=Bunch(lol=True), hello=42, ponies='are pretty!')As well as iteration:>>> [ (k,b[k]) for k in b ]
[('ponies', 'are pretty!'), ('foo', Bunch(lol=True)), ('hello', 42)]And “splats”:>>> "The {knights} who say {ni}!".format(**Bunch(knights='lolcats', ni='can haz'))
'The lolcats who say can haz!'SerializationBunches happily and transparently serialize to JSON and YAML.>>> b = Bunch(foo=Bunch(lol=True), hello=42, ponies='are pretty!')
>>> import json
>>> json.dumps(b)
'{"ponies": "are pretty!", "foo": {"lol": true}, "hello": 42}'If JSON support is present (jsonorsimplejson),Bunchwill have atoJSON()method which returns the object as a JSON string.If you havePyYAMLinstalled, Bunch attempts to register itself with the various YAML Representers so that Bunches can be transparently dumped and loaded.>>> b = Bunch(foo=Bunch(lol=True), hello=42, ponies='are pretty!')
>>> import yaml
>>> yaml.dump(b)
'!bunch.Bunch\nfoo: !bunch.Bunch {lol: true}\nhello: 42\nponies: are pretty!\n'
>>> yaml.safe_dump(b)
'foo: {lol: true}\nhello: 42\nponies: are pretty!\n'In addition, Bunch instances will have atoYAML()method that returns the YAML string usingyaml.safe_dump(). This method also replaces__str__if present, as I find it far more readable. You can revert back to Python’s default use of__repr__with a simple assignment:Bunch.__str__ = Bunch.__repr__. The Bunch class will also have a static methodBunch.fromYAML(), which loads a Bunch out of a YAML string.Finally, Bunch converts easily and recursively to (unbunchify(),Bunch.toDict()) and from (bunchify(),Bunch.fromDict()) a normaldict, making it easy to cleanly serialize them in other formats.MiscellaneousIt is safe toimport *from this module. You’ll get:Bunch,bunchify, andunbunchify.Ample doctests:$ python -m bunch.test -vFeedbackOpen a ticket athttp://github.com/dsc/bunchor send me an email atdsc@less.ly.
Package: bunches
The goal of bunches is provide lightweight, turnkey, extensible data containers.
bunches's framework supports a wide range of coding styles. You can create
complex multiple inheritance structures with mixins galore or simpler,
compositional objects.The current classes available (as bunches.ContainerThatIWant) are:
Listing: list-like class with 'add', 'prepend', and 'subset' methods. The
'add' method tries to intelligently decide whether the passed item(s)
to add should be appended or extended on the stored list.
Hybrid: list-like class that also has a full dict interface. Stored items
must have a 'name' attribute or allow name inference via the 'get_name'
function.
Dictionary: dict-like class with 'add' and 'subset' methods. It also
includes a 'default_factory' parameter providing the same functionality
as a defaultdict.
Catalog: dict-like class that allows lists of keys to be used for its
various methods (including dunder access methods) and supports three
wildcard keys: 'none', 'default', and 'all'. If lists of keys are
passed or the 'default' and 'all' keys are used, a list of values is
returned.
Library: dict-like class that includes two chained dicts: 'instances' and
'classes'. Users can deposit classes and instances in a Library and
they are stored and accessed intelligently. When instances are
deposited, it is stored in 'instances' and its class is stored in
'classes'.The project is also highly documented so that users and developers and make
bunches work with their projects. It is designed for Python coders at all
levels. Beginners should be able to follow the readable code and internal
documentation to understand how it works. More advanced users should find
complex and tricky problems addressed through efficient code.
Package: bunch-py3
Bunch is a dictionary that supports attribute-style access, a la JavaScript.>>> b = Bunch()
>>> b.hello = 'world'
>>> b.hello
'world'
>>> b['hello'] += "!"
>>> b.hello
'world!'
>>> b.foo = Bunch(lol=True)
>>> b.foo.lol
True
>>> b.foo is b['foo']
TrueDictionary MethodsA Bunch is a subclass ofdict; it supports all the methods adictdoes:>>> b.keys()
['foo', 'hello']Includingupdate():>>> b.update({ 'ponies': 'are pretty!' }, hello=42)
>>> print repr(b)
Bunch(foo=Bunch(lol=True), hello=42, ponies='are pretty!')As well as iteration:>>> [ (k,b[k]) for k in b ]
[('ponies', 'are pretty!'), ('foo', Bunch(lol=True)), ('hello', 42)]And “splats”:>>> "The {knights} who say {ni}!".format(**Bunch(knights='lolcats', ni='can haz'))
'The lolcats who say can haz!'SerializationBunches happily and transparently serialize to JSON and YAML.>>> b = Bunch(foo=Bunch(lol=True), hello=42, ponies='are pretty!')
>>> import json
>>> json.dumps(b)
'{"ponies": "are pretty!", "foo": {"lol": true}, "hello": 42}'If JSON support is present (jsonorsimplejson),Bunchwill have atoJSON()method which returns the object as a JSON string.If you havePyYAMLinstalled, Bunch attempts to register itself with the various YAML Representers so that Bunches can be transparently dumped and loaded.>>> b = Bunch(foo=Bunch(lol=True), hello=42, ponies='are pretty!')
>>> import yaml
>>> yaml.dump(b)
'!bunch.Bunch\nfoo: !bunch.Bunch {lol: true}\nhello: 42\nponies: are pretty!\n'
>>> yaml.safe_dump(b)
'foo: {lol: true}\nhello: 42\nponies: are pretty!\n'In addition, Bunch instances will have atoYAML()method that returns the YAML string usingyaml.safe_dump(). This method also replaces__str__if present, as I find it far more readable. You can revert back to Python’s default use of__repr__with a simple assignment:Bunch.__str__ = Bunch.__repr__. The Bunch class will also have a static methodBunch.fromYAML(), which loads a Bunch out of a YAML string.Finally, Bunch converts easily and recursively to (unbunchify(),Bunch.toDict()) and from (bunchify(),Bunch.fromDict()) a normaldict, making it easy to cleanly serialize them in other formats.MiscellaneousIt is safe toimport *from this module. You’ll get:Bunch,bunchify, andunbunchify.Ample doctests:$ python -m bunch.test
$ python -m bunch.test -v | tail -n22
1 items had no tests:
    bunch.fromYAML
16 items passed all tests:
   8 tests in bunch
  13 tests in bunch.Bunch
   7 tests in bunch.Bunch.__contains__
   4 tests in bunch.Bunch.__delattr__
   7 tests in bunch.Bunch.__getattr__
   3 tests in bunch.Bunch.__repr__
   5 tests in bunch.Bunch.__setattr__
   2 tests in bunch.Bunch.fromDict
   2 tests in bunch.Bunch.toDict
   5 tests in bunch.bunchify
   2 tests in bunch.from_yaml
   3 tests in bunch.toJSON
   6 tests in bunch.toYAML
   3 tests in bunch.to_yaml
   3 tests in bunch.to_yaml_safe
   4 tests in bunch.unbunchify
77 tests in 17 items.
77 passed and 0 failed.
Test passed.FeedbackOpen a ticket / fork the project onGitHub, or send me an email atdsc@less.ly.
Package: bundesliga-tippspiel
Bundesliga TippspielmasterdevelopBundesliga Tippspiel is a website using flask and various plugins that allows
users to bet on Bundesliga matches and compete with one another.A live version of the page is available athk-tippspiel.com.DocumentationDocumentation on the API can be foundhere.For general documentation visit theprogstatspageDeployment notes:You can deploy the website using docker and docker-compose.
To do this run the following commands:# Builds the docker image
docker-compose build
# Starts the container and the database container
docker-compose up -dThe .env file should contain the following variables:FLASK_SECRETDB_MODERECAPTCHA_SITE_KEYRECAPTCHA_SECRET_KEYSMTP_HOSTSMTP_PORTSMTP_ADDRESSSMTP_PASSWORDTELEGRAM_API_KEYPOSTGRES_HOSTPOSTGRES_PORTPOSTGRES_USERPOSTGRES_PASSWORDPOSTGRES_DBDOMAIN_NAMEHTTP_PORTBEHIND_PROXYOPENLIGADB_SEASONBacking up and restoringThe project provides a backup and restore script in thebindirectory.# Backup
bin/backup.sh backup.tar.gz
# Restore
bin/restore.sh backup.tar.gzFurther InformationChangelogLicense (GPLv3)GitlabGithubProgstatsPyPi
Package: bundestag-drucksache
bundestag-drucksacheDownload and find official Drucksache objects from the bundestag. Search yourself there:https://pdok.bundestag.deInstallationpipinstallbundestag-drucksacheHow to use?Drucksachefrombundestag_drucksacheimportDrucksache# Get objectd=Drucksache(19,28444)d=Drucksache.get("19/28444")# get the object by the identificationd=Drucksache.parse_from_link("https://dip21.bundestag.de/dip21/btd/19/284/1928444.pdf")# parse object by the link# Do things with the objectifd.exists():# checks if the Drucksache pdf existspdf_link=d.pdf_link# get the link to the pdf fileidentification=d.identification# get identification id like 19/28444# Download PDFd.download_pdf("drucksache.pdf")# orfile=open("drucksache.pdf","wb")d.download_pdf(file,close_file=False)Searchfrombundestag_drucksacheimportsearch_drucksache,Drucksachepage=1drucksache:list[Drucksache]=search_drucksache(search="Stadtentwicklung",legislaturperiode=19,offset=(page-1)*10# the request would be answered with 10 items, so you need 10 as offset for page 2.# the default value for offset is 0 (starting offset).)# You can set start_date or end_date but note that time ranges are very unsafe.# Read following Warning:"""[WARNING] for start_date and end_date: The datetime filtering is extremely unsafe,because the server doesn't have any method for datetime filtering,the response data would be filtered by the client. But you get only the first 10 elements,so time filtering is not possible."""Config (not important)You can pass config values forsearch_drucksacheandDrucksache(__init__,get,parse_from_link).
You can pass all values eachself or create abundestag_drucksache.config.Configobject and pass the object
as theconfigkwarg.The keys and default values are:{"pdok":"https://pdok.bundestag.de","dserver":"https://dserver.bundestag.de"}