Saravanan666/pypi-org huggingface dataset:
Package: pybtex-apa7-style
APA7 Style for PybtexThis is a fork ofnaeka's pybtex-apa-style, which targeted APA6.This plugin providesAPA7style for Pybtex.Pybtexprovides Python support for interacting with bibTeX
bibliography data. Style plugins provide support for formatting bibliographies,
similar to the role thatcslfiles play for LaTeX.Installation$pipinstallpybtexpybtex-apa7-styleUsagePybtex usesPython's plugin system.
To use APA7, load it as a plugin as shown in the example below.frompybtex.pluginimportfind_pluginfrompybtex.databaseimportparse_fileAPA=find_plugin('pybtex.style.formatting','apa7')()HTML=find_plugin('pybtex.backends','html')()defbib_to_apa7_html(bibfile):bibliography=parse_file(bibfile,'bibtex')formatted_bib=APA.format_bibliography(bibliography)return"<br>".join(entry.text.render(HTML)forentryinformatted_bib)ContributingThis is a work in progres; APA style is not fully-specified and has endless edge cases.
I would be delighted to receive examples of bibTeX entries which are not formatted correctly
in APA.If you clonethis project's repository, you
can add bibTeX exemplars intests/examplesand then runpython tests/test_visual_results.py.
Opentests/results.htmlto see the resulting APA-formatted HTML.
Package: pybtex-author-year-label
Author-year labels for PybtexDefines an author-year inline citation style forPybtex. This is
modified from the alpha style built into Pybtex, written by
Andrey Golovizin.Available stylesThis plugin defines two styles:author_year_1This style will format the label like(Einstein,1911)author_year_2This style will format the label likeEinstein (1911)
Package: pybtex-docutils
OverviewThe pybtex docutils backend allowsBibTeXcitations to be inserted into documentation generated bydocutils.Download:https://pypi.org/project/pybtex-docutils/#filesDocumentation:https://pybtex-docutils.readthedocs.io/en/latest/Development:http://github.com/mcmtroffaes/pybtex-docutils/InstallationFor use with Sphinx, simply installsphinxcontrib-bibtex.For use with pure docutils,
install the module withpip install pybtex_docutils, or from
source usingpip install-e..Minimal ExampleFor use with Sphinx, refer to thesphinxcontrib-bibtexdocumentation.For use with pure docutils, the module exposes a newsimplebibliographydirective, which will generate a citation for every entry in the specified
bib files.
This new directive is only intended
for simple single document workflows
that do not require the full power of Sphinx.
You need exactly one of these directives in your document,
placed at the location where you want the citations to appear
(typically, at the end).For example:See[Nelson1987]_for an introduction to non-standard analysis...simplebibliography::refs.bibwhererefs.bibmight contain:@Book{Nelson1987,
  author = {Edward Nelson},
  title = {Radically Elementary Probability Theory},
  publisher = {Princeton University Press},
  year = {1987}
}Note that citation keys are used as labels. For this to work, it is thus
necessary that all keys in your bib file are valid citation labels for
docutils. In particular, they cannot contain colons.
This limitation is lifted insphinxcontrib-bibtex,
which also provides many more citation features.To use the directive, you have to write your own command script
(there seems to be no other way currently to extend docutils). For instance:#!/usr/bin/env python3fromdocutils.parsers.rstimportdirectives,Directivefromdocutils.coreimportpublish_cmdline,default_descriptionfrompybtex_docutilsimportSimpleBibliographydescription=('Like rst2html5.py, but with .. simplebibliography support'+default_description)if__name__=='__main__':directives.register_directive("simplebibliography",SimpleBibliography)publish_cmdline(writer_name='html5',description=description)You can then run this command as if you would runrst2html5.
Package: pybtexnbib
A pybtex plugin for NBIB/Medline/PubMed files. For information on the file format, see the documentation at theNational Library of Medicine.InstallationInstall pybtexnbib from PyPI using pip:pip install pybtexnbibCommand-line usageTo convert an NBIB file to another format, use thepybtex-convertcommand. For example:pybtex-convert bibliography.nbib bibliography.bibThe extension of the output file must be supported bypybtexor an associated plugin.To format an NBIB file into a human-readable bibliography, use the pybtex-format command. For example:pybtex-format bibliography.nbib bibliography.txtFor more information, seethe documentation for pybtex.Programmatic usageNBIB files can be formatted into a human-readable bibliography as a string as follows:frompybteximportformat_from_filebibliography_string=format_from_file("path/to/file.nbib",style="plain",output_backend="plaintext",bib_format="nbib",)Multiple NBIB files can be formatted in a similar way:frompybteximportformat_from_filesbibliography_string=format_from_files(["path/to/file1.nbib","path/to/file2.nbib"],style="plain",output_backend="plaintext",bib_format="nbib",)By giving"suffix"as the argument tobib_format,
NBIB files can be combined with bibliography files of other formats (such as BibTeX or RIS):frompybteximportformat_from_filesbibliography_string=format_from_files(["path/to/file1.nbib","path/to/file2.bib","path/to/file3.ris"],style="plain",output_backend="plaintext",bib_format="suffix",)The RIS parser comes frompybtexris.
Parsers for the files for other formats need to be registered on thepybtex.database.input.suffixesentry point as discussed pybtexplugin documentation.For more information on programmatic use of pybtex,
seethe documentation of the Python API of pybtex.CreditRobert Turnbull (Melbourne Data Analytics Platform, University of Melbourne)
Package: pybtexris
A pybtex plugin for working with RIS files.InstallationInstall pybtexris from PyPI using pip:pip install pybtexrisCommand-line usageTo convert an RIS file to another format, use thepybtex-convertcommand. For example:pybtex-convert bibliography.ris bibliography.bibThe extension of the output file must be supported bypybtexor an associated plugin.To format an RIS file into a human-readable bibliography, use the pybtex-format command. For example:pybtex-format bibliography.ris bibliography.txtFor more information, seethe documentation for pybtex.Programmatic usageRIS files can be formatted into a human-readable bibliography as a string as follows:frompybteximportformat_from_filebibliography_string=format_from_file("path/to/file.ris",style="plain",output_backend="plaintext",bib_format="ris",)Multiple RIS files can be formatted in a similar way:frompybteximportformat_from_filesbibliography_string=format_from_files(["path/to/file1.ris","path/to/file2.ris"],style="plain",output_backend="plaintext",bib_format="ris",)So that RIS files can be combined with bibliography files of other formats (such as BibTeX),pybtexrisalso addsSuffixParserto the list of plugins which pybtex can use.
The user just needs to givesuffixas the argument tobib_format.frompybteximportformat_from_filesresult=format_from_files(["path/to/file1.ris","path/to/file2.bib"],style="plain",output_backend="plaintext",bib_format="suffix",)The parsers for the files for other formats need to be registered on thepybtex.database.input.suffixesentry point as discussed pybtexplugin documentation.
To combine with NBIB citation files, please use thepybtexnbibplugin.For more information on programmatic use of pybtex,
seethe documentation of the Python API of pybtex.CreditRobert Turnbull (Melbourne Data Analytics Platform, University of Melbourne)
Package: pybtl
Bitloads, or bit payloads, are compact payloads containing binary
representations of data. It’s a generic binary serialization format for Python
objects.The pybtl uses a declarative syntax for describing conversion of python
objects into bitloads and vice versa, and provides the tools for performing the
conversions. The name of the library has also been shotened to reflect its
purpose. :)Full documentation is availableon Readthedocs.
Package: pybt-smthnspcl
how to …… get started./dependencies.py… to use itPython 3.7.5rc1 (default, Oct  8 2019, 16:47:45)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from pybt import Scanner, ClassicDevice

