Saravanan666/pypi-org huggingface dataset:
Package: brooks-mfc
brooks-mfcPython driver and command-line tool forBrooks Instrument mass flow controllers.Installationpip install brooks-mfcUsageThis driver uses an undocumented REST API in the devices's web interface for communication.
The compatibility and stability of this interface with all Brooks controllers is not guaranteed.Command LineTo test your connection and stream real-time data, use the command-line
interface. You can read the flow rate with:$ brooks-mfc 192.168.1.200
{
    "Customer Flow Totalizer": 0.0,
    "Flow": -0.3,
    "Flow Hours": 1.0,
    "Flow Totalizer": 0.0,
    "Live Setpoint": 0.0,
    "Operational Hours": 50.0,
    "Setpoint": 0.0,
    "Supply Voltage": 22.93,
    "Temperature": 27.11,
    "Valve Position": 0.0
}You can optionally specify a setpoint flow with the set flag:brooks-mfc 192.168.1.150 --set 7.5.The units of the setpoint and return are
specified using the--unitsflag. Seemfc --helpfor more.PythonThis uses Python ≥3.5's async/await syntax to asynchronously communicate with
the mass flow controller. For example:importasynciofrombrooks_mfcimportFlowControllerasyncdefget():asyncwithFlowController('the-mfc-ip-address')asfc:print(awaitfc.get())asyncio.run(get())The API that matters isget,set. Optionally, units can be passed with
either command. If no units are specified the existing units configured for
the device are used.>>>awaitfc.get()>>>awaitfc.get('%'){"Customer Flow Totalizer":0.0,"Flow":-0.3,"Flow Hours":1.0,"Flow Totalizer":0.0,"Live Setpoint":0.0,"Operational Hours":50.0,"Setpoint":0.0,"Supply Voltage":22.93,"Temperature":27.11,"Valve Position":0.0}>>>awaitfc.set(10)>>>awaitfc.set(10,'SCCM')There's much more that could be set or returned from the flow controllers but
I haven't had a reason to flesh all the the options out. Feel free to submit an
issue with requests or a PR.
Package: broom
BroomKeep your desktop clutter-free.DescriptionThis script is a simple Desktop organizer that moves all files and folders from /Desktop to /Downloads/Rug.Installation>pipinstallbroomUsageOn WindowsHitWin + R, then>broomAdmire your wallpaper once again.LinksRepository:https://github.com/umluizlima/broomReferences:os module:https://docs.python.org/3/library/os.html#module-osshutil module:https://docs.python.org/3/library/shutil.htmlLicensingDistributed under the MIT license. SeeLICENSEfor more information.
Package: broomio
HistoryWhy one more async library? Broomio started as an experiment. This code meant to be thrown away. I was inspired by curio and trio libraries, code looked so clean and easy to understand. That was brave new Python, no callbacks, low maintenance. Curio is the first challenger, questioning existing standard library choices; and Trio is the place where real science happens. Also authors of both libraries are really friendly, thank youDavid BeazleyandNathaniel J. Smith! However, I was curios what are Python asyncio limits? Can asyncio based network server written in beautiful clean manner be as performant as raw epoll based with ugly spagetti callbacks? It turns out the answer is yes, but not without some tradeoffs.Getting StartedInstallationBroomio can be installed with pip.pip3 install broomioUsageFirst of all, you’ll need a loop. Loops are common concept in async libraries. Broomio provides no default loop, so loop should be created and started explicitly.from broomio import Loop

loop = Loop()
loop.run()However this loop has nothing to do and will exit immediately. Lets add some coroutine and execute it a few times. Read more about coroutines inPEP 0492.from broomio import Loop
from broomio import sleep
from time import time

async def test(index):
    print(f'{index} started at {time()}')
    await sleep(2)
    print(f'{index} stopped at {time()}')


loop = Loop()
loop.start_soon(test(1))
loop.start_soon(test(2))
loop.start_soon(test(3))
loop.run()You will see output like the following3 started at 1456789015.0144565
2 started at 1456789015.0147984
1 started at 1456789015.0149508
3 stopped at 1456789017.0166693
2 stopped at 1456789017.0171447
1 stopped at 1456789017.0180902The first thing to notice is that some functions which pause or block execution, like sleep, should be called with await. Skipping await will lead to all kinds of unexpected bad consequences. So be careful.
The second thing to notice is that coroutines behave more or less like threads. Please, find bellow equivalent code with threads.from threading import Thread
from time import sleep
from time import time

