Saravanan666/pypi-org huggingface dataset:
Package: bratabase-social-auth-backend
Bratabase social-auth Backend=============================OAuth2 Backend for Bratabase.com to be used with Django-social-auth.https://github.com/omab/django-social-auth# Installation```$ pip install bratabase-social-auth-backend```To enable, simply add the following to your `settings.py`:```AUTHENTICATION_BACKENDS = [... your other backends'bratabase_social_auth.backends.bratabase.BratabaseBackend','django.contrib.auth.backends.ModelBackend',]```And add a **Connect with Bratabase** button that points to `{% url 'socialauth_begin' 'bratabase' %}`.History-------0.1.0 (2013-08-11)++++++++++++++++++* First release on PyPI.
Package: brat-reader
# corenlp-xml-reader
A utility for easily working with CoreNLP-annotated text in Python.## About this package
Other than reading the xml file into a python representation, this utility
does some necessary “fixing up” of the data in CoreNLP.
[to be described]## Quickstart### Install
Install from the Python Package Index:`bash pip installcorenlp-xml-reader`Alternatively, install a version you can hack on:`bash git clonehttps://github.com/enewe101/corenlp-xml-reader.gitcdcorenlp-xml-readerpython setup.py develop `### Use[Add basic usage examples.]
Package: bratserver
Brat packageUpdate and initialize submodules if cloning the repositorygitsubmoduleupdate--init--recursiveInstallation from gitpython3.8-mvenvvenvsourcevenv/bin/activate# python3.8 -m pip install .python3.8-mpipinstallgit+https://github.com/melissayan/brat-package.git# Confirm the executable is placed in the pathwhichbratHow to run bratCreate a test directory that will be used for annotation data:mkdir-pvtestcdtestBRAT_PASSWORD=pass4brat8081Environment VariablesDefaults:BRAT_DATA_DIR=$(cwd)/annotation-dataBRAT_WORK_DIR=${HOME}/.bratBRAT_USER=adminBRAT_PASSWORD=BRAT_AUTH_ENABLED='true'BRAT_LOG_REQUESTS='true'BRAT_MAX_SEARCH_RESULT_NUMBER=1000BRAT_DEBUG='false'BRAT_ADMIN_CONTACT_EMAIL='admin@example.com'BRAT_HOST=''# empty string means 0.0.0.0BRAT_PORT=8081All the variables can be overriden if set exporter before runningbrat.If usingBRAT_AUTH_ENABLED=truemake sure to setBRAT_PASSWORD.Example of disabling login:BRAT_AUTH_ENABLED=falsebrat
Package: bratutils
bratutilsA collection of utilities for manipulating data and calculating inter-annotator
agreement in brat annotation files.InstallationInstall as a normal package from the source directory.$pipinstallbratutilsAgreement DefinitionAgreement in multi-token annotations is commonly evaluated usingf-score.
due to various problems with computing the traditionalKrippendorf's alphaandCohen's kappa.Hripcsakprove the validity of the metric
for very large populations, i.e. for unrestricted text annotations.This library roughly follows the definitions of precision and recall calculation
from theMUC-7 test scoring. The basic definitions along with some
additional restrictions are laid out below:CORRECT- when annotation tags and indices match completelyINCORRECT- when annotation tags do not match, but the indices coincidePARTIAL- when the annotation tags are the same but one of the annotations
has the same end index and a different start indexMISSING- annotations exising only in the gold standard annotation setSPURIOUS- annotations existing only in the candidate annotation setNote: the gold standard is considered the collections/document from which the
comparison is invoked, while the supplied parallel annotation is considered
the candidate set.Disclaimer:the current definition of thePARTIALcategory accomodates
working with syntactic chunks. A different arrangement (e.g. pick largest
contained tag as partial match instead of rightmost) might be more suitable for
other tasks, for example some types of semantic annotation.ExamplesSimple example:frombratutilsimportagreementasadoc=a.Document('res/samples/A/data-sample-1.ann')doc2=a.Document('res/samples/B/data-sample-1.ann')doc.make_gold()statistics=doc2.compare_to_gold(doc)print(statistics)Output:-------------------MUC-Table--------------------
------------------------------------------------
pos:135
act:134
cor:115
par:5
inc:4
mis:11
spu:10
------------------------------------------------
pre:0.858208955224
rec:0.851851851852
fsc:0.855018587361
------------------------------------------------
und:0.0814814814815
ovg:0.0746268656716
sub:0.0725806451613
------------------------------------------------
bor:119
ibo:15
------------------------------------------------
------------------------------------------------
Package: braubuddy
Braubuddyis a temperature management framework written in Python.Conceived as a means of monitoring and controlling the fermentation temperature of beer,Braubuddycan be used in any situation where visibility and/or control of temperature is critical:Keep tropical fish swimming happily in water that’s 26°CBrew a perfect lager by fermenting at a constant 9°CMaximise employee productivity with an optimum office ambient air temp of 21.5°CComplete documentation is available atbraubuddy.org.FeaturesWeb InterfaceBraubuddy’s web interface facilitates temperature monitoring from any device with a web browser.APITime-series temperature, heating and cooling metrics may be consumed programatically using theBraubuddyAPI.OutputsBraubuddyoutputs allow metric values to be recorded in a variety of formats or published directly to external services including Graphite, Librato, Dweet and Twitter.ExtensibleThe variousBraubuddycomponents are designed to be extended. ConsultCONTRIBUTE.RSTif you’d like to request or contribute support for a particular component.Getting StartedHardwareTo monitor temperature usingBraubuddyyou will need a supportedthermometer.To control temperature you will also need a supportedenvironmental controller.InstallBraubuddyis best enjoyed from within a Pythonvirtualenv:virtualenv ~/braubuddy
source ~/braubuddy/bin/activateProductionInstall the latest production release fromPyPI <https://pypi.python.org/>:pip install braubuddyDevelopmentInstall the latest development release fromGithub:git clone https://github.com/amorphic/braubuddy.git
pip install -e ./braubuddyStartStart braubuddy with a single command:braubuddyConfigureIf not already present, a default configuration file is deployed to~/.config/braubuddy/.For system-wide configuration, copy this config file to/etc/xdg/braubuddy/.The example config file use default targets and automatically attempts to find a compatible thermometer and environmental controller. Followthe docsto customise your configuration.
Package: braulio
BraulioSimplify software release by handling versioning and changelogs.Braulio walks through all commits of your Git project and classifies them
to determine what should be the next version and generate a proper changelog.
To do so, it collects only Commits that follow a given message convention.Read thedocumentationto know how it works.HighlightsDetermine the next version automatically.Update the Changelog with new changes.Customizable Commit message convention.Support pre-releases.Can merge pre-release changelogs.InstallingInstall and update using pip:$pipinstall-UbraulioUsageTo setup your project$brauinitTo release a new version$braureleaseFree software: MIT licenseHistory0.3.0 (2018-08-22)Bug FixesreleaseAbort when a lower version is passed to –bumpStop aborting when user inputs No to confirmation promptEnsure –bump works with versions without minor and patch parts.Validate tag_pattern valuegit - Fix Tag’s __repr__ and __str__ methodsFeaturesreleaseAdd –merge-pre optionAdd –stage optionSupport pre-release versionsAdd option to customize the commit messageAdd option to specify the current versionAdd support to custom git tag namesAdd support to custom commit message conventionscli - Add –version option to output current version0.2.0 (2018-07-25)Bug Fixeschangelog - Fix release markup being inserted in the wrong placeFeaturesreleaseShow useful info while running release subcommandAdd support to custom change log file namesSupport version string update on selected filesinit - Add interactive config and changelog files creation0.1.0 (2018-07-13)FeaturesreleaseAdd –no-commit and –no-tag optionsAdd options for manual version bump
Package: bravado
BravadoAboutBravado is a Yelp maintained fork ofdigium/swagger-pyfor use withOpenAPI Specification version 2.0(previously
known as Swagger).From the OpenAPI Specification project:The goal of The OpenAPI Specification is to define a standard,
language-agnostic interface to REST APIs which allows both humans and
computers to discover and understand the capabilities of the service
without access to source code, documentation, or through network traffic
inspection.Client libraries can automatically be generated from the OpenAPI specification,
however Bravado aims to be a complete replacement for code generation
(swagger-codegen).Example Usagefrombravado.clientimportSwaggerClientclient=SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json')pet=client.pet.getPetById(petId=1).response().resultExample with Basic Authenticationfrombravado.requests_clientimportRequestsClientfrombravado.clientimportSwaggerClienthttp_client=RequestsClient()http_client.set_basic_auth('api.yourhost.com','username','password')client=SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json',http_client=http_client,)pet=client.pet.getPetById(petId=1).response().resultExample with Header Authenticationfrombravado.requests_clientimportRequestsClientfrombravado.clientimportSwaggerClienthttp_client=RequestsClient()http_client.set_api_key('api.yourhost.com','token',param_name='api_key',param_in='header')client=SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json',http_client=http_client,)pet=client.pet.getPetById(petId=1).response().resultExample with Fido Client (Async Http Client)# Install bravado with fido extra (``pip install bravado[fido]``)frombravado.fido_clientimportFidoClientfrombravado.clientimportSwaggerClienthttp_client=FidoClient()client=SwaggerClient.from_url('http://petstore.swagger.io/v2/swagger.json',http_client=http_client,)pet=client.pet.getPetById(petId=1).response().resultDocumentationMore documentation is available athttp://bravado.readthedocs.orgInstallation# To install bravado with Synchronous Http Client only.$pipinstallbravado# To install bravado with Synchronous and Asynchronous Http Client (RequestsClient and FidoClient).$pipinstallbravado[fido]DevelopmentCode is documented usingSphinx.virtualenv. is
recommended to keep dependencies and libraries isolated.Setup# Run teststox# Install git pre-commit hookstox-epre-commitinstallContributingFork it (http://github.com/Yelp/bravado/fork)Create your feature branch (git checkout-bmy-new-feature)Add your modificationsCommit your changes (git commit-m"Add some feature")Push to the branch (git push originmy-new-feature)Create new Pull RequestReleasing a new version (Yelpers only)Seehttps://yelpwiki.yelpcorp.com/pages/viewpage.action?pageId=19022447LicenseCopyright (c) 2013, Digium, Inc. All rights reserved.
Copyright (c) 2014-2021, Yelp, Inc. All rights reserved.Bravado is licensed with aBSD 3-Clause
License.
Package: bravado-bitjws
Bravado-bitjws is an add on forBravadothat allowsbitjwsauthentication.InstallBy default it’s expected thatsecp256k1is available, so
install it before proceeding; make sure to run./configure--enable-module-recovery. If you’re using some other
library that provides the functionality necessary for this, check theUsing a custom librarysection of the bitjws README.Bravado-bitjws can be installed by running:pip installbravado-bitjwsBuilding secp256k1In case you need to install thesecp256k1C library, the following
sequence of commands is recommended. If you already havesecp256k1,
make sure it was compiled from the expected git commit or it might fail
to work due to API incompatibilities.git clone git://github.com/bitcoin/secp256k1.git libsecp256k1
cd libsecp256k1
git checkout d7eb1ae96dfe9d497a26b3e7ff8b6f58e61e400a
./autogen.sh
./configure --enable-module-recovery
make
sudo make installUsageBravado-bitjws is used just like Bravado. The primary difference users
need to be aware of is the management of bitjws keys.Create a client with existing keys# Your bitjws private key in WIFprivkey="KweY4PozGhtkGPMvvD7vk7nLiN6211XZ2QGxLBMginAQW7MBbgp8"# the URL of the swagger specurl="http://0.0.0.0:8002/static/swagger.json"# initialize your clientclient=BitJWSSwaggerClient.from_url(url,privkey=privkey)If no key is provided to BitJWSSwaggerClient, one will be generated.
However the private key originated, it is important to store private key
somewhere secure.Known LimitationsCurrently there is no management of server keys. This means that
Bravado-bitjws checks the signature of server responses, but trusts all
keys. It is up to the Bravado-bitjws user to match the server’s key
against a trusted list.
Package: bravado-core
.. image::https://github.com/Yelp/bravado-core/workflows/build/badge.svg?branch=master:target:https://github.com/Yelp/bravado-core/actions?query=workflow%3Abuild.. image::https://img.shields.io/coveralls/Yelp/bravado-core.svg:target:https://coveralls.io/r/Yelp/bravado-core.. image::https://img.shields.io/pypi/v/bravado-core.svg:target:https://pypi.python.org/pypi/bravado-core/:alt: PyPi version.. image::https://img.shields.io/pypi/pyversions/bravado_core.svg:target:https://pypi.python.org/pypi/bravado-core/:alt: Supported Python versionsbravado-coreAboutbravado-core is a Python library that adds client-side and server-side support
for theOpenAPI Specification v2.0 <https://github.com/OAI/OpenAPI-Specification>__.FeaturesOpenAPI Specification schema validationMarshaling, transformation, and validation of requests and responsesModels as Python classes or dictsCustom formats for type conversionDocumentationDocumentation is available atreadthedocs.org <http://bravado-core.readthedocs.org>__Installation::$ pip install bravado-coreRelated Projectsbravado <https://github.com/Yelp/bravado>__pyramid-swagger <https://github.com/striglia/pyramid_swagger>__swagger-spec-validator <https://github.com/Yelp/swagger_spec_validator>__Development| Code is documented usingSphinx <http://sphinx-doc.org/>.
|virtualenv <http://virtualenv.readthedocs.org/en/latest/virtualenv.html>is recommended to keep dependencies and libraries isolated.
|tox <https://tox.readthedocs.org/en/latest/>__ is used for standardized testing.Setup::# Run tests
tox

