Saravanan666/pypi-org huggingface dataset:
Package: pybricks-stubs
pybricks-stubsPackage RationaleThis package is meant to provide typings (and IntelliSense) to those developing Python programs for the LEGO® MINDSTORMS® EV3 with the official LEGO® software (pybricks).This package does not support executing robot code on the computer or on the robot. This package does provide type hinting while writing Python code on the computer for later upload/deployment to the robot.Version DocumentationFor version 1.0.0 and earlier, all typings are based on theLEGO® API 1.0.0.For versions after 1.0.0 (including 2.0.x and the 1.0.* pre-releases for 2.0.0), all typings are based on theLEGO® API 2.0.0.Choosing Your VersionFor the latest version, you can run:pip install pybricks-stubsIf you are working with version 1.0.0 from LEGO®, make sure you install version 1.0.0 of the package with this command:pip install pybricks-stubs==1.0.0Turning On Type HintsIf you are working with version 2.0.0 or later and have generated a project using the Visual Studio Code extension, you may need to edit your settings file in order for your hints to work.If so, you would go to the .vscode folder to the settings.json file. You will want to edit this line:"python.languageServer": "None"Just change "None" to "Microsoft" or "Jedi" (either should work). You will have to reload the project. Follow the prompts or close Visual Studio Code and re-open the project.Be aware that things your computer lets you import may not be available on the EV3's local version of Python. Make sure you check that your code runs on the brick whenever youimportsomething new.DisclaimerThis package isnotproduced or maintained by LEGO®, nor is it officially endorsed by LEGO® orFIRST®.IssuesPlease report any issues you encounter on the GitHub page.
Package: pybrid
A Simple Python/R/SQL Hybrid Reporting Framework.__doc__Various methods and objects are available at the top level:run() — run reports with a ReportRunner.main() — run reports with user specified CLI options.hooks.* — pre- and post- hooks for modifying runner.filters.* — filters for limiting reports generated.Pybrid is meant to be used with other packages, like:hey_dl, hey_rexec, hey_pgsqlexec, hey_april.
Package: pybrightness
PyBrightnessPython module to modify display brightness on Linux, Windows and macOSInstallationpython-mpipinstallpybrightnessUsageimportpybrightnesspybrightness.increase()# Increase to 100%pybrightness.decrease()# Decrease to 0%pybrightness.custom(percent=72)# Set to a custom levelRelease NotesRequirementpython-mpipinstallgitverseUsagegitverse-releasereverse-frelease_notes.rst-t'Release Notes'Pypi Packagehttps://pypi.org/project/pybrightness/License & copyright© Vignesh RaoLicensed under theMIT License
Package: pybrisque
# PyBRISQUEAn implementation of BRISQUE (Blind/Referenceless Image Spatial QualityEvaluator) in Python from the paper: ["No-Reference Image Quality Assessmentin the Spatial Domain"](https://ieeexplore.ieee.org/document/6272356/).## InstallationThe package is in PyPI so you can install it simply by this command:```pip install --process-dependency-links pybrisque```## UsageInitialize once:```brisq = BRISQUE()```and get the BRISQUE feature or score many times:```brisq.get_feature('/path')brisq.get_score('/image_path')```## LimitationsThis implementation is heavily adopted from the original Matlabimplementation in [here](https://github.com/dsoellinger/blind_image_quality_toolbox/tree/master/%2Bbrisque). There is one catch though, the bicubic interpolation when resizing image inMatlab and OpenCV is a bit different as explained in [here](https://stackoverflow.com/questions/26823140/imresize-trying-to-understand-the-bicubic-interpolation). For now, it uses ```nearest``` interpolationwhich gives the most similar output with the original implementation.Comparing with Matlab original implementation on reference images of TID 2008:![Comparison](examples/comparison.png)And the absolute differences' stat is as follows:```{'min': 0.17222238726479588,'max': 16.544924728934404,'mean': 3.9994322498322754,'std': 3.0715344507521416}```
Package: pybritive
Britive CLI - Pure Python ImplementationPyBritive is intended to be used as a CLI application for communicating with the Britive Platform.Installationpybritivewill be installed via Pythonpip.pipinstallpybritiveOr you can always pull the latest version directly from GitHub using one of the following commands.pip install $(curl -s https://api.github.com/repos/britive/python-cli/releases/latest | jq -r '.assets[] | select(.content_type == "application/x-gzip") | .browser_download_url')

OR

pip install $(curl -s https://api.github.com/repos/britive/python-cli/releases/latest | grep "browser_download_url.*.tar.gz" | cut -d : -f 2,3 | tr -d \")The end user is free to install the CLI into a virtual environment or in the global scope, so it is available
everywhere.Documentationhttps://britive.github.io/python-cli/Community ProjectsNote: Britive, Inc. does not provide support for community projects. Community projects are also not considered when ensuring backwards compatibility for releases. The list below is provided as-is and use of these projects is subject to the licensing/restrictions of each individual project.vim-britive:https://github.com/pbnj/vim-britive
Package: pybroadlink
pybroadlinkControl Broadlink devices with Python 3 using asyncio (single threaded with event loop). Currently supports the RM3 Smart Remote.Usageimportsysimportloggingimporttracebackfrompybroadlink.broadlink_udpimportBroadlinkRM3importasyncioimportbinasciifrombase64importb64decodefrompybroadlinkimport_LOGGERasyncdeftestFake(n):foriinrange(n):_LOGGER.debug("Counter is%d",i)awaitasyncio.sleep(1)asyncdefdiscovery_test(*args):rv=awaitBroadlinkUDP.discovery(local_ip_address=args[2],timeout=int(args[3]))ifrv:_LOGGER.info("Discovery OK%s",rv)else:_LOGGER.warning("Discovery failed")asyncdefemit_test(*args):importremo=re.search('^[a-fA-F0-9]+$',args[4])ifmo:payload=binascii.unhexlify(args[4])else:payload=b64decode(args[4])a=BroadlinkRM3((args[2],PORT),args[3])rv=awaita.emit_ir(payload,retry=1)ifrv:_LOGGER.info("Emit OK%s",binascii.hexlify(rv[0]).decode('utf-8'))else:_LOGGER.warning("Emit failed")a.destroy_remote()asyncdeflearn_test(*args):a=BroadlinkRM3((args[2],PORT),args[3])rv=awaita.enter_learning_mode()ifrv:_LOGGER.info("Entered learning mode (%s): please press key",rv)rv=awaita.learn_ir_get(30)ifrv:_LOGGER.info("Obtained%s",binascii.hexlify(rv[0]).decode('utf-8'))else:_LOGGER.warning("No key pressed")else:_LOGGER.warning("Enter learning failed")a.destroy_remote()_LOGGER.setLevel(logging.DEBUG)handler=logging.StreamHandler(sys.stderr)handler.setLevel(logging.DEBUG)formatter=logging.Formatter('%(asctime)s-%(name)s-%(levelname)s-%(message)s')handler.setFormatter(formatter)_LOGGER.addHandler(handler)loop=asyncio.get_event_loop()try:asyncio.ensure_future(testFake(150))ifsys.argv[1]=="learn":loop.run_until_complete(learn_test(*sys.argv))elifsys.argv[1]=="discovery":loop.run_until_complete(discovery_test(*sys.argv))else:loop.run_until_complete(emit_test(*sys.argv))exceptBaseExceptionasex:_LOGGER.error("Test error%s",str(ex))traceback.print_exc()except:_LOGGER.error("Test error")traceback.print_exc()finally:loop.close()ContributionsPull requests are welcome. Possible areas for improvement:Additional Broadlink devices (switches).DisclaimerNot affiliated with Broadlink.
Package: pybrokk
pyBrokkThis package allows users to provide a list of URLs for webpages of interest and creates a dataframe with Bag of Words representation that can then later be fed into a machine learning model of their choice. Users also have the option to produce a dataframe with just the raw text of their target webpages to apply the text representation of their choice instead.WhypyBrokkThere are some libraries and packages that can facilitate this job, from scraping text from a URL to returning it to a bag of words (BOW). However, to the extent of our knowledge, there is no sufficiently handy and straightforward package for this purpose. This package is a tailored combination ofBeatifulSoupandCountVectorizer.BeautifulSoupwidely used to pull different sources of data from HTML and XML pages, andCountVectorizeris a well-known package to convert a collection of texts to a matrix of token counts.NOTE:Some websites do not let users collect their data with web scraping tools. Make sure that your target websites do not refuse your request to collect data before applying this package.FeaturesThe pyBrokk package includes the following four functions:create_id(): Takes a list of webpage urls formatted as strings as an input and returns a list of unique string identifiers for each webpage based on their url. The identifier is composed of the main webpage name followed by a number.text_from_url(): Takes a list of urls and using Beautiful Soup extracts the raw text from each and creates a dictionary. The keys contain the original URL and the values contain the raw text output as parsed by Beautiful Soup.duster(): Takes a list of urls and uses the above two functions to create a dataframe with the webpage identifiers as a index, the raw url, and the raw text from the webpage with extra line breaks removed.bow(): Takes a string text as an input and returns the list of unique words it contains.Installation$pipinstallpybrokkUsageImportsimport pybrokk 
import requests 
import pandas as pd 
from bs4 import BeautifulSoup 
from sklearn.feature_extraction.text import CountVectorizerInput Formaturls = ['https://www.utoronto.ca/',
         'https://www.ubc.ca/',
         'https://www.mcgill.ca/',
         'https://www.queensu.ca/']create_id()Creates unique IDs for a list of URLsurl_ids = create_id(urls)text_from_url()Creates a dictionary with original URLs as keys and parsed usingBeautifulSouptext as valuesdictionary = text_from_url(urls)duster()Create a dataframe using the outputs ofcreate_id()andtext_from_url()df = duster(urls)bow()Create a dataframe of a bag of words appended to the input dataframedf_bow = bow(df)ContributingInterested in contributing? Check out thecontributing guidelinesand thelist of contributorswho have contributed to the development of this project thus far. Please note that this project is released with aCode of Conduct. By contributing to this project, you agree to abide by these terms.LicensepyBrokkwas created by Elena Ganacheva, Mehdi Naji, Mike Guron, Daniel Merigo. It is licensed under the terms of the MIT license.CreditspyBrokkwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.pyBrokkusesbeautiful soup
Package: pybrood
Pybrood=======|docs|Binding made as from-scratch code generator, outputting msvc project.Precompiled installation------------------------Requirements:-  Windows 7 32 bit (just exactly SSCAIT requirement)NOTE: I couldn't successfully run BWAPI injector under Wine,although recently I've been told`it'spossible <https://github.com/TorchCraft/TorchCraft/blob/master/docs/user/bwapi_on_linux.md>`__.-  `Python3.5 <https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe>`__-  Installed BWAPI and SC::pip install pybroodDocumentation-------------`Read the docs <http://pybrood.readthedocs.io/en/latest/>`__Compiling from source---------------------Additional requirements:-  `Visual C++ buildtools <http://landinghub.visualstudio.com/visual-cpp-build-tools>`__or complete Visual Studio.NOTE: pick the version of compiler/studio considering `build toolsused by python <https://wiki.python.org/moin/WindowsCompilers>`__-  `BWAPI 4.1.2sources <https://github.com/bwapi/bwapi/releases/tag/v4.1.2>`__you need ``BWAPI.lib`` and ``BWAPIClient.lib`` built against chosencompiler to link pybrood module-  Most fresh (dec 2016) `Pybind11headers <https://github.com/pybind/pybind11>`__Building BWAPI.lib and BWAPIClient.lib~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| You may experience "access denied" errors while working directly in"program files/BWAPI".| Better use separately cloned git repo of BWAPI where you have fullaccess.| For ``msbuild`` invocation use special VC++ related cmd shell fromLaunch menu.| Otherwise you can use usual cmd shell.#. Make some changes in bwapi source files first:-  | little fix in ``bwapi/include/BWAPI/SetContainer.h:53``:|  at very end of class add``SetContainer& operator=(const SetContainer&) = default;``to get rid of "attempting to reference a deleted function" error.-  disable mass file copying in ``bwapi/BWAPILIB/BWAPILIB.vcxproj``:-  line 64: ``<PreLinkEvent>`` â†’ ``<!-- PreLinkEvent>``-  line 94: ``</PreLinkEvent>`` â†’ ``</PreLinkEvent -->``-  create file ``bwapi/svnrev.h``:``static const int SVN_REV = 4708;  #include "starcraftver.h"``This prevents "Client and Server are not compatible" error.#. Build BWAPI.lib:``cd bwapi\BWAPILIB\    msbuild /p:PlatformToolset=v140 /p:Configuration=Release /p:Platform=Win32``Output file is ``bwapi/lib/BWAPI.lib``.#. Build BWAPIClient.lib:``cd bwapi\BWAPIClient\    msbuild /p:PlatformToolset=v140 /p:Configuration=Release /p:Platform=Win32``Output file is ``bwapi/lib/BWAPIClient.lib``.Building Pybrood~~~~~~~~~~~~~~~~#. ``pip install -r generator/requirements.txt``#. Setup paths in `generator/config.py <generator/config.py>`__.#. Run the generator ``python3.5 -m generator``.#. ``cd`` to freshly generated ``output`` folder and run ``build.bat``(it's just the same msbuild command).#. Copy/symlink ``output/Release/inner.pyd`` into ``pybrood`` directory.``inner.pyd`` is a required submodule of ``pybrood``.#. Now you should be able to ``import pybrood``.#. Optionally you can build your local copy of documentation:``cd output/docs/    sphinx-build . -b html _build/html``.. |docs| image:: https://readthedocs.org/projects/pybrood/badge/?version=latest:target: http://pybrood.readthedocs.io/en/latest/
Package: pybroom
Pybroomis a small python 3+ library for converting collections of
fit results (curve fitting or other optimizations)
toPandasDataFramein tidy format (or long-form)(Wickham 2014).
Once fit results are in tidy DataFrames, it is possible to leveragecommon patternsfor tidy data analysis. Furthermore powerful visual
explorations using multi-facet plots becomes easy thanks to libraries
likeseabornnatively
supporting tidy DataFrames.See thepybroom homepagefor more info.
Package: pybrops
PyBrOpSPython Breeding Optimizer and Simulator: A Python library for simulating
breeding programs and optimizing breeding-related problems.Detailed DocumentationA full website hosting all documentation can be found atthe project GitHub Pages website.
Please consult the documentation to learn how to use PyBrOpS.General installation requirementsPython 3.8.0+Notes on Linux installation requirementsYou will need to install Python developmental headers in addition toPython 3.8.0+. Even though PyBrOpS is written in pure Python, some of its
dependencies require compilation.Commands for installing Python developmental headers:Linux DistroCommandFedorasudo dnf install python3-develUbuntusudo apt install python3-devPython package dependenciesPyBrOpS relies on several dependencies. They are:cyvcf2-0.30.14+(reading VCFs)cvxpy-1.1.18+(linear programming)pymoo-0.6.0+(genetic algorithms)h5py-3.6.0+(HDF5 file support)matplotlib-3.5.1+(graphics)numpy-1.22.2+(matrix storage and algebra)pandas-1.4.1+(data frames)pytest-7.0.1+(unit tests)pytest-datadir-1.3.1+(unit tests)scipy-1.8.0+(miscellaneous numerical routines)setuptoolswheelDevelopmental version installationTo install firstclonethe repository:git clone https://github.com/rzshrote/pybrops.gitIt is a best practice to create a virtual environment where PyBrOpS dependencies
can be installed. To do this, you can use theMakefile:make install-develAlternatively, this may be done manually using the following commands:python3 -m venv env
. env/bin/activate
python3 -m pip install --editable .Next, you must activate the virtual environment using either the.command
(forsh) or thesourcecommand (forbash):. env/bin/activateorsource env/bin/activateNow that the virtual environment is activated, you can accesspybropsthrough thepython3command-line interface prompt and through script
execution.Documentation generationNon-exhaustive list for buildingsource env/bin/activate

pip3 install sphinx-autodoc-typehints sphinx_rtd_theme pydata_sphinx_theme
Package: pybrot
ï»¿# Pybrot
Pybrot is a python package that you can use to create images of the mandelbrot set like this:Mandelbrot(autoMaxIter=False, maxIterations=128, samples=5000, drawRadius=1.5, coloringFunc=MandelColoring.IterativeColor)Mandelbrot(x=-0.9230110468224410331799630273585336748656, y=0.3103593603697618780906159981443973705961, drawRadius=0.00001, samples=1000, blacknessLimit=0.025, coloringFunc=SmoothColor)InstallationPybrot is in the python package index. You can use pip to install pybrot.pip install pybrotUseFirst, import the package:from pybrot.Mandelbrot import MandelbrotThen, you can initialise a mandelbrot object like so:m = Mandelbrot()Then you can callm.show()to show the image, or usem.SaveImg("Mandelbrot.png")to save it as an image.DIYThe process described above creates the same image of the mandelbrot set each time. The Mandelbrot object initialiser takes a lot of arguments which you can use to customise the image that is produced. All arguments are keyword arguments.The x and y coÃ¶rdinates determine what point the image is centered around.x (default: 0)y (default: 0)The drawing radius determines how zoomed in the image is. The bigger the drawing radius, the more zoomed out the image.drawRadius (default: 2)To calculate whether a point lies within the mandelbrot set, a maximum iteration amount is required. If you are not sure what that means, or how that works, there is an option (which is enabled by default) to automatically calculate the ideal maximum iteration.autoMaxIter (default: True)When calculating the ideal number of maximum iterations, the module uses the amount of black pixels in the image in proportion to the total amount of pixels. You can change the maximum percentage of black pixels in the image by using the blackness limit. This is set to 0.3 (=30%) by default, which guarantees that the image will not contain more than 30% black pixels.blacknessLimit (default: 0.3)If you want to manually select a maximum iteration value, that is also possible (but remember to set autoMaxIter to False).maxIterations (default: 64)When calculating whether a point lies within the mandelbrot set, you also need to specify the escape radius. If the absolute value of the point is bigger than this value before reaching the maximum iterations (see above), then it's considered outside of the set.escapeRadius (default: 4)Depending on how high quality you want your image to be, you can set the samples argument. This argument defines how many rows and columns of pixels are generated and have a color calculated for it, and thus the resolution of the image. This value also has a dramatic effect on performance (n times more samples means nÂ² times the calculations).samples (default: 250)Lastly, if you would like to create your own coloring function to create even more unique images, you can use the coloringFunc argument to specify your own function, or you can use one of the functions defined in the MandelColoring script.coloringFunc (default: IterativeColor)
Package: pybrownies
pybrowniesThis is a small library of utilities designed to assist in the creation and maintenance of Python projects.brownieperforms chores like testing, linting, building, publishing.pprintenvshows the shell environment like printenv, but prettier.whichpylocates Python packages and modules (likewhichlocates program files).InstallationA lean install installs justpprint,pprintenv, andwhichpy:%pipinstallpybrowniesTo also get thebrownietool and its dependencies to help developing your project, enter%pipinstallpybrownies"[dev]"UsagebrownieTo see whichbrownietasks are available, enter%brownie--list
Subcommands:cleanRemovenon-codefromtheproject.covreportShowthecoveragereportinthedefaultbrowser.distCreatethesdistandwheelfortheproject.lintRunspylintandflake8oneveryPythonpackagewithinthisproject.publishPublishestheprojectonTestPyPI,oronPyPIwiththe--pypioption.testRunsallunittests,optionallywithtestcoverage.
%To obtain more info on what a specific task does, enter e.g.%browniepublish-h
Usage:brownie[--core-opts]publish[--options][othertaskshere...]Docstring:PublishestheprojectonTestPyPI,oronPyPIwiththe--pypioption.

Options:-p,--pypipublishonpypi.orginsteadoftest.pypi.org-s,--showshowthenewpageinthewebbrowser
%pprintRenders various text file formats to the console. with syntax highlighting. Improves the readability os tructured data such as HTML, JSON, PLIST, XML. Applies syntax highlighting to source code. Displays Markdown files with styles and colors appied.pprintenvOutputs the environment as a table, environment variable names in one column, their values in another. For better readability, the elements of a path list (e.g. PATH) are displayed in individual lines.whichpyTo locate modules and packages withwhichpy, enter e.g.Modules:%whichpyshutil
/home/you/.asdf/installs/python/3.10.10/lib/python3.10/shutil.pyPackages:%whichpyrich
/home/you/dev/pybrownies/.venv3.10/lib/python3.10/site-packages/rich/__init__.pyModules within packages:%whichpyrich.console
/home/you/dev/pybrownies/.venv3.10/lib/python3.10/site-packages/rich/console.pyCreditsbrownieis basically aninvoketask library. The colorful output is courtesy ofRich.
Package: pybrownomics
PyBrownomicsPyBrownomics is a package with different tokenomics simulation models.Models:pybrownomics/control:Implements the concepts outlined in the research articleA Control Theoretic Approach to Infrastructure-Centric Blockchain Tokenomicsby Oguzhan Akcin, Robert P. Streit, Benjamin Oommen, Sriram Vishwanath, and Sandeep Chinchali.The implementation for this module was designed by the pybrownomics team during for thesuperhackETHGlobal hackathon.pybrownomics/brown:Utility Token Price Simulator is a simulator that simulates general token price when setting parameters.
It is implemented based on the theory ofTokenomics: Dynamic Adoption and Valuation.This modules was designed and implemented bymelonattackerand the original source code comes fromutility-token-price-simulator.
Package: pybrowscap
pybrowscap is a python port of PHP functionget_browser(). It tells what the user
browser is capable of. It detects browsers capabilities and features like css, java,
javascript etc. It works on top of browscap data file.Important noticeVersion 2.0 and higher of pybrowscap supports csv browscap file version 5000 and higher. If you want to use
older version of csv browscap file, use pybrowscap version lower than 2.0.Requirementspython 2.6+browscap.csv (browscap data file in csv format)InstalationInstall via pypi or copy this module into your project or into your PYTHON_PATH.
Download latest version of browscap.csv file fromhttp://browsers.garykeith.com/downloads.asp.Examplefrom pybrowscap.loader.csv import load_file
browscap = load_file(path_to_browscap_csv)
browser  = browscap.search(user_agent_string)
browser.is_crawler()Automatic updatesfrom pybrowscap.loader import Downloader
from pybrowscap.loader.csv import URL
Downloader(URL).get(save_to_filepath)TestsTested on evnironmentXubuntu Linux 12.04 LTS precise 64-bitpython 2.7.3python unitestbrowscap_14_05_2012.csv from Mon, 14 May 2012 22:20:20 -0000browscap.21_05_2012.csv from Mon, 21 May 2012 15:48:39 -0000”Running testsTo run the test run command:$ python test.py
$ python setup.py testAuthorchar0n (Vladimír Gorej, CodeScale s.r.o.)email:gorej@codescale.netweb:http://www.codescale.netCreditsSpecial thanks to these projects for inspiration:http://code.google.com/p/python-browscap/http://djangosnippets.org/snippets/267/Referenceshttp://github.com/char0n/pybrowscaphttp://browsers.garykeith.com/http://php.net/get_browserhttp://www.codescale.net/en/community#pybrowscap