Saravanan666/pypi-org huggingface dataset:
Package: bologna
BolognaA tiny no-faff dependency injection module for python.Bologna, formerly called tinyDI, is a tiny easy-to-use dependency injection library for python.
This project has mainly evolved as a utility library for some
of my other projects, and is thus very utilitarian in its approach.
As the source code is only 100-ish lines, extending it is very easy.UsageDeclare injectable dependencies with theprovidefunction:frombolognaimportprovidefromdatetimeimportdatemy_injectable_string="Hello, DI. Today is"my_injectable_object=date.today()provide("greeting",my_injectable_string)provide("thedate",my_injectable_object)every injectable needs a unique name, which will be the function argument names.Mark functions that need to have arguments injected by the ´@inject´ annotation:frombolognaimportinject@injectdefprint_date(greeting=None,thedate=None):print(f"{greeting};{thedate}")print_date()# prints 'Hello, DI. Today is; 2022-07-21'FeaturesWhat is included:Async function supportWhat isnotincluded:Lazy evaluationSingletons...And pretty much any other feature that is included in most full-fledged DI packages.Building and contributingThis project is built withpoetryon 3.9.To build, clone the repo and runpoetry install. To run the tests, runpoetry run pytest, to package, runpoetry build.LicenseMIT licensePermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
Package: bols
Batch Ordinary Least Squares regressionAn OLS regression that allows you to iterate over your training data in
batches. Useful when a normal implementation of linear regression does not fit
into memory as this library is considerably more memory efficient than the
standard implementation.
Expects a vector of your dependent variable y as well as a column-ordered
design matrix with your independent variables X.
X needs to have the same shape for each iteration/update. Does not calculate
intercepts, i.e. data has to be already centered  or you have to add a dummy
column to your data. Naturally supports multi-processing as the heavy
lifting is done with numpy.
Inspired by the answer of Chris Taylor onStackoverlfow.InstallationThe library can be installed straight fromPyPI.pip install bolsThe only dependencies arenumpyandscipyand the library should work
with all Python versions >= 3.6.UsageFirst generate some data.>>>importnumpyasnp>>>data_y=np.random.random_sample((15000,))>>>data_x0=np.random.random_sample((15000,))>>>data_x1=np.random.random_sample((15000,))>>>data=np.column_stack((data_y,data_x0,data_x1))>>>y_a=data[0:5000,0]>>>y_b=data[5000:10000,0]>>>y_c=data[10000:15000,0]>>>data_a=data[0:5000,1:]>>>data_b=data[5000:10000,1:]>>>data_c=data[10000:15000,1:]Then you can just fit a model. You need to pass an iterable of both your
dependent and independent variables or in other words an iterable over your
batches. The only limitation is that batches need to be of the same size.>>>frombolsimportBOLS>>>model=BOLS()>>>model.batch([y_a,y_b],[data_a,data_b])We can then also use the fitted model to predict unseen data.>>>model.predict(data_c)array([0.27206,0.42766053,0.63881539,...,0.39375078,0.44824941,0.4866372])Alternatively, we can also update our model with new batches in the future.>>>model.batch([y_c],[data_c])We can also get a bunch of useful statistics about the regression withmodel.get_statistics(verbose=True)whereverbosedetermines whether the
method just returns the statistics or prints them as well.>>>model.get_statistics(verbose=True)OLSRegressionResultsF:13564.635P>|F|:0.0VariableCoef.StandardErrortP>|t|----------------------------------------------00.4290.00758.2250.00010.4330.00758.9260.000result(names=[0,1],F=13564.634855542236,F_p_value=0.0,R2=0.6439835739923647,RMSE=0.3463917044171118,beta=array([0.42915076,0.43304183]),se_beta=array([0.00737053,0.00734891]),beta_p_value=array([0.,0.]))Even though our data is purely random the regression and the coefficients are
both statistically significant.
It is up to the user to make sure linear regression is an appropriate model
for the data by for example examining the residuals (model.errors).TestsThe package is tested against both the implementations of linear regressions bysklearnandstatsmodels. Those two packages thus become additional
dependencies for running the tests.DevelopmentUsingnix-shell default.nixdrops you in a development shell with all
dependencies already installed.
Package: bolsa
Bolsa - Acesse facilmente seus investimentos na B3/CEIBiblioteca feita em python com o objetivo de facilitar o acesso a dados de seus investimentos na bolsa de valores(B3/CEI).RequisitosPython 3.8.xInstalação$ pip install bolsaAtualmente implementado usandoAsynciodo Python.Como utilizarVeja como é simples utilizar:frombolsaimportB3AsyncBackendb3_httpclient=B3AsyncBackend(username='SEU CPF/CNPJ',password='SUA SENHA',captcha_service=None# `captcha_service` não é obrigatório ainda)brokers=awaitb3_httpclient.get_brokers_with_accounts()assets_extract=(awaitb3_httpclient.get_brokers_account_portfolio_assets_extract(brokers=brokers))print(assets_extract)# Todos os seus ativos consolidados no CEIawaitb3_httpclient.session_close()awaitb3_httpclient.connection_close()Você pode acessar exemplos completos clicandoaqui.Funções disponíveisAtravés da classe de clientB3AsyncBackend, você terá acesso as seguintes funções:FunçãoParâmetrosDescriçãoget_brokers-Obtém os brokers disponíveis para aquela conta. Retorna um objeto Broker. (Ex: XP Inc, Clear, Easynvest...).get_broker_accountsbrokerAtravés de um broker passado como parâmetro, obtém suas respectivas contas na B3. Retorna umBrokercom uma lista deBrokerAccount.get_brokers_with_accounts-É uma junção entre os métodosget_brokerseget_broker_accounts. Retorna uma lista deBrokercom uma lista deBrokerAccount.get_broker_account_portfolio_assets_extractaccount_id: Número da conta no broker, broker_value: id do broker, broker_parse_extra_data: dados obtidos junto ao broker, account_parse_extra_data: dados obtidos junto a conta na corretora.Utilizado para obter todos os dados de ativos consolidados na b3. Retorna uma lista deBrokerAssetExtract.get_brokers_account_portfolio_assets_extractbrokersAtravés dos brokers passados por parâmetro, é obtido uma lista de ativos para cada broker. Retorna uma lista deBrokerAssetExtract.ModelsBrokerModel responsável pelos dados do broker.AtributoTipoDescriçãovaluestrIdentificador da corretora na B3.namestrNome do broker na B3.accountslistLista de contas no broker.BrokerAccountModel responsável pelos dados da conta no broker.AtributoTipoDescriçãoidstrNúmero da conta no broker.BrokerAssetExtractModel responsável pelos dados do ativo.AtributoTipoDescriçãooperation_datedatetimeData de operação do ativo.actionBrokerAssetExtractActionIdentificador do tipo de operação compra/venda.market_typeBrokerAssetExtractMarketTypeTipo de mercado, a vista ou fracionário.raw_negotiation_codestrCódigo de negociação.asset_specificationstrEspecificação do ativo no CEI.unit_amountintQuantidade de ativo.unit_pricedecimalValor unitário do ativo.total_pricedecimalValor total do ativo.quotation_factorintFator de cotação.
Package: bolsasfnde
🌟 Consulta de Bolsas do FNDE 🌟📦 PyPIBem-vindo ao projetoConsulta de Bolsas do FNDE. Esta biblioteca foi criada para simplificar o processo de verificação do status da concessão de bolsas através do site do Fundo Nacional de Desenvolvimento da Educação (FNDE).💡 Como Funciona?O algoritmo faz uma requisição para um endpoint do FNDE usando o CPF do bolsista. Obtendo um hash com algumas informações do bolsista, mas o interessante é usar o hash para obter a informação o histórico de bolsas recebidas. Quando o hash é enviado a outro endpoint, obtemos um json com o histórico de bolsas que recebe um tratamento para deixar legível e permite descobrir se a bolsa caiu.🚀 Instalação RápidaPara começar, siga estes passos simples:Instale usando o pip:python3-mpipinstallbolsasfndeou Clone e instale localmente:gitclonehttps://github.com/asm444/bolsas-fnde.git&&python3-mpipinstall-ebolsas-fndeExecute a biblioteca compython3-mbolsasfnde💡Execução ManualClone o repositóriogitclonehttps://github.com/asm444/bolsas-fnde.gitinstale as dependênciaspython3-mpipinstallrequestse execute o algoritmocdbolsas-fnde;python3main.pye após a primeira consulta, as próximas consultas podem ser feitas ao executar o main.py compython3main.py
Package: bolster
Bolster’s Brain, you’ve been warnedFree software: GNU General Public License v3Documentation:https://bolster.readthedocs.io.FeaturesEfficient tree/node traversal and iterationDatetime helpersConcurrecy HelpersWeb safe Encapsulation/Decapsulation helperspandas-esqueaggregate/transform_rfunctions“Best Practice” AWS service handlingData SourcesUK Companies House Listings:NI House Price Index Data Wrangling:Electoral Office for Northern Ireland (2016-2022 Assembly Election Results):NI Water Quality Data:CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: bolt
BoltSupercharge Minecraft commands with Python.infinite_invisibility={Id:14,Duration:999999,Amplifier:1,ShowParticles:false,}defsummon_chicken_army(n):foriinrange(n):summonchicken~i~~{Tags:[f"quack{i}"],IsChickenJockey:true,Passengers:[{id:zombie,IsBaby:true,ActiveEffects:[infinite_invisibility]}]}sayGoforth,myminions!summon_chicken_army(16)InstallationThe package can be installed withpip.$pipinstallboltContributingContributions are welcome. Make sure to first open an issue discussing the problem or the new feature before creating a pull request. The project usespoetry.$poetryinstallYou can run the tests withpoetry run pytest.$poetryrunpytestThe project must type-check withpyright. If you're using VSCode thepylanceextension should report diagnostics automatically. You can also install the type-checker locally withnpm installand run it from the command-line.$npmrunwatch
$npmruncheckThe code follows theblackcode style. Import statements are sorted withisort.$poetryrunisortbolttests
$poetryrunblackbolttests
$poetryrunblack--checkbolttestsLicense -MIT
Package: bolt11
Lightning BOLT11 utilsThis is an implementation of the Lightning BOLT11 specification,
based on previous work byRusty Russell, theElectrum Wallet team,
and the LNbits bolt11 helpers created by@fiatjaf.resourcesBolt11 Specbolt11.orglightningdecoderinstalling$gitclonehttps://github.com/lnbits/bolt11$cdbolt11$poetryinstallrunning CLI$poetryrunbolt11--help$poetryrunbolt11decoderun all checks and tests$makeusing pre-commit as git hook$poetryrunpre-commitinstallrunning CLI$poetryrunbolt11--helprunning CLI decode$ poetry run bolt11 decode lnbc20m1pvjluez.....
{
  "currency": "bc",
  "amount": 2000000000,
  "timestamp": 1496314658,
  "signature": "6a6586db4e8f6d40e3a5bb92e4df5110c627e9ce493af237e20a046b4e86ea200178c59564ecf892f33a9558bf041b6ad2cb8292d7a6c351fbb7f2ae2d16b54e",
  "description_hash": "3925b6f67e2c340036ed12093dd44e0368df1b6ea26c53dbe4811f58fd5db8c1",
  "features": {
    "var_onion_optin": "required",
    "payment_secret": "required"
  },
  "fallback": "1RustyRX2oai4EYYDpQGWvEL62BBGqN9T",
  "route_hints": [
    {
      "public_key": "029e03a901b85534ff1e92c43c74431f7ce72046060fcf7a95c37e148f78c77255",
      "short_channel_id": "66051x263430x1800",
      "base_fee": 1,
      "ppm_fee": 20,
      "cltv_expiry_delta": 3
    },
    {
      "public_key": "039e03a901b85534ff1e92c43c74431f7ce72046060fcf7a95c37e148f78c77255",
      "short_channel_id": "197637x395016x2314",
      "base_fee": 2,
      "ppm_fee": 30,
      "cltv_expiry_delta": 4
    }
  ],
  "min_final_cltv_expiry": 9,
  "payment_hash": "0001020304050607080900010203040506070809000102030405060708090102",
  "payment_secret": "1111111111111111111111111111111111111111111111111111111111111111",
  "payee": "03e7156ae33b0a208d0744199163177e909e80176e55d97a2f221ede0f934dd9ad"
}running CLI encode$ poetry run bolt11 encode '{
  "currency": "bc",
  "amount_msat": 1000,
  "date": 1590000000,
  "tags": {
      "payment_hash": "0001020304050607080900010203040506070809000102030405060708090102",
      "payment_secret": "1111111111111111111111111111111111111111111111111111111111111111",
      "d": "description"
  }
}' e126f68f7eafcc8b74f54d269fe206be715000f94dac067d1c04a8ca3b2db734
Package: boltlib
boltlib - Bitcoin Lightning BoltCard libraryboltlibis a Python library and command line tool for easy reading and writing ofBoltCardsbased onpyscardRequirementsPython 3.8or higher.Smart Card Reader (USB CCID class-compliant)Tested withIdentiv uTrust 3700Fbut should work with others like for exampleACS ACR1252UorHID Omnikey 5022 CL.Note: On Ubuntu/Debian runsudo apt-get install libpcsclite-dev swigbefore installation.Installation$pipinstallboltlibCommand line usage$boltcard
Usage:boltcard[OPTIONS]COMMAND[ARGS]...