# Install git pre-commit hooks
.tox/py310/bin/pre-commit installContributingFork it (http://github.com/Yelp/bravado-core/fork)Create your feature branch (git checkout -b my-new-feature)Add your modificationsAdd short summary of your modifications onCHANGELOG.rstCommit your changes (git commit -m "Add some feature")Push to the branch (git push origin my-new-feature)Create new Pull RequestLicense| Copyright (c) 2013, Digium, Inc. All rights reserved.
| Copyright (c) 2014-2015, Yelp, Inc. All rights reserved.Bravado is licensed with aBSD 3-Clause License <http://opensource.org/licenses/BSD-3-Clause>__.
Package: bravado-django-test-client
Bravado Django Test ClientDjango Test Clientcompatible HTTP Client withBravado.This allows your Django API and OpenAPI v2 (Swagger) specification files to be tested against each other in your unit tests. The aim being to quickly highlight any potential discrepancies between the specification and your actual API.Basic Usagefrombravado.clientimportSwaggerClientfrombravado.swagger_modelimportload_filefrombravado_django_test_client.django_test_clientimportDjangoTestHttpClientfrombravado_django_test_client.configimportconfigfromrest_framework.testimportAPIClientswagger_file=load_file("schema.yaml")test_client=APIClient()# or the standard django test clientbravado_http_client=DjangoTestHttpClient(test_client)client=SwaggerClient.from_spec(swagger_file,http_client=bravado_http_client,config=config)# now use as you would a normal bravado clientpet_result=client.pet.getPetById(petId=42).response().result# any request or response that doesnt match your schema will raise an exceptionSee thetests directoryfor a more complete example.
Package: bravado-falcon
Integration of Falcon API unit tests with Bravado. For testing your application’s contract.You can easily implement Bravado integrations for other frameworks’ unit tests (e.g. Flask’s) based
on this code.This library doesn’t do much, but it’s actually feature-complete (there weren’t that many features
to implement…).One thing that can be changed in the future is the way Falcon requests are simulated.
Right now it’s done withpytest-falcon, but you
don’t have to use Pytest in your tests (but it’s great and you probably should at least check
it out).Usagefrombravado.clientimportSwaggerClientfrombravado_falconimportFalconHttpClientapi=get_falcon_api()# get a falcon.APIswagger_spec=get_swagger_spec()# dict created by loading a YAML or JSON from a fileclient=SwaggerClient.from_spec(swagger_spec,http_client=FalconHttpClient(api))# "v1" is the first part of a path (e.g. "/v1/shopping/lists")# "getList" is the "operationId" element for an endpoint from Swagger# "id" is a path parameter (let's say from "/v1/shopping/lists/{id}")# See Bravado docs for more information.list_object=client.v1.getList(id='list-id').result()# now make assertions about the returned object
Package: bravais
bravaisA simple package for representingBravais lattices. Primarily useful to check the passed parameters represent a valid Bravais lattice. If a lattice parameter is not specified, it will be assigned randomly (such that all lattice parameters remain compatible with the specified lattice system).Installationpip install bravaisExamplesImport theBravaisLatticeclass:frombravaisimportBravaisLatticeQuickly generate a monoclinic Bravais lattice without specifying any lattice parameters:mon_lat=BravaisLattice('monoclinic')print(mon_lat)P-centred monoclinic lattice (a=5.9417, b=4.7245, c=5.7335, alpha=90.00, beta=90.00, gamma=51.01)Generate a body-centred tetragonal Bravais lattice with particular lattice parameters:tet_lat=BravaisLattice('tetragonal','I',a=3)print(tet_lat)I-centred tetragonal lattice (a=3.0000, b=3.0000, c=3.5708, alpha=90.00, beta=90.00, gamma=90.00)Note that the following single-digit codes are used to specify centring-types:P -> primitive
B -> base
I -> body
F -> face
R -> rhombohedral
Package: braveblock
A fast and easy adblockplus parser and matcher based on adblock-rust packageTable of ContentsTable of ContentsAbout The ProjectBuilt WithInstallationUsageLicenseContactAbout The ProjectThis library is a Python binding to theadblock-rustlibrary that was written by Brave's browser team. The binding usespyo3to interact with the rust package.Built Withpyo3adblock-rustInstallationpip3installbraveblockUsageimportbraveblock# Initialize the engine loaded with a rules list# One can download easylist and load its lines into the enginebraveblock.Adblocker(rules=["-advertisement-icon.","-advertisement/script.",])# This function checks whether the specified url should be blockedadblocker.check_network_urls(url="http://example.com/-advertisement-icon.",source_url="http://example.com/helloworld",request_type="image",)LicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactGal Ben David -gal@intsights.comProject Link:https://github.com/intsights/Braveblock
Package: brave-leo
Brave Leo"Brave Leo" is a Python module that provides access to Brave's Leo AI chat functionality based on Llama. With this module, you can easily integrate AI chat capabilities powered by Brave's Leo into your Python applications.InstallationYou can install "brave-leo" using pip:pipinstallbrave-leoUsageHere's a quick example of how to use "brave-leo" to interact with Brave's Leo AI:Sync,frombrave_leoimportLeo# Initialize the Leo instanceleo=Leo()# Ask to Leo and get a responseresponse=leo.ask('What is the weather like today?')print("Leo:",response.completion)Async,importasynciofrombrave_leoimportAsyncLeo# Initialize the Leo instanceleo=AsyncLeo()asyncdefmain():# Ask to Leo and get a responseresponse=awaitleo.ask('What is the weather like today?')print("Leo:",response.completion)# Close Sessionawaitleo.close()asyncio.run(main())LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.ContributingContributions are welcome! If you have suggestions or find issues, please feel free to open an issue or submit a pull request.
Package: braviaproapi
braviaproapiThis library provides an easy-to-use Python interface for controlling Sony Bravia televisions. It implements the
BRAVIA Professional Display API, which is present on recent consumer hardware. For more information, take a look atSony's API documentation.It supports the following features:Control and launch applications, including text entry into form fields.Configuration of display and audio optionsControl over various system functions (sleep/wake, LED configuration, power saving, etc.)Direct control of external inputs and media sourcesEmulated remote control input via IRCC commandsCompatibilityThis library is intended for use on newer, Android-based televisions. A list of devices and software versions known to be compatible is available onthe GitHub wiki.It has come to my attention that some newer Bravia models have received software updates bumping their API version to higher than 3.x. These devices are not supported by braviaproapi at this time as I do not have a compatible device to test with. Contributions to the library (and the above linked wiki page) are encouraged if you have a supported device!If your device is not compatible, braviaproapi will raise the following exception on first connection:braviaproapi.bravia.errors.apierror.ApiError: The target device is running an incompatible API version 'X.Y.Z'RequirementsThis library supports Python 3.7 and higher. You can install it withpip install braviaproapi.Documentation / Getting StartedYou can view the documentation for this project atRead The Docs.Generating Documentation LocallyGenerating the documentation for this project requiresSphinx. Installing from pip is recommended.Once Sphinx is installed, run these commands to generate documentation (requires GNU make):cddocs
makehtmlContributingSee an issue? Have something to add? Issues and pull requests are accepted in this repository.LicenseThis project is released under the MIT License. Refer to the LICENSE file for details.
Package: braviarc-homeassistant-dev
BraviaRC Python PackageInstallationpip3 install git+https://github.com/dcnielsen90/braviarc.gitAboutBraviaRCis a Python library for remote communication with Sony Bravia TVs 2013 and newer
(http://info.tvsideview.sony.net/en_ww/home_device.html#bravia)RequirementsPython 3.3 or 3.4 is required.Usage#new instance for TV at 192.168.1.25braviarc=BraviaRC('192.168.1.25')#connect to the instance (or register)pin='1878'braviarc.connect(pin,'my_device_id','my device name')#check connectionifbraviarc.is_connected():#get power statuspower_status=braviarc.get_power_status()print(power_status)#get playing infoplaying_content=braviarc.get_playing_info()#print current playing channelprint(playing_content.get('title'))#get volume infovolume_info=braviarc.get_volume_info()#print current volumeprint(volume_info.get('volume'))#change channelbraviarc.play_content(uri)#get app listapp_info=braviarc.load_app_list()print(app_info)#start a given appbraviarc.start_app("Netflix")#turn off the TVbraviarc.turn_off()