def test(index):
    print(f'{index} started at {time()}')
    sleep(2)
    print(f'{index} stopped at {time()}')

t1 = Thread(target=lambda: child(1))
t2 = Thread(target=lambda: child(2))
t3 = Thread(target=lambda: child(3))

t1.start()
t2.start()
t3.start()
t1.join()
t2.join()
t3.join()Output will be similar1 started at 1456789015.0149508
3 started at 1456789015.0144565
2 started at 1456789015.0147984
1 stopped at 1456789017.0180902
2 stopped at 1456789017.0171447
3 stopped at 1456789017.0166693Difference is that coroutines actually work in context of single thread. There are no operating system level threads or anything similar, it’s pure user code solution. Kernel is not aware of coroutines.Find more examples incorresponding folderin source code.
Package: broompy
broompy - a simple data cleaning tool for Pythonbroompyis a Python library designed to help
data scientists observe a summary of their
Dataset and facilitate data cleaning. It reveals
features that require cleaning or inspection.
This library also displays charts to view the normal
approximation of variable distributions and generates
scatter plot to visualize correlation.Github:https://github.com/juanduranc/broompyMain FeaturesDisplay count of null and available data.Display mean, median and 1.5 IQR outliers count.Identify data types of each variable.Identify count of unique values per variable.Identify the normal approximation using pvalue.Show a dataset sample to understand data content.Visualize trends with histograms and scatter plot.
Package: broot
Library for converting python numpy datastructures to the ROOT output format.Free software: GPL v2 licenseDocumentation:https://broot.readthedocs.org.The ROOT(https://root.cern.ch/) data analysis framework is used much in High Energy Physics (HEP) and has its own output format (.root). ROOT can be easily interfaced with software written in C++. For software tools in Python there exists pyROOT(https://root.cern.ch/drupal/content/pyroot). Unfortunately pyROOT does not work well with python3.4.brootis a small library that converts data in python numpy ndarrays to ROOT files containing trees with a branch for each array.The goal of this library is to provide a generic way of writing python numpy datastructures to ROOT files. The library should be portable and supports both python2, python3, ROOT v5 and ROOT v6 (requiring no modifications on the ROOT part, just the default installation). Installation of the library should only require a user to compile to library once or install it as a python package.Secondly the library can be used to convert other file formats that store information in numpy-like structures, such as HDF5, to ROOT.InstallationTo use broot a user must have installed python, ROOT and be able to compile C++ code. To install:pip install brootTo use the examples clone the repository and run:python setup.py developUseTo use broot one needs libRootOutput.so and RootWrap.pyRootWrap can be imported in any python file and a new RootOutput instance can be made:from broot import RootWrapOUT = RootWrap.RootOutput()Two example scripts are provided in ‘examples’.‘convert.py’ demonstrates the functions available using some ndarrays.‘hdf_to_root.py’ is a first implementation of a HDF5 to ROOT converter (HDF5 file not provided).Current support:python2python3.4ROOT v5ROOT v6compiles on gcc versions with c++11compiles on gcc versions without c++11 (see branch no-c++11)tested on GNU/LinuxTodo list:Proper Makefile instead of ‘compile.sh’Python packageHDF5 converter classOS support for Windows and MacDocumentationHistory0.1.0 (2015-05-25)First release on PyPI.
Package: bro-pkg
The Zeek Package Manager makes it easy for Zeek users to install and
manage third party scripts as well as plugins for Zeek and ZeekControl.
The command-line tool is preconfigured to download packages from theZeek package source, a GitHub repository that has been set up such
that any developer can request their Zeek package be included. See theREADMEfile of that repository for information regarding the package
submission process.note:It’s left up to users to decide for themselves via code review,
GitHub comments/stars, or other metrics whether any given package
is trustworthy as there is no implied guarantees that it’s secure
just because it’s been accepted into the default package source.See the package managerdocumentationfor further usage information,
how-to guides, and walkthroughs.  For offline reading, it’s also
available in thedoc/directory of the source code distribution.
Package: brosoul
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.Most of the configuration for a Python project is done in thesetup.pyfile,
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: brotground
BrotgroundThis python package is for people who want to learn and explore the wonderful world of brots. Provides an api that allows rapid experimenting and visualization.pip install brotgroundFeaturesLight weight, well documented, easy to understand code baseExtremely modular, Replace any module with your own definitionFlexible, Comes with good defaults but can be overriddenZero Effort Setup, Includes google colab notebooks to start experimenting without any setupMinimal Dependency, Numba for iteration and Matplotlib for renderingOverviewBrots are generalization of Mandelbrot that takes a generic Mandelbrot equation. This library makes every part of the Mandelbrot equation as a parameter offering extreme flexibility to override or use the default implementation.An equation means nothing to me unless it expresses a thought of God. — Srinivasa RamanujanA StandardMandelbrotequation,when implemented and rendered will look like this,mandel=MandelBrot()# Initialize Mandelbrotmatplot_renderer=MatplotJupyterRenderer()# Initialize the renderermandel.iterate_diverge(max_iterations=25)# Run the iterate diverge loopmatplot_renderer.plot(mandel,cmap="RdGy")# Plot the resultsWe can further zoom in on the coordinates and iterate-diverge on those coordinates,mandel.set_boundaries((-0.02,0.02),(0.780,0.820))# Zoom in on the coordinatesmandel.iterate_diverge(max_iterations=100)matplot_renderer.plot(mandel,cmap="plasma")will render like below,By changing each part of the equation you can get a range of generation.
Generalizing the above Mandelbrot equation to k, we getMultibrotwhere,For a K value of 3 we get a Multibrot rendered like this,multi=MultiBrot()multi.iterate_diverge(max_iterations=15)matplot_renderer.plot(multi,cmap="binary")ATricornbrot is expressed as,tricorn=UserBrot(brot_equation=tricorn_brot_equation)tricorn.iterate_diverge(max_iterations=15)matplot_renderer.plot(tricorn,cmap="RdYlBu")ABurning shipbrot is expressed as,burning_ship=UserBrot(brot_equation=burning_ship_brot_equation)burning_ship.iterate_diverge(max_iterations=15)matplot_renderer.plot(burning_ship,cmap="copper")JuliaBrotis an extension to Mandelbrot, in which instead of initializing Z and C as 0 andcomplex(i, j)respectively we initialize Z ascomplex(i, j)and C as a functionf(i, j)based on the julia set that we want to generate.For example, to generate a `` julia set we initialize C ascomplex(-0.7, 0.35)and this generates the following,julia=JuliaBrot(julia_name="frost_fractal")julia.iterate_diverge(max_iterations=100)matplot_renderer.plot(julia,cmap="inferno")julia=JuliaBrot(julia_name="galaxiex_fractal")julia.iterate_diverge(max_iterations=100)matplot_renderer.plot(julia,cmap="inferno")
Package: brother
brotherPython wrapper for getting data from Brother laser and inkjet printers via snmpHow to use packageimportasyncioimportloggingfromsysimportargvimportpysnmp.hlapi.asyncioashlapifrombrotherimportBrother,SnmpError,UnsupportedModelError# printer IP address/hostnameHOST="brother"logging.basicConfig(level=logging.DEBUG)asyncdefmain():host=argv[1]iflen(argv)>1elseHOSTprinter_type=argv[2]iflen(argv)>2else"laser"# argument printer_type: laser - for laser printer#                        ink   - for inkjet printerexternal_snmp=Falseiflen(argv)>3andargv[3]=="use_external_snmp":external_snmp=Trueifexternal_snmp:print("Using external SNMP engine")snmp_engine=hlapi.SnmpEngine()else:snmp_engine=Nonetry:brother=awaitBrother.create(host,printer_type=printer_type,snmp_engine=snmp_engine)data=awaitbrother.async_update()except(ConnectionError,SnmpError,UnsupportedModelError)aserror:print(f"{error}")returnbrother.shutdown()print(f"Model:{brother.model}")print(f"Firmware:{brother.firmware}")ifdata:print(f"Status:{data.status}")print(f"Serial no:{data.serial}")print(f"Sensors data:{data}")loop=asyncio.new_event_loop()loop.run_until_complete(main())loop.close()
Package: brother-label
brother-labelBrother label printer interface for QL and PT series printers.API is currently being re-worked and should not be considered stable.Fork ofhttps://github.com/pklaus/brother_qlandhttps://github.com/matmair/brother_ql-inventreewith many
improvements and features planned, including:Better support for device-specific label specifications (e.g. QL vs PT)Support for new devices (PT-E550W)Removed redudant legacy/compatibility code...DevicesDeviceStatusQL-500SupportedQL-550SupportedQL-560SupportedQL-570SupportedQL-580NSupportedQL-600SupportedQL-650TDSupportedQL-700SupportedQL-710WSupportedQL-720NWSupportedQL-800SupportedQL-810WSupportedQL-820NWBSupportedQL-1050SupportedQL-1060NSupportedQL-1100SupportedQL-1100NWBSupportedQL-1115NWBSupportedPT-P750WSupportedPT-P900WSupportedPT-P950NWSupportedPT-E550W✔️ VerifiedSupported:Device is supported, but no verification has been received.Verified:Device is supported, and verified by a user.LabelsContinuous / EndlessTypeQLQL-10QL-11PTPT-E6❌❌❌❌✔️9❌❌❌❌✔️12✔️✔️✔️✔️✔️18✔️✔️✔️✔️✔️24❌❌❌✔️✔️29✔️✔️✔️❌❌36❌❌❌✔️✔️38✔️✔️✔️❌❌50✔️✔️✔️❌❌54✔️✔️✔️❌❌62✔️✔️✔️❌❌62red✔️✔️✔️❌❌102❌✔️❌❌❌103❌❌✔️❌❌104❌✔️❌❌❌Die-CutTypeQLQL-10QL-1117x54✔️✔️✔️17x87✔️✔️✔️23x23✔️✔️✔️29x42✔️✔️✔️29x90✔️✔️✔️39x90✔️✔️✔️39x48✔️✔️✔️52x29✔️✔️✔️54x29✔️✔️✔️60x86✔️✔️✔️62x29✔️✔️✔️62x100✔️✔️✔️102x51❌✔️❌102x152❌✔️❌103x164❌❌✔️Round Die-CutTypeQLQL-10QL-11d12✔️✔️✔️d24✔️✔️✔️d58✔️✔️✔️BackendsBackendTypeLinuxMac OSWindowsnetworkTCP✔️✔️✔️linux_kernelUSB✔️❌❌py_usbUSB✔️✔️✔️
Package: brotherprint
python-brotherprintBrother networked label printers library for PythonThis was developed for the QL-580N but I’ve heard it also works for the following:QL-720NWInstallationThe easiest way to install this package is with pip.pip install brotherprintUsageThis library supports two printing modes. ESC/P commands, and templates. I highly recommend using templates, because it is easier to manage, and offers more features. I will, however, go over both.
You should review the official Brother documentation [here (ESCP Docs)](http://www.mediafire.com/?3wbanr34bsr18dw) and [here (Template Command Docs)](http://www.mediafire.com/?v798mue7i58ed66), to know what is available.## Setup
Regardless of which mode you are using, you need to intialize and connect a socket object, and pass the resulting socket object to the BrotherLabel object instantiator.from brotherprint import BrotherPrint
f_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
f_socket.connect((<ip_address>,<port (9100 by default for QL580N)>))
printjob = BrotherPrint(f_socket)### ESC/P Printing
Invoke escp commands through certain BrotherLabel object methods (see actual file for method descriptions)
Make sure to end with the print page command, signifying the end of a label.printjob.command_mode()
printjob.initialize()
printjob.bold(‘on’)
printjob.send(<text>)
printjob.print_page(<cut_setting>)### Template Printing
Create your template and upload it to the printer. After creating a BrotherLabel object, call template_mode() to set the printer to template mode, and then use the template commands to fill in your label.printjob.template_mode()
printjob.template_init()
printjob.choose_template(<template_number>)
printjob.select_and_insert(<field_name>, <data>)
printjob.select_and_insert(<field_name2>, <data2>)
printjob.select_and_insert(<field_name3>, <data3>)
printjob.template_print()
Package: brother-ql-inventree
brother_ql-inventreePython package for the raster language protocol of the Brother QL series label printersFORK NOTICEThis is a fork ofhttps://github.com/pklaus/brother_qlbyPhilipp Klausto enable faster updates.
Check outhttps://github.com/inventree/inventreeto see what I forked it for.Verified modelsVerified devices✓ means the device was verified by the original projectQL-500 (✓), QL-550 (✓), QL-560 (✓), QL-570 (✓), QL-580N
QL-600 (✓), QL-650TD
QL-700 (✓), QL-710W (✓), QL-720NW (✓)
QL-800 (✓), QL-810W (✓), QL-820NWB (✓)
QL-1050 (✓), QL-1060N (✓),
QL-1100 (✓), QL-1100NWB, QL-1115NWB.Verified labelsThe available label names can be listed withbrother_ql info labels:Name      Printable px   Description
 12         106           12mm endless
 29         306           29mm endless
 38         413           38mm endless
 50         554           50mm endless
 54         590           54mm endless
 62         696           62mm endless
 102       1164           102mm endless
 103       1200           103mm endless
 104       1200           104mm endless
 17x54      165 x  566    17mm x 54mm die-cut
 17x87      165 x  956    17mm x 87mm die-cut
 23x23      202 x  202    23mm x 23mm die-cut
 29x42      306 x  425    29mm x 42mm die-cut
 29x90      306 x  991    29mm x 90mm die-cut
 39x90      413 x  991    38mm x 90mm die-cut
 39x48      425 x  495    39mm x 48mm die-cut
 52x29      578 x  271    52mm x 29mm die-cut
 54x29      598 x  271    54mm x 29mm die-cut
 62x29      696 x  271    62mm x 29mm die-cut
 62x100     696 x 1109    62mm x 100mm die-cut
 102x51    1164 x  526    102mm x 51mm die-cut
 102x152   1164 x 1660    102mm x 153mm die-cut
 103x164   1200 x 1822    103mm x 164mm die-cut
 d12         94 x   94    12mm round die-cut
 d24        236 x  236    24mm round die-cut
 d58        618 x  618    58mm round die-cutBackendsThere are multiple backends for connecting to the printer available (✔: supported, ✘: not supported):BackendKindLinuxMac OSWindowsnetwork (1)TCP✔✔✔linux_kernelUSB✔ (2)✘✘pyusb (3)USB✔ (3.1)✔ (3.2)✔ (3.3)Significant Changes:v1.0:Renamed the package tobrother_ql-inventreeand added a release actionhttps://github.com/matmair/brother_ql-inventree/pull/16Added printer support for QL-600https://github.com/matmair/brother_ql-inventree/pull/17, PT-P950NWhttps://github.com/matmair/brother_ql-inventree/pull/6, QL-1100, L-1100NWB, QL-1115NWBhttps://github.com/matmair/brother_ql-inventree/pull/18Added label support for DK-1234https://github.com/matmair/brother_ql-inventree/pull/22, 54x29https://github.com/matmair/brother_ql-inventree/pull/19, DK22246https://github.com/matmair/brother_ql-inventree/pull/20, ...Read the full old Readmehere.
Package: brotlipy
brotlipyThis library contains Python bindings for the reference Brotli encoder/decoder,available here. This allows Python software to use the Brotli compression
algorithm directly from Python code.To use it simply, try this:importbrotlidata=brotli.decompress(compressed_data)More information can be foundin the documentation.LicenseThe source code of brotlipy is available under the MIT license. Brotli itself
is made available under the Version 2.0 of the Apache Software License. See the
LICENSE and libbrotli/LICENSE files for more information.Authorsbrotlipy is maintained by Cory Benfield.Changelog0.7.0 (2017-05-30)Update to v0.6.0 of the Brotli library.0.6.0 (2016-09-08)Resolved a bug wheredecompress()would return an empty bytestring
instead of erroring if the provided bytestring was small enough.Added thefinish()method to the streaming decompressor.0.5.1 (2016-08-17)Update to v0.5.2 of the Brotli library.Add new exception type (Error).Add compatiblity with C++ brotli library by aliasingErrortoerror.Extra error checking of input parameters to the compressor.0.5.0 (2016-08-16)Update to v0.5.0 of the Brotli library.Extend one-shot compression API to include all control parameters.Added streaming/incremental compression API.Added flags to control compression mode.0.4.0 (2016-08-01)Update to v0.4.0 of the Brotli library.0.3.0 (2016-05-11)Update to v0.3.0 of the Brotli library.0.2.0 (2015-10-05)Fix brokenbrotli.compresssupport on Windows.0.1.3 (2015-10-05)Added basic forbrotli.compressthrough a C wrapper included in this
library.
Package: browler
# Selenium Based Web CrawlerReadTheDocs - http://browler.readthedocs.org/en/latest/## Requirements* redis `brew install redis`## Install```pip install browler```## Uninstall```pip uninstall browler```## Configuration### With Selenium Hub```pythonconfig = {"browser": 'remote',"remote": {"url": 'http://localhost:49044/wd/hub','browser': 'firefox'},"url": "https://en.wikipedia.org/wiki/Main_Page","limit": 10,"processes": 2}```### Local Firefox```pythonconfig = {"browser": 'firefox',"url": "https://en.wikipedia.org/wiki/Main_Page","limit": 10,"processes": 2}```
Package: brownant
BrownantBrownant is a lightweight web data extracting framework.Who uses it?At the moment,dongxi.douban.com(a.k.a. Douban Dongxi) uses Brownant in production environment.Installation$ pip install brownantLinksDocumentIssue TrackIssuesIf you want to report bugs or request features, please create issues onGitHub Issues.ContributesYou can send a pull reueqst onGitHub.