Saravanan666/pypi-org huggingface dataset:
Package: bripy
BripyBripy is a python library for extracting reads from a bam by read name. It
uses thebrilibrary from Jared Simpson.© 2019 Oxford Nanopore Technologies Ltd.Installationbripycan be installed using pip:pip install bripyFor python3.5 and python3.6 under linux this will download precompiled
binaries, in other environments a source distribution will be downloaded
and compiled. Compilation from source requires the same libraries ashtslib:'m', 'z', 'lzma', 'bz2', 'pthread', 'curl', 'crypto'since htslib is built from source as part of the process.UsageThe library contains a single class interface and two example programs. To
index a bam file for later retrieval of reads run:bripy index <bamfile>This program is analogous to thebri index <bamfile. The second program
will retrieve reads from a bam by name:bripy get <bamfile> <read name>Again this program is analogous to runningbri get <bamfile> <read name>.ThebripyAPI is simple, the following will return a string containing
sam formatted alignments:bri = BamReadIndex(bam_file)
sam_data = bri.get_alignments(read_name)This API is likely to change in future to provide a more useful data structure
akin to apysam.AlignedSegment.LicenseLicence and Copyright© 2019 Oxford Nanopore Technologies Ltd.bripyis distributed under the terms of the Mozilla Public License 2.0.Research ReleaseResearch releases are provided as technology demonstrators to provide early
access to features or stimulate Community development of tools. Support for
this software will be minimal and is only provided directly by the developers.
Feature requests, improvements, and discussions are welcome and can be
implemented by forking and pull requests. However much as we would
like to rectify every issue and piece of feedback users may have, the
developers may have limited resource for support of this software. Research
releases may be unstable and subject to rapid iteration by Oxford Nanopore
Technologies.
Package: brisk
Optimized numerical computation using Continuum’s Numba. Intended as a drop-in replacement
for numerical functions in numpy, scipy, or builtins. Provides strong performance boosts.Numba websiteInputs use numpy arrays, not lists.
Rough/early release - Open to suggestions and bug reports.Included functionssum: Similar to builtin sum, or numpy.summean: Similar to numpy.meanvar: Variance test, similar to numpy.varcov: Covariance estimation, similar to numpy.covstd: Standard deviation, similar to numpy.stdcorr: Pearson correlation test, similar to scipy.stats.pearsonrbisect: Similar to standard library bisect.bisectbisect_left: Similar to standard library builtin.bisect_leftinterp: Linear interpoliation, similar to numpy.interp. x is an array.interp_one: Linear interpolation, similar to numpy.interp. x is a single value.detrend: Similar to scipy.signal.detrend. Linear or constant trend.ols: Simple Ordinary Least Squares regression for two data sets.ols_single: Simple Ordinary Least Squares regression for one data set.lin_resids: Residuals calculation from a linear regression with two data setslin_resids_single: Residuals calculation from a linear regression with one data set.
Package: brisque
Blind/Referenceless Image Spatial Quality Evaluator (BRISQUE)BRISQUE is a no-reference image quality score.A good place to know how BRISQUE works :LearnOpenCVInstallationpipinstallbrisqueUsageTrying to perform Image Quality Assessment onlocal imagesfrombrisqueimportBRISQUEobj=BRISQUE(url=False)obj.score("<Ndarray of the Image>")Trying to perform Image Quality Assessment onweb imagesfrombrisqueimportBRISQUEobj=BRISQUE(url=True)obj.score("<URL for the Image>")ExampleInputfrombrisqueimportBRISQUEobj=BRISQUE("https://www.mathworks.com/help/examples/images/win64/CalculateBRISQUEScoreUsingCustomFeatureModelExample_01.png",url=True)obj.score()Output74.41910327611319
Package: brite_etl
A python package for working with the BriteCore ETL.PLEASE NOTE:brite_etlfollowsSemantic Versioning, and is currently in the initial development phase (0.x.x). Use with caution.UseThis is all broken down on the introduction page.importbrite_etlfrombrite_etl.core.io.frame_sourcesimportCsvSource# Create a "set" of frames to work with...contoso=brite_etl.lib.FrameSet('contoso')#Set the source of our csvs (can also pass BriteDataFrame/PreparedDataFrame)...contoso.set_data_sources(source=CsvSource(DF_ROOT),prepared_source=CsvSource(DF_PREP))# Easy handling of dataframes, works same for both csv and britedataframe sources.# Essentially a wrapper around the pandas DataFrame. Dates parsed automatically.contoso.frames.get('property_items')contoso.frames.get('agencies').df# original dataframe# Import BriteCore reports. Don't have to open/change/save columns in excel, hyperlinks and other# formatting issues are handled. Don't even have to rename the file to take out the dates.frombrite_etl.core.ioimportimport_reportadv_prem=import_report('/tmp/input','Advance Premium',sheet='Advance Premium List',skip_rows=2)# Pandas DataFramecontoso.frames.set('ap',df=adv_prem)# Make custom frames in your frame set# Define frame-specific operations...contoso.frames.get('prepared.lines').endOfMonthSum()# Or use universal operations, chain across multiple frames..._contoso=contoso.chain(_contoso.filter_dates('date filter for multiple frames actually isn\'t done yet (soon, though)').hash_cols(['policyId'])# MD5 hashed dataframes.export_excel(path='/tmp/output',file_name='end_month_integrity_hash.xlsx')# Every frame is put into it's own sheet during export.run())# Computations make use of multiple frames within a frame set (also chainable)...trans=_contoso.get_item_transactions().value()# Create multiple, isolated sets of frames...wrk=brite_etl.lib.FrameSet('working',from_set=contoso)Installationpip install brite_etlDevelopmentTo run the all tests run:toxTest just your desired python version withtox-epy27ortox-epy35. Much faster than running all test envirornments.Note about testing: some of the tests require real df_cache data to run. The locations for the df_cache directories is defined in thesetup.cfgfile. When running, the tests will check to make sure the directories exist and contain files. If they don’t those tests will be skipped, the rest of the tests should function like normal.Changelog0.1.0 (2016-10-03)Update docsFemove pypy envUse semantic versioning0.0.1 (2016-10-02)First release on PyPI.
Package: britishcycling-clubs
britishcycling-clubsAboutUnofficial, not affiliated or endorsed by British/Scottish/Welsh Cycling.Library to automate aspects of British Cycling's Club Management Tool, in order to
simplify administration for clubs using it. It probably works for Scottish/Welsh
Cycling clubs too, but this hasn't been tested.Priority is to read data in order to create reports/notifications to club
administrators.PrerequisitesCredentials for a club using the Club Management ToolInstallationInstall from PyPI, e.g:pip install britishcycling-clubsSome functions usePlaywrightto automate a headless Chromium browser. This needs
to be installed separately before first use, and after most Playwright updates, e.g.:playwright install chromiumIf you're installing in e.g. a bare-bones server/CI environment, you'll probably be
prompted to install system dependencies, which you can do with e.g.:playwright install-deps chromiumSee alsohttps://playwright.dev/python/docs/browsers#install-system-dependenciesUsageClub profile URLbritishcycling_clubs.club_profile_url(
    club_id: str
) -> strGet info from a club's profilebritishcycling_clubs.get_profile_info(
    club_id: str
) -> dict[str, int | str]Return information from the club's public profile page; doesn't require login.Specifically, return a dict with these keys and corresponding values:"club_name": Club name"total_members": Total club membersExample scriptexample_profile_info.pyloads club ID fromconfig.ini(you'll
need to copyconfig_dist.ini, populate club ID only and rename).
It then retrieves and prints the club name and total member count.Club manager URL (via login)britishcycling_clubs.club_manager_url_via_login(
    club_id: str
) -> strURL which redirects to Club Manager URL, via login if needed.Get member counts from Club Managerbritishcycling_clubs.get_manager_member_counts(
    club_id: str,
    username: str,
    password: str,
    manager_page_load_delay: int = 5,
) -> dict[str, int]:Get numbers of active, new, expired members from the club manager page.Specifically, return a dict with these keys, and values from badges on corresponding
tabs:"active": Active Club Members"expired": Expired Club Members"new": New Club SubscriptionsThis takes about 10s.Example scriptexample_manager_member_counts.pyloads club ID and credentials fromconfig.ini(you'll need to copyconfig_dist.ini, populate and rename toconfig.ini).
It then retrieves and prints the number of active, expired and new
club member counts from the club's Club Manager pages.
Package: britney-utils
Britney-utils comes with some utilities to create and manage clients build by Britney.Installbritney-utils is working on Python 2.7 and Python >= 3.2. To install the module, use pip$> pip install britney-utilsUse it…… to create a basic clientYou can easily create a client with theget_clientfunction. It will create and save the client to retrieve it later with his name, acting as a cacheimport britney_utils

client = britney_utils.get_client('my_client',
                                  '/path/to/spore/description.json',
                                  base_url='http://my-rest-api.org/v1/')… to reset an instanceIf an instance is already created with a name you gave in first place, you can easily reset and rebuild it. In this example, we except that themy_clientSPORE client already existclient = britney_utils.get_client('my_client',
                                  '/path/to/spore/description.json',
                                  reset=True)A new instance is created with themy_clientname and saved… to create a pre-build instance with middlewaresCreating a rich client with all middlewares needed activated is useful. You can do this like thisfrom britney.middleware import auth, format
import britney_utils

middlewares = (
    (format.Json, {'predicate': lambda env: env['format'] == 'json'}),
    (auth.Basic, {'username': 'toto', 'password': 'xxxxxx'}
)

client = britney_utils.get_client('my_client',
                                  '/path/to/spore/description.json',
                                  middlewares=middlewares)
Package: brittle_wit
What is Brittle Wit?Brittle Wit is a Twitter Lib for Python.It usesasyncio,aiohttp, and Python
3.5+ (async/await).It is rigorously polite in its adherence toTwitter’s rate
limits.It scales well.It works as a library or a server.“Namespaces are one honking great idea – let’s do more of those!”A Trivial DemoThis code is explained thoroughly in the documentation. It fetches jacks first
tweet.importbrittle_witasbwfrombrittle_wit.executorsimportdebug_blocking_requestfrombrittle_witimportrest_apiAPP_CRED=bw.AppCredentials.load_from_env()CLIENT_CRED=bw.ClientCredentials.load_from_env()req=rest_api.statuses.lookup(id=20)resp=debug_blocking_request(APP_CRED,CLIENT_CRED,req)jacks_first_tweet=resp.json()print(jacks_first_tweet)
Package: brittle_wit_core
What is this?This package contains the core ofbrittle_wit, a twitter lib for python.
It works with Python 2.7, whereasbrittle_witdoes not. It’s extracted from
the main library so that you can reuse this core code for authentication
flows (e.g. on GAE).Sample Authentication Flow withrequestsfromrequestsimportrequestfrombrittle_wit_coreimport(AppCredentials,obtain_request_token,extract_access_token,redirect_url,obtain_access_token,extract_request_token)# Loads via TWITTER_APP_KEY, TWITTER_APP_SECRET environmental variables.APP_CRED=AppCredentials.load_from_env()# Get an access token.twitter_req,headers=obtain_request_token(APP_CRED)resp=request(twitter_req.method,twitter_req.url,params=twitter_req.params,headers=headers)oauth_token,oauth_secret=extract_request_token(resp.status_code,resp.content.decode('utf8'))# Redirect the user to a PIN page.url=redirect_url(oauth_token)print(url)pin=input("PIN: ").strip()# Turn their pin response into an access token.twitter_req,headers=obtain_access_token(APP_CRED,oauth_token,pin)resp=request(twitter_req.method,twitter_req.url,params=twitter_req.params,headers=headers)d=extract_access_token(resp.status_code,resp.content.decode('utf8'))print(d)
Package: brkout
# BrkOut
A prison escape game with a blend of brick breaking gameplay and innovative implementation of the same to get the look of an escape.## Screenshots and GameplayWhen you decide to escape
![alt text](/game/assets/HomeScreen.png)As you fight your way through the unbreakable wall
![alt text](/game/assets/MainGame.png)You realise that escape might not be as easy as you thought
![alt text](/game/assets/LosingScreen.png)And when you finally taste the free air after numerous attempts
![alt text](/game/assets/WinningScreen.png)## PrerequisitePython2 or Python 3 are the default languages needed for playing this game [on Linux], to check which version of Python you have, type the following in terminal:` python--version`## Downloading Brkout and PlayingYou can use the below commands.` sudoapt-getinstallpython-pippip install--upgradepip `` pip install brkout `If this does not work, then` sudo-Hpip install brkout `For more info, visit [Pygame download page](http://www.pygame.org/download.shtml)## Developing on the Game### On Linux1. Clone the branch on your local machine:` git clonehttps://github.com/thealphadollar/brkout.git`2. Make the required changes and send a Pull Request### On WindowsClone the repository by the method appropriate for the Git interface you are using.## Gameplay HelpThe game can be controlled using arrows keys or the ‘w’, ‘a’, ‘s’ and ‘d’ keys.Spacebar and enter key both act as the selection key.Spacebar or escape key can be used to pause the game.Choose the required difficulty level by clicking on it.Reset the highscore, if needed, by clicking on the ‘reset’ icon.# Enjoy The Game
Package: brlcad
# python-brlcad: Open-source solid modeling in python.Thepython-brlcadmodule provides a way to use [brlcad](http://brlcad.org/)
from inside python based on ctypes bindings. These ctypes bindings are
generated during install-time using
[ctypesgen](https://github.com/kanzure/ctypesgen).## installing` pip install-Ubrlcad `or` git clonegit@github.com:kanzure/python-brlcad.gitcdpython-brlcad/python setup.py install `### installing on windowsUse either mingw or cygwin to provide gcc during installation. There is a bug
in pip that causes a WindowsError to occur when installing this package, see
[the bug report](https://github.com/pypa/pip/pull/1263) for more details.#### mingwInstall a Windows build of gcc (probably by installing mingw and addingC:MingWbinto the PATH environment variable) and then run:`C:\Python27\Scripts\pip.exeinstall--upgradebrlcad `TODO: there may be a way to run this installation process while undermsyswithout updating the system PATH.#### cygwinAnother option is to install cygwin and use cygwin gcc. However, it is
important to clarify that there is no cygwin brlcad build. Using cygwin gcc is
just a cheap shortcut for the Windows python installation process of
python-brlcad. Mainly this trick is useful for Windows users that already have
cygwin gcc.To use cygwin gcc, start the python-brlcad install process in cygwin bash:` /cygdrive/c/Python27/Scripts/pip.exe install--upgradebrlcad `During the installation, ctypesgen will make use of cygwin gcc because of the
cygwin $PATH environment variable.There is no brlcad build that targets cygwin.## testing` nosetests `## usageSorry, not yet. Check theexamples/folder.# Known to work with..Operating systems known to work:linux distroswindowsSupport for Mac OS X is planned but not yet implemented or tested.## licenseBSD.
Package: brminer
Bagging Random Miner (BRM)Training phase:Input:T: training dataset;τ: number of classifiers in the ensemble;μ: size of training dataset to bootstrap.Output:P: the set of classifiers parameters (selected objects and dissimilarity thresholds).Training:SetPinitially empty; i.e.,P← {}.fori= 1..τdoLetTicontains a sample with a replacement ofμobjects fromT.Letδicontains the average dissimilarity between all the pairs of instances inTi.P←PU{(Ti,δi)}returnP.Classification phase:Input:x: instance to be classified;P: the set of parameters computed in the training phase.Q: queue with past classification results;σ: number of past objects to consider in the current classification.Output:Anomaly score.Classification:Lets←0 be the score computed by the classifiers.for each (Ti,δi) inPdoLetdminbe the dissimilarity betweenxand its nearest neighbor inTi.Update the score as followss←s+e^(-0.5(dmin∕δi)^2 )Average the score as followss←s∕|P|Lets′ be the average of values inQ.if |Q|=σthendequeue(Q)enqueue(s,Q)return (s′+s)/2For more information: J. Benito Camiña, M.A. Medina-Pérez, R. Monroy, O. Loyola-González, L. A. Pereyra-Villanueva, L. C. González-Gurrola "Bagging-RandomMiner: A one-class classifier for file access-based masquerade detection,"Machine Vision and Applications, vol. 30, no. 5, pp. 959-974, 2019.
Package: brnet
brnetThese is a networking tool to make running emulated systems under Linux
a little easier and more secure.I have been using simh and klh10 a lot recently to emulate old computers
and operating systems.  Networking has been a particular pain because
most of these systems require raw access to the network devices, and
that typically means running the as root.I didn't want to do that.  So I wrote brnet.What this script does is to take the interface you specify (defaulting
to eth0) and turn it into a bridge device.  The using a user and group
you specify (it defaults to pi/adm, which is correct for a PiDP-11), it
creates a number of tap interfaces (defaulting to 4), and connects them
to the bridge too.The point of doing that is so that you can run brnet with root
privileges to create network devices that another user can own and have
full control of without requiring escalated privileges.After running brnet, you can therefore use, say, thetap0interface in
a guest system as your emulated ethernet device, and run as your normal
emulator user without sudo, and still have the network interface work.Installingpip install brnet, or check out the repository and do apip install -e .You probably want to do this in a virtualenv, and if you do that,
you probably want to install a wrapper script as/usr/local/bin/brnetto activate the appropriate virtualenv and then run thebrnetcommand
(virtualenv activation will put the new stuff at the head of your$PATH).  One approach to this ishere.Then you want to drop the following into/etc/network/interfaces.dto
start the network after the physical interface comes up.  I called my
file01-phys-to-bridge.ExamplesTo run using the defaults, which should work for a Raspberry Pi running
the PiDP-11 software:brnet start.To run with a different user and group and more tap devices:brnet -u adam -g wheel -n 8 startTo shut down the bridge and put things back the way they were:brnet stopbrnet -hwill give you a help message explaining all the parameters.
Package: brnolm
BrnoLMA neural language modeling toolkit built on PyTorch.This is a scientific piece of code, so expect rough edges.BrnoLM has so far powered language modeling in the following papers:Beneš et al.Text Augmentation for Language Models in High Error Recognition ScenarioŽmolíková et al.BUT System for CHiME-6 ChallengeBeneš et al.i-vectors in language modeling: An efficient way of domain adaptation for feed-forward modelsBeneš et al.Unsupervised Language Model Adaptation for Speech Recognition with no Extra ResourcesInstallationTo install, clone this repository and exploit the providedsetup.py, e.g.:git clone git@github.com:BUTSpeechFIT/BrnoLM.git
cd BrnoLM
pip install . # or, if you don't care about environmental pollution: python setup.py installIf you want to edit the sources,pip with-eorsetup.py develop.Occasionally, a PIP version is produced, so you can simplypip install brnolmto obtain the last pre-packed version.RequirementsThe above way of installation takes care of dependencies.
If you want to prepare an environment yourself, know that BrnoLM requires:torch
    numpy
    scikit-learnExact tested versions are provided insetup.py.
Package: bro
BROThis package can access the REST API from theBRO. Currently, this package provides
functionality to request CPTs from the BRO when you provide a region of interest. The format is based on the REST API of the BRO, which is describedherefor CPTs.Current options include retrieval of the following objects:CPTs (format: bytes, dict)The package also allows export of the retrieved data in GeoJSON format.Note 1: The BRO is only available for the Netherlands, other locations are not supported.Note 2: The API of the BRO is limited and requesting large amounts of data may result in instability.InstallationpipinstallbroUseExample usage to retrieve CPTs from the BRO as dictionaries.fromdatetimeimportdatetimeimportEnvelopeimportPointimportget_cpt_characteristics_and_return_cpt_objectsbegin_date=datetime(2015,1,1).strftime("%Y-%m-%d")end_date=datetime(2023,3,3).strftime("%Y-%m-%d")# Define small square area that returns 5 valid cptslower_corner=Point(51.92269686635185,4.469594207611851)upper_corner=Point(51.923034432171065,4.470094707426648)area=Envelope(lower_corner,upper_corner)cpts=get_cpt_characteristics_and_return_cpt_objects(begin_date,end_date,area,as_dict=True)LICENSEMIT License

Copyright (c) 2023 VIKTOR

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

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

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Publishupdate changelog with version numberupdatebro/__version__.pytag with version number