Saravanan666/pypi-org huggingface dataset:
Package: br-registrations
Project descriptionA simple Python library containing functions that check Brazilian documents values. It is intended to make it easy to verify CNPJ and CPF numbers.
Originally developed and open-sourced atSliatecinos (GitHub).Installationpip installbr-registrationsBasic Usagefrombr_registrationsimportvalidateCPF,validateCNPJ# Validation test of registration CPF number# Instances the validationcpf=validateCPF.CPF# Passing a 11-digit number of CPF (in string format):response_1=cpf.valid_cpf('11144477735')response_2=cpf.valid_cpf('912.441.670-37',True)response_3=cpf.valid_cpf('11111111111',True)# Outputs #1, #2: 'CPF ___ is valid is True .'print('CPF "11144477735" is valid is',response_1,'.')print('CPF "912.441.670-37" is valid is',response_2,'.')# Outputs #3: 'CPF ___ is valid is False .'print('CPF "11111111111" is valid is',response_3,'.')# Passing a registration number of CPF (in string format):dv_1=cpf.get_cpf_dv('111444777')dv_2=cpf.get_cpf_dv('912.441.670',True)# Output (in list): 'Correct DV:  [3, 5]'print('Correct DV: ',dv_1)# Output (in list): 'Correct DV:  [3, 7]'print('Correct DV: ',dv_2)print('='*100)# Validation test of registration CNPJ number# Instances the validation:cnpj=validateCNPJ.CNPJ# Passing a 14-digit number of CNPJ (in string format):response_1=cnpj.valid_cnpj('11222333000181')response_2=cnpj.valid_cnpj('46.293.332/0001-02',True)response_3=cnpj.valid_cnpj('11111111111111')# Outputs #1, #2: 'CNPJ ___ is valid is True .'print('CNPJ "11222333000181" is valid is',response_1,'.')print('CNPJ "46.293.332/0001-02" is valid is',response_2,'.')# Outputs #3: 'CNPJ ___ is valid is False .'print('CNPJ "11111111111111" is valid is',response_3,'.')# Passing a registration number of CNPJ (in string format):dv_1=cnpj.get_cnpj_dv('112223330001')dv_2=cnpj.get_cnpj_dv('46.293.332/0001',True)# Output #1 (in list): 'Correct DV:  [8, 1]'print('Correct DV: ',dv_1)# Output #2 (in list): 'Correct DV:  [0, 2]'print('Correct DV: ',dv_2)# View lib version:importbr_registrationsasbrrprint(brr.__version__)LinksPyPi.org:https://pypi.org/project/br-registrationsSource code:https://github.com/sliatecinos/br-registrationsLicenseThe project is made available under the terms of the MIT license.  SeeLICENSEfor details.
Package: brrrr
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.The metadata for a Python project is defined in thepyproject.tomlfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: brs-libs
brs-libsLibraries for rpTools:rpSBMLrpCacheinchikeyMIRIAMrpSBMLDefines SBML structure with additional fields relative toRetroPath2objects.rpCacheMemory managementFile modeThis is the default mode. All cache data are stored into files on disk and loaded in memory each time the tool is used. In this mode, fingerprint in memory is equal to the size of cache files loaded in memory multiplied by the number of processes which are running at the same time. Option can be specified by--store-mode file.DB modeIn order to save memory space, cache data can be loaded once in a database (redis) so that the memory space taken is equal to one instance of the cache, whatever the number of processes whic are running. Option can be specified by--store-mode <db_host>, wheredb_hostis the hostname on which redis server is running.InstallFrom piprpCompletion requiresRDKitwhich is not available through pip. It can be installed through Conda:[sudo]condainstall-cconda-forgerdkitThen, installbrs_libs:[sudo]python-mpipinstallbrs_libsFrom Conda[sudo]condainstall-cbrsynth-cconda-forgebrs_libsUseLoad rpCache in memoryFull cache into filesfrombrs_libsimportrpCacherpcache=rpCache(db='file')print(rpcache.cid_src)Full cache into Redis DBFor multiple instances of rpCache simultaneously, rpCache can be loaded into one single Redis database:frombrs_libsimportrpCacherpcache=rpCache(db='localhost')print(rpcache.cid_src)localhostmeans that rpCache will look for a redis database locally. If there is not, it will start a brand new redis server.localhostcould be replaced by any hostname that hosts the Redis database.A part of cacheFor less loading time and memory footprint, a part of the cache can be loaded:frombrs_libsimportrpCacherpcache=rpCache(attrs='cid_strc')print(rpcache.cid_src)(Re-)generate the cacheFrom Python codefrombrs_libsimportrpCacherpCache.generate_cache(outdir)From CLIAfter having installed brs_libs Python module:python-mbrs_libs--gen_cache<folder>TestPlease follow instructions below ti run tests:cd tests
./test-in-docker.shinchikeyMIRIAMUses the rpCache to parse an SBML file to find all the chemical species, and try to recover the inchikey and add it to the MIRIAM annotation.AuthorsMelchior du LacJoan HérissonAcknowledgmentsThomas DuigouLicencebrs_libs is released under the MIT licence. See the LICENCE file for details.
Package: brs-py
brs-pyA savefile reader/writer for the Brickadia gameBrickadiais a multiplayer brick building gameMade for version 8 savefiles (Brickadia Alpha 5)Installpip3 install brs-pyExample UsageDisplay info about a saveimportbrssave=brs.readBRS("Freebuild.brs")print(save)Make a save from scratch, with bricks showing the default colorsetimportbrssave=brs.default()forcolor_indexinrange(len(save.colors)):brick=brs.Brick.default()brick.position=[color_index*10,0,6]brick.color=brs.Color(save.colors[color_index])save.bricks.append(brick)brs.writeBRS("colors.brs",save)
Package: brss
=======brss=======BRss is an 'offline' RSS reader written in Python.It is a complete rewrite of another python RSS reader (Naufrago!),based on the concept of service/client. It uses the dbus library toenable communication between the service and clients.Features:---------BRss consists of two applications:1. brss-enginebrss-engine is a dbus service. Its main features are:- periodically downloads feed articles, with their images- notify on updates- transparently replaces remote image tags on article request.- search articles2. brss-readerbrss-reader is a GTK+ client for brss-engine.- Connects to brss-engine- Keyboard feed and article navigation (à la Thunderbird)- full-screen article viewing- Article search engineINSTALL:--------Reminder: BRss is still "alpha" software. Use at your own risks.BRss requires the following python modules to run.python-gobjectpython-feedparserpython-sqlite3python-dbusHow to install this modules may vary depending on your distribution.In Archlinux run the following command as root:# pacman -S dbus-python pygobject python2-feedparser python-pysqlite gtk3 \libwebkit3 libnotify gcc gettext glib21. Extract the archive$ tar zxf brss-0.8.14.tar.gz$ cd brss-0.8.142. Install$ sudo python setup.py install3. Compile the schema folder$ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/TODO:-----The following are planned, in no particular order:- Provide a proper install script.- Documentation- Gnome3 design guidelines compliance- Better logo and pixmaps- CLI interface- DnD feed recategorizing
Package: brs-utils
brs-utilstotal_sizeComputes the deep size of an object.print functionsDefines some fancy print functionsdownload, extract_gz, download_and_extract_gzFunctions to handle download and extract filesfile_lengthReturns the number of lines of the given fileAuthorsMelchior du LacJoan HérissonLicencebrs-utils is released under the MIT licence. See the LICENCE file for details.
Package: brt-classifier
Tree classificationsThis repository contains classifications of some of the problems on rooted binary trees.UsageTo generage a new problem file:python -m brt_classifier generate <label-count>where "label-count" is 2 or 3 will generateproblems/problems-temp.jsonthat contains all non-isomorphic, non-redundant problems. Moreover, it will classify some of those problems that can be automatically classified.To classify problemsin e.g. fileproblems/3labels.json:python -m brt_classifier classify problems/3labels.jsonAdd a flag-wat the end, if you want the classification result's changes to persistTo find out problems's complexitye.g. for problem {121, 212}:python -m brt_classifier find 121 212Change the constraints at the end of the command to search for a different problem.To print statistics on a problem filee.g. fileproblems/3labels.json:python -m brt_classifier statistics problems/3labels.jsonNotationThe following notation explanation is about 2-label setting, but can be trivially extended to a setting with > 2 labelsWe list the problems using sets of allowed restrictions. Since the tree is always binary, we’ll usexyzas a shorthand for “if a node has a labely, then it must have 1 child with labelxand one child with labelz”. E.g.{ 121, 212 }means that if a node has label 2, it must have both children with label 1, and if a node has a label 1, it must have both children with label 2. Another example,{112, 212, 122}means “if a node has label 1, it can either have children with labels 1 and 2 (i.e. children with different labels) or both children with labels 2; if a node has label 2, it must have children with 2 different labels (1, 2)”ProblemsNote that we only consider problems that are non-isomorphic. E.g. { 112, 121 } and { 122, 212 } are isomorphic as we can just map ones to twos and twos to ones in the former instance to get to the latter one.Besides, we also reduce the number of problems by eliminating redundant constraints wherever possible. E.g. {111, 112, 212} is in essence the same problem as {111} since 2s are never allowed to be a "parent" node. Similarly, {112, 212} is the same as {} (i.e. nothing is allowed) since 2 can never be used as a parent node so we can safely remove both 112 and 212.2 labelsMost of the problems were rather trivial to classify. Lower and upper bound justifications for a not-so-trivial problem {121, 112} can be found here inthe docs folder.{112, 122} is O(1)-time solvable: each node simply tells one of its children "you will be 1" and the other one "you will be 2". Since {112, 122} is O(1)-time solvable then any problems that are relaxations of it are O(1)-time solvable too. Thus, {112, 212, 122} and {121, 112, 212, 122} were classified as O(1) solvable too.
Package: brtgdb
BRTG database connectorSimple package to establish connection with mysql/mariadb database using sqlalchemy.PrerequisiteEnvironmental variables:DB_HOST=host.com
DB_PORT=3306
DB_USER=your_user
DB_PASS=your_passwordInstallationFrom package directory:pip install brtgdbUsage###Import
Pristupove udaje su v subore .envfrom dotenv import load_dotenv
load_dotenv()Vytovirm konektorfrom brtgdb import BrtgDB