Options:--versionShowtheversionandexit.-s,--silentSilencedebugoutput.--helpShowthismessageandexit.

Commands:readReadBoltCardUIDandURIwriteWriteURItoBoltCard(unprovisionedonly)Library usageimportboltliburi=boltlib.read_uri()print(uri)DevelopmentRequirementsPython 3.8or higher.Poetryfor installation and dependency management.Setupgitclonehttps://github.com/titusz/boltlib.gitcdboltlib
poetryinstallRun TasksBefore committing changes run code formatting and tests with:poeall
Package: boltml-python
boltml-pythonTheBoltMLclient library for Python.InstallationInstall the latest version of the BoltML client library using pip:pipinstallboltml-pythonUsageAfter signing up for BoltML, you will receive a client token. You can use this token to authenticate with the BoltML API.fromboltmlimportBoltMLClientAPI_ENDPOINT="https://api.boltml.dev"CLIENT_TOKEN="<...>"client=BoltMLClient(API_ENDPOINT,CLIENT_TOKEN)
Package: bolton-clack
clackcommand-line application configuration kit (CLACK)... A wrapper around theargparselibrary that aims to handleallapplication configuration.project status badges:version badges:Installation 🗹To installclackusingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-clack# install clackIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: bolton-eris
erisThe Greek Goddess of Strife and Discord... A better way to handle, trace, and log errors in Python.project status badges:version badges:Installation 🗹To installerisusingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-eris# install erisIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: bolton-hush
hushA Python library that helps manage secrets using tools specified by plugin hooks.project status badges:version badges:Installation 🗹To installbolton-hushusingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-hush# install hushIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.Usage: How do I use Hush?Writing Plugins: How do I write my own plugins for Hush?
Package: bolton-ion
ionI/O ninja (ION)... Utilities related to I/O that we find useful.project status badges:version badges:Installation 🗹To installbolton-ionusingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-ion# install ionIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: bolton-logrus
logrusBetter logging made easy with support for structlog and the standard logging module.project status badges:version badges:Installation 🗹To installlogrususingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-logrus# install logrusIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: bolton-metaman
metamanmetadata manager (METAMAN)... Makes use of Python's dynamic nature to inspect a program's internals.project status badges:version badges:Installation 🗹To installmetamanusingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-metaman# install metamanIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: bolton-proctor
proctorprocess doctor (PROCTOR)... Utilities related to process / thread management.project status badges:version badges:Installation 🗹To installproctorusingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-proctor# install proctorIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: bolton-typist
typistTyping utilities we wish were in the standard library.project status badges:version badges:Installation 🗹To installtypistusingpip, run the following
commands in your terminal:python3-mpipinstall--userbolton-typist# install typistIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: bolt-sdk
Bolt SDKThis SDK provides an authentication solution for programatically interacting with Bolt. It wraps the boto3 interface so project wide integration is as easy as refactoringimport boto3toimport bolt as boto3.The package affects the signing and routing protocol of the boto3 S3 client, therefore any non S3 clients created through this SDK will be un-affected by the wrapper.PrerequisitesThe minimum supported version of Python is version 3.Installationpython3-mpipinstallbolt-sdkConfigurationFor the client to work it must have knowledge of Bolt'sservice discovery url(BOLT_URL)
These are parameterized by theregionof Bolt's deployment. A preferredavailability zone IDcan also be provided for AZ-aware routing.There are two  ways to expose Bolt's URL to the SDK:Declare the ENV variable:BOLT_CUSTOM_DOMAIN, which constructs Bolt URL and hostname based on default namingexportBOLT_CUSTOM_DOMAIN="example.com"Directly declare the ENV variables:BOLT_URLBOLT_URLmust be formatted as follows:https://<subdomain>{region}<domain>An example is:https://bolt.{region}.google.comWhere the{region}within the URL is a string literal placeholder that will be replaced by the python sdkexportBOLT_URL="<url>"There are two ways to expose Bolt's region/preferred availability zone to the SDK:If running on an EC2 instance the SDK will by default use that instance's region and zone IDWith the ENV variables:AWS_REGIONandAWS_ZONE_ID.exportAWS_REGION='<region>'exportAWS_ZONE_ID='<az-id>'DebuggingImport the default logger and set its level to DEBUGlogging.getLogger().setLevel(logging.DEBUG)TestsBasic integration tests are provided for the modified Session/Client interfaces. They must be run in an environment with a properly configured Bolt deployment accessible.python3tests/tests.py