In [2]: Scanner.scan_for()
Permission Denied
Set scan parameters failed (are you root?)
found 1 devices
Out[2]: [<pybt.libs.bt.classic.ClassicDevice at 0x7f3427045210>]

In [3]: c = ClassicDevice.scan()

In [4]: c
Out[4]: [<pybt.libs.bt.classic.ClassicDevice at 0x7f3425559d50>]

In [5]: c[0].__dict__
Out[5]:
{'address': 'A8:B8:6E:C1:6A:28',
 'timestamp': '03.11.2019 16:48:06',
 'name': 'Nexus 5X'}or checkbt.py
Package: pybud
PyBudPyBud is a Python debugging and profiling tool that generates videos of step-by-step code execution.Here's a PyBud video output from debugging the usage example below!InstallationUse the package managerpipto install PyBud.pipinstallpybudUsage ExampleUsageOnce installed, runningpybud --helpwill give you an overview of how to use PyBud.Here's the help output:$pybud-h
usage:pybud[-h][-t][-dFILE][-fFUNCTION[FUNCTION...]][-oFILE][-v[FILE]][-cCONFIG][-p[FILE]]APythondebuggerforanalyzingandprofilingfunctions.CreatedbyEastanGiebler.

optionalarguments:-h,--helpshowthishelpmessageandexit-t,--testTestPyBudonasuiteofsorting,searching,andsimilaralgorithms.OutputsaPyBudJSONforeachfunctioninthe'pybud/test/test_logs'package.