db = BrtgDB()Read SQL With pandaspd.read_sql("SELECT ....", db.conn)Execute SQL commanddb.execute(query)Add table connector and usagetable = db.add_table_connector(table_name, schema_name=None)
stmt = insert(table).values(column1= value1 , column2= value2)
db.conn.execute(stmt)Logging db changesdb.log_change(job_name='update_data_analysis',
              table_name='ruz_t_data_analysis',
              event_type='INSERT AND UPDATE',  # ERROR
              details=json.dumps(result))Logging test resultsdb.log_test_results(test_run=validation_result["run_id"].run_name,
                    status=validation_result["success"],
                    details='See great_expectations report.')
Package: bruces
Inspired bybruges,brucesaims to be a collection of lightweight codes/tools for seismology with an emphasis on computational efficiency.InstallationThe recommended way to installbrucesand all its dependencies is through the Python Package Index:pipinstallbruces[full]--userOtherwise, clone and extract the package, then run from the package location:pipinstall.[full]--userTo test the integrity of the installed package, check out this repository and run:pytestDocumentationRefer to the onlinedocumentationfor detailed description of the API and examples.Alternatively, the documentation can be built usingSphinx:pipinstall-rdoc/requirements.txtsphinx-build-bhtmldoc/sourcedoc/buildExampleThe following code snippet will decluster a catalog downloaded withpycsepusing the nearest-neighbor method:fromdatetimeimportdatetimeimportcsepimportmatplotlib.pyplotaspltimportbruces# Download catalog using pycsepcatalog=csep.query_comcat(start_time=datetime(2008,1,1),end_time=datetime(2018,1,1),min_magnitude=3.0,min_latitude=35.0,max_latitude=37.0,min_longitude=-99.5,max_longitude=-96.0,)# Decluster pycsep catalogcat=bruces.from_csep(catalog)eta_0=cat.fit_cutoff_threshold()catd=cat.decluster(method="thinning",eta_0=eta_0)# Display declustering resultfig,ax=plt.subplots(1,2,figsize=(12,6))cat.plot_time_space_distances(eta_0=eta_0,eta_0_diag=eta_0,ax=ax[0])catd.plot_time_space_distances(eta_0=eta_0,eta_0_diag=eta_0,ax=ax[1])ContributingPlease refer to theContributing
Guidelinesto see how you can help. This project is released with aCode of Conductwhich you agree to abide by when contributing.Noticebruces Copyright (c) 2022, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
If you have questions about your rights to use or distribute this software, please contact Berkeley Lab’s Intellectual Property Office atIPO@lbl.gov.This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.
Package: bruck
BruckWrite brainfuck with ONLY square brackets.[]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][][[]][]][][Installation$pipinstallbruckUsage$bruck[-veh]PROGRAMYou can interpret a bruck program by$bruck<filename>.bruckOr run a program in command line by-eoption. For example:$bruck-e'][][]['-voption shows version, and-hoption shows help.Bruck SyntaxThe syntax of bruck is basically the same as brainfuck, but was inspired by codons in DNA or RNA molecules. We use 3-character strings consisting of[and]to represent 8 different commands in brainfuck.BruckEquivalent BrainfuckDescription[]]+Increment the memory cell at the pointer[[]-Decrement the memory cell at the pointer]][>Move the pointer to the right][[<Move the pointer to the left[][.Output the character signified by the cell at the pointer][],Input a character and store it in the cell at the pointer[[[[Jump past the matching]]]if the cell at the pointer is 0]]]]Jump back to the matching[[[if the cell at the pointer is nonzeroAll characters other than[and]are ignored, including spaces and newlines. Having just started to use bruck, you may find it helpful to divide the program into commands:][] []] [][And when you get familiar with the language, you can write something cool like this:[]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][]][][[][[]][]][]][][[]][][[[][[][[][[][][[]][]][]][][Since the length of a bruck command is 3, the length of a bruck program (with only[and]counted) must be divisible by 3, otherwise the interpreter will raise an error.Error MessagesIf an error occurs when executing a bruck program, the bruck interpreter will raise aBruckErrorwith error messages showing where and why the error has occured.If you find the error messages generated by the interpreter a little difficult to understand, don't worry. It is afeature. Bruck is a so-calledesoteric programming language, and therefore the bruck interpreter is also designed to be esoteric. You will be used to that soon.APIA Python API is provided to interpret bruck programs. After installation, import theinterpretermodule byfrombruck.interpreterimport*Theinterpretermodule includes a classBruckInterpreterto interpret and execute bruck programs. Here is an example:frombruck.interpreterimport*bruckInterpreter=BruckInterpreter('<bruck_program_string>')# InitializebruckInterpreter.exec()# Execute the programFor more help on the API, tryhelp(BruckInterpreter)after importing the module.ContributionIf you find any bugs or have suggestions for new features, please raise an issue for further discussion. All contributions are welcomed.
Package: brudercropper
BrudercropperCropped Bilder für Brother LabeldruckerInstallationGhostscript installierengs/gswin32cim PATH ablegenTesseract installierensudo apt install build-essential python3.9-dev libjpeg-dev libdmtx0b tesseract-ocrpip install brudercropperbrudercrop -hNutzungusage: brudercrop [-h] [--dhl] -i INPUT [-l LOGO]

optional arguments:
  -h, --help            show this help message and exit
  --dhl                 Cropped ein DHL A4 Etikett auf 62mm
  -i INPUT, --input INPUT
                        Inputfile
  -l LOGO, --logo LOGO  Dateipfad zu einem optionalen LogoBeispielbrudercrop --dhl -i Paketmarke_DHL_orig.pdfC:\Users\A\AppData\Local\Temp\tmp08l3xlzp\zos5k5bj.png = 58285.070071.00.3
C:\Users\A\AppData\Local\Temp\tmp3mmd4zs6\cgdb_pvj.png = 35.800.229584 6
Saved to result.pngErgebnisseVorherNachher
Package: brue
bruewrite in python, transpile to js, run in browserInstallusing pip(stable)pip3installbrueusing git(dev)pip3installhttps://github.com/eseunghwan/brue.gitClicreate project with clibrue-cli--init[dest]//examplebrue-cli--init./test2[output]extractingfiles...brueprojectinitializedin[dest]run with serverbrue-cli--serve[port]//examplebrue-cli--serve8080[output]ServingHTTPon0.0.0.0port8080(http://0.0.0.0:8080/)...build project file to standalone .html and .jsbrue-cli--build[dest]//examplebrue-cli--build./build[output]copyingpublicfiles...copyingassetfiles...compilingcomponentfiles......Compiledfile[dest]Component definecomponent python filefrombrueimportbrueElementfrombrue.decoratorsimportdefineElement@defineElement("app-elm")# register element as [name]classApp(brueElement):def__init__(self):super().__init__()# must be calleddefcreated(self):# evalute when component created(initialized)print("created")defmounted(self):# evalute when componet rendered in htmlprint("mounted")defrender(self):# define render template as html-stringreturn"""<div><div><router-link url="/">Welcome</router-link><router-link url="/counter">Counter</router-link><router-link url="/datagrid">DataGrid</router-link></div><router-view /></div>"""repeat(for)...state={"columns":["A","B","C","D"]}...{repeat(self.state.columns,lambdac:f"<th>{c}</th>")}...[expectedoutput]<th>A</th><th>B</th><th>C</th><th>D</th>
Package: bruges
bruges is aIn other words, it's just a load of functions that implement important equations in (mostly seismic) geophysics, from Aki-Richards to Zoeppritz.Quick startInstall with:pipinstallbrugesMake a trapezoidal wavelet like:importbrugesasbgw,t=bg.filters.ormsby(duration=0.256,dt=0.002,f=[5,10,40,80])This produces two arrays: amplitudewand timet.LinksDocumentationIssue TrackerPyPiAgile's website
Package: bruhanimate
bruhanimatebruhanimate offers a series of files to aid in rendering out animations in the terminal. This is heavily inspisred by theAsciimaticspackage. While Asciimatics is the end-all be-all for termianl animations, I figured it would be good practice to go ahead and attempt something like this myself.InstallationFrom PyPIpipinstall--upgradebruhanimateFrom sourcegitclonehttps://github.com/FNBBDevs/bruhanimatecdbruhanimate

python-mpipinstall.Quick StartUse some of the built in demos to see what is possible. There are demos for each effect. Simply import<effect>_demofrom bruhanimate and call the<effect>_demo.run()to run the demo!staticoffsetnoisestarssnowrainplasmagol (Conway's Game of Life)matrixtwinkle# Import a demofrombruhanimateimportplasma_demo# run the demoplasma_demo.run()UsageHere are some examples on how bruhanimate might be used."""Here is a simple program that uses the EffectRenderer to render out oneof the prebuilt effects to the terminal."""frombruhanimate.bruhrendererimport*frombruhanimate.bruhscreenimportScreenimportbruhanimate.imagesasimagesimportsysdefdemo(screen,img,frames,time,effect_type,background,transparent):# CREATE THE RENDERERrenderer=CenterRenderer(screen,frames,time,img,effect_type,background,transparent)# SET EFFECT ATTRIBUTESrenderer.update_smart_transparent(True)renderer.effect.update_color(True)renderer.effect.update_intensity(100)# RUN THE ANIMATIONrenderer.run()# CATCH THE END WITH INPUT() --> for Win-Systems --> Ctl-C for Unix-Systemsinput()defmain():Screen.show(demo,args=(images.get_image("TWOPOINT"),300,0,"noise"," ",False))if__name__=="__main__":main()"""Here is another example that makes use of line drawing to draw a 3-D triangle"""frombruhanimate.bruhrendererimport*frombruhanimate.bruhscreenimportScreenimportbruhanimate.imagesasimagesdefdemo(screen,img,frames,time,effect,background,transparent):# CREATE THE RENDERERrenderer=PanRenderer(screen,frames,time,img,effect,background,transparent,loop=True)# REGISTER THE LINES - LET'S MAKE A DECENT 3D TRIANGLErenderer.effect.add_line((15,15),(30,30))renderer.effect.add_line((30,30),(50,20))renderer.effect.add_line((50,20),(15,15))renderer.effect.add_line((30,30),(32,22))renderer.effect.add_line((32,22),(15,15))renderer.effect.add_line((32,22),(50,20))# RUN THE ANIMATIONrenderer.run(end_message=False)# CATCH THE END WITH INPUT() ON WINDOWSinput()image=images.text_to_image("HELLO WORLD!",padding_top_bottom=1,padding_left_right=3)Screen.show(demo,args=(image,500,0.05,"drawlines"," ",True))
Package: bruhbook
BruhBookbruhbookis a Python package designed to interface with OpenAI, allowing users to create captivating short stories complete with custom cover art. This tool is perfect for writers, creators, and anyone interested in generating unique narratives with visually appealing covers.FeaturesGenerate short stories based on specific themes and target audiences.Automatically create cover art for the stories.Customizable story generation to suit different genres and styles.InstallationTo installbruhbook, simply run:pipinstallbruhbookUsageHere is a basic example of how to usebruhbookto generate a short story with a cover image:frombruhbook.bruhbookimportBruhBookbb=BruhBook(create_cover_image=True,wipe_files=False)story_type="A cyberpunk knight fighting his way through hell. Flames, lava, dark, alien like plasma monsters"target_audience="Mature Adults"bb.generate_story_outline(story_type=story_type,target_audience=target_audience)bb.story_generator(story_type=story_type,target_audience=target_audience)RequirementsPython 3.11 or laterDocumentation🚧 Under Construciton 🚧Contributing🚧 Under Construction 🚧Licensebruhbookis licensed under the Apache License. See theLICENSEfile for more details.