Saravanan666/pypi-org huggingface dataset:
Package: brazilcep
About|Install|How to Use|DocumentationContributeCreditsAboutBrazilCEPis a minimalist and easy-to-use python library designed to query CEP (brazilian zip codes) data.Its objective is to provide a common query interface to all these search services, facilitating
the integration of Python applications with these services.Currently supports several CEP API's:ViaCEPApiCEP (WideNet)BrazilCEPis the new name of formerPyCEPCorreiopython library.
If you want to migrate the old code to the new version, please see themigratesection in docs.InstallThe recommended way to get BrazilCEP is toinstall the latest stable releaseviapip:pipinstallbrazilcepWe currently supportPython 3.8+ only. Users on older interpreter versions
are urged to upgrade.How to UseMaking a request is very simple. Begin by importing the BrazilCEP module:>>>importbrazilcepNow, call theget_address_from_cepto query any CEP:>>>address=brazilcep.get_address_from_cep('37503-130')Now, we have adictobject calledaddress. We can
get all the address information we need from this object:>>>address{'district':'rua abc','cep':'37503130','city':'city ABC','street':'str','uf':'str','complement':'str',}The CEP always must be a string.DocumentationDocumentation for the current version of BrazilCEP is available from the official docshere.ContributeSee thisguidelinehere.CreditsCopyright (C) 2016-2023 by Michell Stuttgart
Package: brazilian-register
brazilian_registerDescription.
The package brazilian_register is used to:Check brazilian Natural Persons Register number (Cadastro de Pessoa Física - CPF).Check brazilian National Registry of Legal Entities (Cadastro Nacional da Pessoa Jurídica - CNPJ).InstallationUse the package managerpipto install brazilian_registerpipinstallbrazilian_registerUsageimportbrazilian_registerasbrTo Check acpfdocument number.cpf=br.cpf('cpf number')print(cpf.cpf_status())True if the verification code is correct or False if not.To get document input.# as was informedprint(cpf.cpf_input)# only numbersprint(cpf.cpf)To get verification code input.print(cpf.cpf_cod_in)To get number output.print(cpf.cpf_output)To get verification code output.print(cpf.cpf_cod_out)To Check acnpjdocument number.cnpj=br.cnpj('cnpj number')print(cnpj.cnpj_status())True if the verification code is correct or False if not.To get document input.# as was informedprint(cnpj.cnpj_input)# only numbersprint(cnpj.cnpj)To get verification code input.print(cnpj.cnpj_cod_in)To get number output.print(cnpj.cnpj_output)To get verification code output.print(cnpj.cnpj_cod_out)AuthorPhelipe MathiasLicenseMIT
Package: brc
brc-pytorchPyTorch implementation of the bistable recurrent cell (BRC) from the paperA bio-inspired bistable recurrent cell allows for
long-lasting memory(Vecoven et al., 2020).Installpipinstallbrc-pytorchUsageimporttorchfrombrc_pytorchimportutilsfrombrc_pytorch.modulesimportBRC,NBRC,StackedRNNbrc=StackedRNN(cell=BRC,# NBRC for the neuromodulated versioninput_size=128,hidden_size=256,num_layers=3).cuda()# [ seq_len, batch_size, dim ]x=torch.randn(64,32,128).cuda()init_hidden=brc.init_hidden(batch_size=32)out,hidden=brc(x,init_hidden)# Detach hidden for next callhidden=utils.detach_hidden(hidden)PerformanceThe implementation is written in TorchScript (a subset of Python) and makes use of the PyTorch JIT compiler for a more efficient execution.In my not really statistically significant experiments, the implementation seems to be about half as fast as the cuDNN based reference LSTM implementation with modest batch sizes and sequence lengths which can be considered pretty solid for a non-CUDA implementation.Update (2023/07)A lot has happened since the last real update of this repository.PyTorch 2.0has introduced a new dynamic compilation system, which, to my understanding, should replace the old scripting API. After doing a quick test, it seems that the code is still working without issues with the scripting API and can in principle also be compiled withtorch.compile. However, it does not seem to run faster, perhaps even slower, and would need an adaption to the new compilation system.References@misc{vecoven2020bioinspired,title={A bio-inspired bistable recurrent cell allows for long-lasting memory},author={Nicolas Vecoven and Damien Ernst and Guillaume Drion},year={2020},eprint={2006.05252},archivePrefix={arXiv},primaryClass={cs.NE}}
Package: br-cpf-tester
br-cpf-testerThis is a test implementatipon of the Brazilian CPF Validation as part of
the “Mão na Massa” proposal of the 4th module of Welcome to the Django
training (http://welcometothedjango.com.br/).CPF is a document that identifies a taxpayer at the Federal Internal Revenue
Department. The CPF carries registration information supplied by the
individual and by the Federal Internal Revenue Department database.This number is currently formated as XXX.XXX.XXX-DD where X are digits and D
are check digits.Como desenvolver?Clone o repositórioCrie um virtualenv com Python 3.6.Ative o virtualenv.Instale as dependênciasExecute os testesgit clone git@github.com:jaimenms/python-br-cpf-tester.git python brcpf
cd brcpf
python -m venv .brcpf
source .brcpf/bin/activate
pip install -r requirements.txt
pytestComo instalar?pip install br-cpf-testerComo utilizar dentro de um validator.py no django?fromdjango.core.exceptionsimportValidationErrorfrombrcpftesterimportBrazilianCpfValidationTestsdefvalidate_cpf(value):cpf=BrazilianCpfValidationTests()cpf(value)fortestincpf.tests:raiseValidationError(cpf.GetMessage(test),test)
Package: brdata-rag-tools
rag-tools-libraryLibrary to support common tasks in retrieval augmented generation (RAG).This library is in a very early stage and all the documentation is AI generated.Tutorial and DocumentationYou find a brief tutorial and the documentation underbr-data.github.io/rag-tools-library.RoadmapAdd Google Bison to available LLMsAdd an offline database alternativeFAISS and SQLiteAllow users to register their own LLMsAllow users to register their own Embedding modelsSupport Semantic Scholar endpoint to generate embeddings for scientific papers.Support chat functionality; e.g. let the user give feedback on the result to the LLM.DeploymentRun thebuild_and_deploy.shscript in the root folder. Once prompted for the username, pass__token__and the pypi API
token you've received. If you don't have an API token and feel like you should, feel free to contact the maintainers.ContactMarco Lehnermarco.lehner@br.de
Package: brdocs-validation
Installpip install brdocs-validationSupported docs and its formatsSupportsDescriptionFormatFormat's supportCNPJ12.345.678/9012-34ORWithout special charsCPF123.456.789-01ORWithout special charsCNHOnly numbersLength:11NIS/PIS/PASEP/NITUseNIStype forPIS, PASEP, NIT123.45678.90-1OROnly numbersCNSCartão Nacional de SaúdeOnly numbersRENAVAMOnly numbersLength:9, 10 & 11TETítulo de eleitorOnly numbersCERTCertidão de casamento, nascimento e óbitoOnly numbersUsagefrombr_docsimportCNPJ,CPF,CNH,NIS,CNS,RENAVAM,TE,CERTfrompydanticimportBaseModelclassUser(BaseModel):cpf:CPFcnpj:CNPJcnh:CNHnis:NIScns:CNSrenavam:RENAVAMte:TEcert:CERT
Package: brdocvalidator
About this packageThis package is available onhttps://pypi.org/project/brdocvalidator/, you can easily validate brazilians documents like CPF and CNPJ. Also some functions to help validate email, birth date, and new functionalities will appear sooCode on githubhttps://github.com/rafaelscone/brdocvalidatorHow to usepip3installbrdocvalidatorIn your python fileimportbrdocvalidatorcpf='111.111.111-11'cnpj='11.111.111/1111-11'birthDay="26/07/2010"my_password='JtR55$$_'my_email="email@email.com"# return date format %d-%m-%Y or Falseprint(brdocvalidator.check_birth_date(birthDay))# Return just CPF number or False# check_doc check CPF or CNPJprint(brdocvalidator.check_doc(cpf))print(brdocvalidator.check_cpf(cpf))# Return just CNPJ number or Falseprint(brdocvalidator.check_doc(cnpj))print(brdocvalidator.check_cnpj(cnpj))# Encode your passwordencoded_password=brdocvalidator.encodePass(my_password)print(encoded_password)# Check if password matchtest=brdocvalidator.comparePass(encoded_password,my_password)print("Result pass:",test)# Check emailmyemail=brdocvalidator.check_email(my_email)print(myemail)# Generate JWTtoken=brdocvalidator.generate_jwt_token("secret",{"payload":"load"})validate_token=brdocvalidator.validate_jwt_token("other_secret",token)print(token,validate_token)Feel free to send me news, bugs and suggestions to this packageRafael Schneider - rafaelscone
Package: brea
BreaBreais a planed catalog server for algorithm storage and evaluation and
based onGIT. Brea aims to serve as an algorithm
catalog to allow the usage of abstractcurrently best fitting(CBF)
algorithms, as required by theCloud-Assisted Meta Programming(CAMP)
paradigm.Thereby Brea is required to host and deliver algorithms as well es to
cyclically evaluate and index them with respect to their corresponding metrics,
usingRian. An example for such a metric
would be the average prediction accuracy within a fixed set of gold standard
samples of the respective domain of application (e.g. latin handwriting samples,
spoken word samples, TCGA gene expression data, etc.). Consequently Brea is
also required to host or connect these samples by usingDeet.Due to this approach brea allows the implementation ofsmart analyticsprojects, that are automatically kept up-to-date by a minimum of maintenance
costs. Also brea supports scientific applications, by facilitating a local
(workgroup, lab, institution) or global publication, application and evaluation
of algorithms, e.g. developed within a PhD-position or program.Brea is open source, based on thePythonprogramming language and actively developed as part of theLiquid
Codeframework atFrootlab.Current Development StatusBrea currently is in latePlanningstage, which immediately is followed by
thePre-Alphastage. This means, that the projects directives, requirements
and goals are mostly settled but so far only hardly implemented.InstallationComprehensive information and installation support is provided within theonline manual. If you already have a
Python environment configured on your computer, you can install the latest
distributed version by using pip:$ pip install breaDocumentationThe latest Brea documentation is available as anonline
manualand for download in the
formatsPDF,EPUBandHTML.ContributeContributors are very welcome! Feel free to report bugs and feature requests to
theissue trackerprovided by
GitHub. Currently, as the Frootlab Developers team still is growing, we do not
provide any Contribution Guide Lines to collaboration partners. However, if you
are interested to join the team, we would be glad, to receive an informalapplication.LicenseBrea is open source and available free for any use under theGPLv3license:Â© 2019 Frootlab Developers:
  Patrick Michl <patrick.michl@frootlab.org>
Package: breach-check
Breach CheckYour email's silent protector: an easygoing tool that checks a list of emails for breaches. Just share the emails, and it works its magic.PyPi DownloadsPeriodCountWeeklyMonthyTotalJoin Our Discord CommunityInstallationUsing pipInstall main branch using pippython3-mpipinstallgit+https://github.com/dmdhrumilmistry/breach-check.gitInstall Release from PyPipython3-mpipinstallbreach-checkManual MethodOpen terminalInstall git packagesudoaptinstallgitpython3-yInstallPoetryclone the repository to your machinegitclonehttps://github.com/dmdhrumilmistry/breach-check.gitChange directorycdbreach-checkInstall with poetry# without optionspoetryinstallOpen In Google Cloud ShellTemporary SessionPerisitent SessionHave any Ideas 💡 or issueCreate an issueFork the repo, update script and create a Pull RequestContributingReferCONTRIBUTIONS.mdfor contributing to the project.LICENSEbreach-check is distributed underMITLicense. ReferLicensefor more information.Connect With MePlatforms
Package: breacher
Installation$ pip install breacher && breacherFeaturesbreacher, ** Admin Panel Finder **How to install ?$ pkg install python -y
$ pip install breacher
$ breacherRun ?$ breacherDisclaimerWe are not responsible for your loss by this tool.
this tool is made for Education/Learning Purpose.
Dont harm anyone using this tool.Usage$ breacher -h

Author : S0md3v
PIP module : Parixit Sutariya
Github : github.com/Bhai4You
Blogspot : https://bhai4you.blogspot.comGithub
Package: breadpi
# BreadPi
Packages for BreadPi, a hardware designed by SB ComponentsInstall breadpi package on your Raspberry Pi usingpip3 install breadpiorpython3 -m pip install breadpiimport the module withfrom breadpi import BreadPiAccess PCF8591 or GPIOs directlybread_pi = BreadPi()data = bread_pi.read_analog(register=1)  #  Read Data from AIN1bread_pi.write_analog(register=1, value=100)  #  Covert Digital data to
analoguse led_on, led_off, buzzer_on, buzzer_off or take digital inputs from
buttons using button function of BreadPi class.You can pass string printed on BreadPi like, ‘L1’ or ‘SW1’ or customized pinnumber like 29, 31 directly to the functions.
Package: breads-ad
🍞 BREADSBREADS (BREaking Active Directory Security)is a project created by security researchers focused on attacking Active Directory environments⚡ Installing / Getting StartedA quick guide on how to install and use BREADS.Install with pipx (recommended)pipx install git+https://github.com/inferigang/breads --include-depsNot recommendedClone the repository with:git clone https://github.com/inferigang/breads.gitInstall the libraries with:python3 setup.py installRun BREADS with:breads-ad✨ FeaturesProfile creation+6 Modules (Enum Users, Disabled Accounts, Domain Controllers and more...)Low RAM and CPU usageOpen-SourcePython ❤️🎥 Preview📚 To-DoImprove profile creationStore data on SGBDCreate a UIModulesEnum ADCS (i don't have an lab with ADCS to test this yet)🙏 Credits / InspirationCrackMapExecImpacketBloodHoundNetExec🤡 And a good meme...⚠️ WarningThe developer is not responsible for any malicious use of this tool.
Package: breakers
Usable Circuit Breaker pattern implementation.Install$pipinstallbreakersUsageimportfunctoolsfrombreakersimportBreakerdefcircuit_breaker(time_span=20000,unit=1000,calls_limit=10,error_limit=0.5,retry_time=10000):defdeco(func):# Create breakerifnothasattr(func,'__breaker__'):func.__breaker__=Breaker(time_span,unit,calls_limit,error_limit,retry_time)breaker=func.__breaker__@functools.wraps(func)defwraps(*args,**kwargs):ifnotbreaker.is_allow():raiseRuntimeError('Circuit breaker')exc=Nonetry:returnfunc(*args,**kwargs)exceptExceptionase:exc=eraisefinally:ifexc:breaker.add_failure(1)else:breaker.add_success(1)returnwrapsreturndeco@circuit_breaker()deff():importrandomifrandom.randint(1,4)in(1,2):raiseValueErrorreturn'succeed'
Package: breakfast-puzzles
Breakfast PuzzlesThis is a script for laying out a selection of puzzles from Simon
Tatham’s Portable Puzzle Collection onto a page.It outputs PostScript to a file, which can then be printed out.To use it, ensure you havethe puzzle collectioninstalled, then runbreakfast-puzzles FILENAME.The supported puzzles are:BridgesDominosaFillingGalaxiesKeenKeen MultiplyKillerLight UpMagnetsMapPatternPearlRangeRectanglesSignpostSinglesSlantSudokuSudoku XJigsawJigsaw KillerTentsTowersTracksUnequalAdjacentUnrulyBreakfast Puzzles
Copyright (C) 2021 Tom FryersThis program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.You should have received a copy of the GNU General Public License along
with this program. If not, seehttps://www.gnu.org/licenses/.
Package: breakhis-gradcam
BreaKHis Classification with GradCAMFine-tuning classification networks and using GradCAM to obtain object detection results on histopathological slides of breast cancer.Installpip install breakhis_gradcamLaterExamples of how to use this packageVisualizations of results (GradCAM, corresponding object detection) after training using models defined by this packageContactdt372@cornell.edu
Package: breaking-point
breaking-point.py helps to find a size of input data where one function starts outperform
another function. It is a convenient way to compare different algorithms for a single
task.INSTALLATIONpip install breaking-pointUSAGEfrombreaking_pointimportfind_breaking_pointfind_breaking_point(f1,f2,input_generator,start=1,step=1,limit=1000000,trial_count=1000,repeat_count=3)theref1,f2- functions to compare.inpurt_generator- function that takesnargument (size of input on current iteration) and returns input data forf1andf2. Return value should be a tuple with first element - list of non-keyworded arguments and second element - dict of keyword arguments.start- initial input data size.step- step of iteration.limit- maximum amount of input data. If breaking point was not found until limit was reached - iteration stops.trial_count- number of executions with each input data size.repeat_count- repeat trial several times and use average performance result.Function returnsn0- size of input data for whichf2(n0)executed faster thanf1(n0)orNoneif reaches limit.EXAMPLESeeexample.py.LICENSEMIT
Package: break-my-python
PLEASE DO NOT INSTALL THIS PACKAGE, IT WILL BREAK YOUR PYTHON INTERPRETER!Thebreak_my_pythonpackage breaks the Python interpreter by using a .pth
file to execute arbitrary Python code. If you happen to install this package
you can set the FIX_PYTHON environment variable to fix your Python interpreter.This package can be removed by running:
FIX_PYTHON=1 pip uninstall break_my_python
or
FIX_PYTHON=1 conda uninstall break_my_python
will remove this package.  If neither of these work remove the
break_my_python.pth and break_my_python.py files from the site-packages
directory.
Package: breakout-detection
Breakout Python:fire:BreakoutDetectionfor PythonLearnhow it worksInstallationRun:pipinstallbreakout-detectionGetting StartedDetect breakouts in a time seriesfrombreakoutimportbreakoutseries=[100,150,136,...]breakout(series)OptionsPass options - default values belowbreakout(series,min_size=30,# minimum observations between breakoutsmethod='multi',# multi or amoc (at most one change)degree=1,# degree of the penalization polynomial (multi only)beta=0.008,# penalization term (multi only)percent=None,# minimum percent change in goodness of fit statistic (multi only)alpha=2,# weight of the distance between observations (amoc only)exact=True# exact or approximate median (amoc only))CreditsThis library uses the C++ code from theBreakoutDetectionR package and is available under the same license.ReferencesLeveraging Cloud Data to Mitigate User Experience from ‘Breaking Bad’HistoryView thechangelogContributingEveryone is encouraged to help improve this project. Here are a few ways you can help:Report bugsFix bugs andsubmit pull requestsWrite, clarify, or fix documentationSuggest or add new featuresTo get started with development:gitclonehttps://github.com/ankane/breakout-python.gitcdbreakout-python
pipinstall-rrequirements.txt
pythonsetup.pyinstall
pytest
Package: breakout-garden-exporter
breakout-garden-exporterExposes Prometheus metrics from sensors that are part ofPimoroni's Breakout Garden family.usage: breakout-garden-exporter [-h] [-q] [--bind [BIND]]

Exposes Prometheus metrics from sensors that are part of Pimoroni's Breakout Garden family

optional arguments:
  -h, --help     show this help message and exit
  -q, --quiet    don't log HTTP requests
  --bind [BIND]  the ip address and port to bind to. Default: *:9101
Package: break-out-nested
Break out of nested loops with max. 4 lines of code, no matter how deeply they are nestedThe problem: breaking out of nested loopspip install break-out-nested# Break out of nested loops - a pain in the ***# How it is usually done:done=Falseforiinrange(1,6,1):# 1st loopprint('i:',i)forjinrange(1,11,2):# 2nd loopprint('   i, j:',i,j)forkinrange(1,21,4):# 3rd loopprint('      i,j,k:',i,j,k)ifi%3==0andj%3==0andk%3==0:done=Truebreak# breaking from 3rd loopifdone:break# breaking from 2nd loopifdone:break# breaking from 1st loopThe solution# Way easierfrombreak_out_nestedimportit,bol# you need to create new variables as attributes of it,# because break_out_nested has only access to these variablesit.i,it.j,it.k=1,1,1# the break conditiondefcond():returnit.i%3==0andit.j%3==0andit.k%3==0# The condition will be checked in each loop# The function that checks the condition has to be passed as the last argument.# You can pass as many iterables as you want to the functionforit.i,it.j,it.kinbol(range(1,6,1),range(1,11,2),range(1,21,4),cond):print(it.i,it.j,it.k)More examples# More examplesdefcond():returnit.i+it.j+it.k==777it.i,it.j,it.k=0,0,0forit.i,it.j,it.kinbol(range(100),range(1000),range(10000),cond):print(it.i,it.j,it.k)defcond():returnit.i+it.j+it.k>=100000it.i,it.j,it.k=0,0,0# you don't have to use it.i, it.j, it.k as the loop variables, you can# use anything you want, but you have to update the variables somewherefori,j,kinbol(range(100),range(1000),range(10000),cond):it.i,it.j,it.k=i*10,j*100,k*100print(it.i,it.j,it.k)
Package: breaks
Command line tool for adding data classes to geodata files.Built on top ofFionaandPysalmapclassify.InstallRequiresGDAL.Numpyand Pysal will be installed if not available.pip install breaksThese are the breaksUsage: breaks [OPTIONS] input data-field output

  Write a geodata file with bins based on a data field

Options:
  -m, --method METHOD     Binning method:
                          equal_interval
                          fisher_jenks
                          jenks_caspall
                          jenks_caspall_forced
                          jenks_caspall_sampled
                          max_p_classifier
                          maximum_breaks
                          natural_breaks
                          quantiles (default)
  -b, --bin-field FIELD   name of new field
  -n, --norm-field FIELD  Normalize (divide) bin-field by this name field
  -k COUNT                Number of bins (default: 5)
  -B, --bins TEXT         Comma-separated list of breaks (a series of upper-
                          bounds)
  -i, --id-field FIELD    If given, only write this field, bin-field, and
                          data-field (and norm-field, if given).
  --version               Show the version and exit.
  --help                  Show this message and exit.Add quintile bins on ‘fieldname’:breaks data.shp fieldname data_binned.shpThis writes a file calleddata_binned.shpwhich is a copy ofdata.shp, but with an additionalbinfield, which contains a
number from 0 to 4 (it will containNULLvalues for rows with
missing data).Add decile bins on ‘fieldname’:breaks -k 10 data.shp fieldname data_binned.geojsonAdd fiveFisher-Jenksbins on ‘fieldname’:breaks --method fisher_jenks data.json fieldname data_binned.jsonAdd decile bins on ‘fieldname’ to a field called ‘mybin’:breaks --bin-field mybin data.geojson fieldname data_binned.geojsonDivide one field by another. If you have more complicated manipulations
you would like to work, alter your data withogr2ogror another
tool.# Calculates bins for population / area
breaks data.geojson population data_binned.geojson --norm-field areaAdd custom bins on ‘fieldname’:breaks --bins 50,75,150,250,500 data.geojson fieldname data_binned.shp(Give the upper-bounds as a comma-separated list.)Only write an ID field and the data fields:breaks --id-field GEOID data.shp field1 data_lookup.shpLicenseCopyright 2016 Neil Freeman. Available under the GNU Public License.