Debugging:Debugapythonfunctionandgenerateanoutputlog.-dFILE,--debugFILEPathtothePythonfileyouwishtodebug.-fFUNCTION[FUNCTION...],--functionFUNCTION[FUNCTION...]ThefunctioninthePythonfileyouwishtodebug,alongwiththeargumentsyouwishtopass.Defaultstothemainfunctionifargumentnotused.EXAMPLE:'--function test 2 4'willcall'test(2,4)'.-oFILE,--outputFILEOptional:Pathtowritethejsonlogfileto.Defaultstooutput.pybudifargumentnotused.-v[FILE],--video[FILE]GenerateavideorenderingforthePyBuddebugstepsoftheprogramflow.Optional:provideafilepathtooutputto,mp4istheonlysupportedformat,defaultstooutput.mp4.-cCONFIG,--video-cfgCONFIGPathtotheYAMLvideoconfigfileyouwishtouse,defaultconfigurationwillbeloadedifnotspecified.

ParsingandAnalysis:ParseaPyBudJSONoutputanddisplayinhuman-readableform.-p[FILE],--parse[FILE]Pathtothejsonlogyouwishtoparseintohuman-readableform.Defaultstooutput.pybudifafileisnotspecified.-v[FILE],--video[FILE]GenerateavideorenderingforthePyBuddebugstepsoftheprogramflow.Optional:provideafilepathtooutputto,mp4istheonlysupportedformat,defaultstooutput.mp4.-cCONFIG,--video-cfgCONFIGPathtotheYAMLvideoconfigfileyouwishtouse,defaultconfigurationwillbeloadedifnotspecified.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: pybudgetbook
pybudgetbookOrganize and sort your receipts locally, use pandas power to analyze your
expenses!
But why? There are tons of Apps out there scanning and even some for receipts.
Some of them might even be more general or better at parsing. Sure, but here are
the core reasons why I built this app. If they are important to you, give it a
try (and help to support more receipts)!Reason 1: Data PrivacyYour receipts combined with some personal data are a pretty good estimator on
where you are and what you are doing. I prefer to keep that data locally. This
software will neveraccess and sendany of that data since it runs locally.Reason 2: AdaptabilityReceipts differ for region and even for supermarkets. Here, some of the more
common german stores are included. If something does not work, add your own
reader / parser!Reason 3: Data AnalysisThe data is saved inhdf-files forpandasand can be easily exported tocsvor any other format manually. So analysis is not limited to the few plots
available (even though the initial version has some important ones). You can
easily load all your data using a simple one-liner and run all the analysis you
want. If you find anything particular useful, let me know and I can implement
that.Full Readme and Code on Github!Uses some icons fromYusuke KamiyamaneSome emojis / icons designed by OpenMoji – the open-source emoji and icon
project. License: CC BY-SA 4.0
Package: pybufr-ecmwf3
WARNING: this package is deprecated,
Starting from release 0.82 the package pybufr-ecmwf supports both python2 and python3 builds, so you are advised to no longer use this special python3 version.Please use the pybufr-ecmwf version whenever possible:https://pypi.python.org/pypi/pybufr-ecmwfa python interface around the Fortran90 ECMWF-BUFR library
constructed using the f2py interface generation tool.
The equivalent subroutines to the ones in the ECMWF-BUFR
library are made available to python, but also a set of wrapper
routines/classes is implemented to
create also a more object-oriented/pythonic interface.
Building the interface is still a bit rough, and may require some
editing of the setup.cfg file to choose the correct fortran and c-compiler.
Alternatively some dedicated commandline options have been
added to the setup.py script to allow changing these settings.
Run ‘setup.py build –help’ to get a list of the currently available
build options.
Package: py-bugs
PyBugThe all-in-one Python debugging solutionFeaturesPoints out errors in your Python scriptsFinds articles that can help you solve the errorAllows you to search for articles related to any question you may haveInstallation / SetupInstallPyBugusing pip by typingpip install py-bugsin your terminalOpen a new python file oncePyBugis installedAt the begining of the file type the following:import pybug
pybug.init(__file__)__file__can be replaced withsys.argv[0]orsys.executableto makePyBugwork with pyinstallerOnce you've done thatPyBugis completely installedIf you ever want to stopPyBug, you can simply just comment outpybug.init(__file__)If you want to keepPyBugrunning but you don't want to see the links, changepybug.init(__file__)topybug.init(__file__, debug = False)UsingPyBugPyBugis very simple to use, and for the most part, just runs in the backgroundPyBughas three main functionsinit(__file__)which just makesPyBugrun when the file startssearch(query)which takes a query and will return a list of useful links related to your queryerror(error)which will take anException, then find useful links related to itContributePlease feel free to contribute by forking and adding any features you wantAlso if you have any ideas that you want to add, but don't know how comment it somewhere
Package: pybugsnag
A python wrapper for the Bugsnag Data Access APIQuick startInstallation# installpipinstallpybugsnagBasic UsagefrompybugsnagimportBugsnagDataClientfrompybugsnag.modelsimportErrorclient=BugsnagDataClient("$AUTH_TOKEN")organization=client.organizations[0]# first organization for the auth tokenproject=organization.projects[0]# first project in the organizationproject.get_errors(sort=Error.Sort.LAST_SEEN,direction=Error.Sort.Direction.DESCENDING,per_page=30,)# gets errors for this project,project.get_trend_buckets()# data for a trend histogram
Package: pybuild-deps
pybuild-depsCLI tools to help dealing with python build dependencies. It aims to complement
tools that can pin dependencies likepip-toolsandpoetry.
For users relying exclusively on python wheels, those tools are more than enough.
However, for users building applications from source, finding and pinning build dependencies
is required for reproducible builds.pybuild-depsmight be useful for developers that need to explicitly declarealldependencies for compliance reasons or supply chain concerns.Featuresfind build dependencies for a given python packagegenerate pinned build requirements from requirements.txt files.InstallationYou can installpybuild-depsviapipfromPyPI:$pipinstallpybuild-depsUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theGPL 3.0 license,PyBuild Depsis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: pybuilder
PyBuilder — an easy-to-use build automation tool for PythonPyBuilder is a software build tool written in 100% pure Python, mainly
targeting Python applications.PyBuilder is based on the concept of dependency based programming, but it also
comes with a powerful plugin mechanism, allowing the construction of build life
cycles similar to those known from other famous (Java) build tools.PyBuilder is running on the following versions of Python 3.8, 3.9, 3.10, 3.11, 3.12 and PyPy 3.8 and 3.9.See theGitHub Actions Workflowfor version specific output.InstallingPyBuilder is available using pip:$ pip install pybuilderFor development builds use:$ pip install --pre pybuilderSee thePyPIfor more information.Getting startedPyBuilder emphasizes simplicity. If you want to build a pure Python project and
use the recommended directory layout, all you have to do is create a file
build.py with the following content:frompybuilder.coreimportuse_pluginuse_plugin("python.core")use_plugin("python.unittest")use_plugin("python.coverage")use_plugin("python.distutils")default_task="publish"See thePyBuilder homepagefor more details and
a list of plugins.Release NotesThe release notes can be foundhere.
There will also be a git tag with each release. Please note that we do not currently promote tags to GitHub "releases".DevelopmentSeeDeveloping PyBuilder
Package: pybuilder-anybadge
pybuilder-anybadgeA pybuilder plugin that generates badges for your project. The plugin will generate badges usingshields.io. However it can also create badges usinganybadgeif configured to do so.To add this plugin into your pybuilder project, add the following line near the top of your build.py:use_plugin('pypi:pybuilder_anybadge')NOTEif you are using Pybuilder versionv0.11.x, then specify the following version of the plugin:use_plugin('pypi:pybuilder_anybadge','~=0.1.6')Pybuilder anybadge propertiesThe pybuilder taskpyb anybadgewill use anybadge to generate badges for your project by processing reports produced from various plugins; the badges that are currently supported are:complexity- requires thepybuilder_radonplugin. Generate badge using cyclomatic complexity score of your most complicated function.vulnerabilities- requires thepybuilder_banditplugin. Generate badge using number of security vulnerabilities discovered by vulnerabilities.coverage- requires thecoverageplugin. Generate badge for overall unit test coverage.python- Generate badge for version of Python being usedThe plugin will write the respective badges to thedocs/imagesfolder. The following plugin properties are available to further configure badge generation.NameTypeDefault ValueDescriptionanybadge_excludestr''Comma delimited string of badges to exclude from processing, valid values are 'complexity', 'vulnerabilities', 'coverage' and 'python'anybadge_complexity_use_averageboolFalseUse overall average complexity as score when generating complexity badgeanybadge_use_shieldsboolTrueWill useimg.shields.ioto create the badges, if False will useanybadgeNotethe plugin will add the badge references but you must commit/push the changes (including svg files in the docs/images folder)The plugin properties are set usingproject.set_property, the following is an example of how to set the properties:project.set_property('anybadge_exclude','vulnerabilities,coverage')project.set_property('anybadge_complexity_use_average',True)project.set_property('anybadge_use_shields',True)By default the plugin will useshields.ioto create the badges:However, settinganybadge_use_shieldstoFalsewill render the badges usinganybadgeand save them as svg files in thedocs\imagesfolder:DevelopmentClone the repository and ensure the latest version of Docker is installed on your development server.Build the Docker image:dockerimagebuild\-t\pybanybadge:latest.Run the Docker container:dockercontainerrun\--rm\-it\-v$PWD:/code\pybanybadge:latest\bashExecute the build:pyb-X
Package: pybuilder-archetype-api
PyBuilder Archetype API PluginThis plugin generates a structure for a project that requieres endpoints (APIs or web services). This plugin needspybuilder_archetype_basedue to its dependancy with one of its
tasks (create_archetype_api).In the following diagram there is every directory and file created duringcreate_archetype_apiexecution (take note
thatcreate_archetype_basetask will add more packages and directories -check itsREADME.mdfile for more
information):src
└── package_name
    ├── api  # For every script related with the web services
    |   ├── __init__.py
    |   └── api_example.py
    ├── config
    |   ├── __init__.py
    |   └── constants.py
    ├── __init__.py
    ├── gunicorn_config.py  # Gunicorn launching configuration
    ├── main.py  # Script with Flask app
    └── wsgi.py  # WSGI file for server launch
requirements.txtContent fromrequirements.txtandconstants.pyfiles will be added to the currently existing ones, trying to keep
the values set by other plugins.How to use pybuilder_archetype_apiNOTICE: This plugin only works on Windows due to its dependency with pybuilder_archetype_base PyBuilder plugin.
Using this plugin in other OS shall not work properly. Multi-platform support soon.Add plugin dependencies to yourbuild.py(it requirespybuilder_archetype_baseandpybuilder_pycharm_workspaceto work properly):use_plugin('pypi:pybuilder_pycharm_workspace')use_plugin('pypi:pybuilder_archetype_base')use_plugin('pypi:pybuilder_archetype_api')Configure the plugin within yourinitfunction:@initdefinitialise(project):project.set_property('project_base_path',project_path)This will tell the plugin which is the project location in the filesystem.project_base_pathproperty value should
be always the same.Launch the task with:(venv)C:\Users\foo\PycharmProjects\bar> pyb create_archetype_apibuild.pyfile recommendedCheckpybuilder_archetype_basebuild.pyrecommendation.PropertiesPlugin has next properties with provided defaultsNameTypeDefault ValueDescriptionproject_base_pathPathNoneProject's path in filesystem (same asbuild.pyfile). Mandatory
Package: pybuilder-bandit
pybuilder-banditA pybuilder plugin that analyzes your project for common security issues usingbandit. Bandit is a security linter for Python code, for more information refer to thebandit pypi page.To add this plugin into your pybuilder project, add the following line near the top of your build.py:use_plugin('pypi:pybuilder_bandit')NOTEif you are using Pybuilder versionv0.11.x, then specify the following version of the plugin:use_plugin('pypi:pybuilder_bandit','~=0.1.3')Pybuilder bandit propertiesThe pybuilder taskpyb banditwill use bandit to scan your project to find common security issues, verbose mode will display to the screen any issues found. The following plugin properties are available to further configure the scan.NameTypeDefault ValueDescriptionbandit_break_buildboolFalseFail build if scan detects any issuesbandit_confidence_levelstrLOWReport only issues of a given confidence level or higher: LOW, MEDIUM, HIGHbandit_severity_levelstrLOWreport only issues of a given severity level or higher: LOW, MEDIUM, HIGHbandit_skip_idsstrNonecomma-separated list of test IDs to skipbandit_include_testsourcesboolFalseinclude scanning of project test sourcesbandit_include_scriptsboolFalseinclude scanning of project scriptsThe plugin properties are set usingproject.set_property, the following is an example of how to set the properties:project.set_property('bandit_break_build',True)project.set_property('bandit_confidence_level','LOW')project.set_property('bandit_severity_level','MEDIUM')project.set_property('bandit_skip_ids','B110,B315')project.set_property('bandit_include_testsources',True)project.set_property('bandit_include_scripts',True)DevelopmentClone the repository and ensure the latest version of Docker is installed on your development server.Build the Docker image:dockerimagebuild\-t\pybbandit:latest.Run the Docker container:dockercontainerrun\--rm\-it\-v$PWD:/code\pybbandit:latest\bashExecute the build:pyb-X