Saravanan666/pypi-org huggingface dataset:
Package: bgr2grey
bgr2greybgr2grey is a Python package that provides a function for converting RGB images to grayscale.InstallationYou can installbgr2greyusing pip:pipinstallbgr2greyUsageimportcv2
frombgr2greyimportrgb_to_gray# Load an RGB imageimage=cv2.imread('path/to/your/image.jpg')# Convert the image to grayscalegray_image=rgb_to_gray(image)# Display the original and grayscale imagescv2.imshow('Original Image',image)cv2.imshow('Grayscale Image',gray_image)cv2.waitKey(0)cv2.destroyAllWindows()LicenseThis package is distributed under the MIT License. See theLICENSEfile for more information.
Package: bgraph
BGraphBGraphis a tool designed to generate dependencies graphs fromAndroid.bpsoong files.OverviewBGraph(forBuild-Graphs) is a project aimed at create build graphs fromblueprintsin AOSP and querying those graphs.In short, this project builds/uses Unified Dependency Graph for theAndroid Open Source Projectby parsing and linking modules
defined in the Android build systemSoong.Use-casesYou should use this tool if you want to find:all the dependencies of a source file in AOSP;all the sources involved in the building of a target in AOSP;common dependencies between two targets.Usage%bgraph--helpUsage:bgraph[OPTIONS]COMMAND[ARGS]...BGraph-generateandquerybuilddependencygraphes.BGraphisusedtomanipulatebuilddependencygraphsgeneratedfromblueprintfiles.Themaincommandsare:-generate:usedtogeneratesmultiplesgraphs-query:usedtoqueryapreviouslygeneratedgraphTogetmorehelp,seetheonlinedocumentation.

Options:-v,--verboseActivateverboseoutput[default:False]--install-completionInstallcompletionforthecurrentshell.--show-completionShowcompletionforthecurrentshell,tocopyitorcustomizetheinstallation.--helpShowthismessageandexit.

Commands:generateGenerateBGraph'sfromamirrordir.generate-singleGenerateaBGraphfromabranch.listListtheBGraphalreadygenerated.queryQueryaBGraph.InstallationUsing poetrypoetryinstallbgraphUsing pippipinstallbgraphUsing dockerdockerbuild-fdocker/Dockerfile-tbgraph.This will create a container withgit,repoandbgraphand will take some time (because it compiles git from the source).SeeDockerfor more instructions.Prerequisitespython3.8Optional dependencies for the builder:repogit (>25): since we're using partial-checkouts, a modern version of git is requiredat least1Goof free disk space(Optional: AOSP mirror)SeeBuilding from AOSPfor more details.DocumentationDocumentationLicenceApache-2ContributingContributions are always welcome!See theContributiondocumentation for details on all you need to know about contributing.Authorsdm (achallande@quarkslab.com)
Package: bgrm
Background RemoverThe NeedIt's been good long while since Microsoft first released a Teams version for Linux and yet, one of Teams' coolest features doesn't exist in said Linux version: removable backgrounds. As someone who uses Linux for their daily driver, this annoys me.Well, I'm an engineer, so of course, I found a solution.Using OpenCV and a v4l2loopback device (basically a virtual webcam you can write data to), I threw together a Python application that takes your normal webcam input, removes and replaces the background, and outputs that to the created video device. Problem solved :)Note, this will work anywhere WebCams are used, not just TeamsNow, the program can also be used to remove backgrounds from video files and save them as video files as well!How to UseWebCam ReplacementDependencies:x86 or x64 only as mediapipe, a dependency, doesn't support ARMAlthough, there are versions of mediapipe that may work if you have Apple Silicon or a Raspberry PiIf on ARM, you'll have to install from the GitHub source and modify pyproject.toml to use a custom mediapipe library likemediapipe-siliconormediapipe-rpi4or something elsepython >= 3.8 (3.11 is what's supported officially)pipv4l2loopbackSetup:Configure v4l2loopback (may not be necessary):Recommended something like this:export DEVICE_ARR=(`ls /sys/devices/virtual/video4linux | tr -d 'video'`); \
sudo modprobe v4l2loopback \
    devices=1 exclusive_caps=1 video_nr=${DEVICE_ARR[1]} max_buffers=2 \
    card_label=v4l2loInstall withpip install bgrmThen, you can run:Run withpython -m bgrm <options>(use--helpto see all options)Example:python -m bgrm -b ~/Pictures/Wallpapers/ni-skyline-wallpaper.png -w 320 -H 240 -s 2.0File ReplacementYou can also remove the background from video files. It works just like the WebCam, but instead of setting the--cameracli arg, you call the program like this:python -m bgrm --file_mode -i <input file> -o <output file> <other options>Build from RepoYou can also build the package yourself from source (or grab the latest version from the releases tab)To do that you need the "poetry" build system.Runpoetry buildand install the whl from the dist/ folder
Package: bground
BGROUND :: interactive background subtractionBGROUND draws an interactive plot of XY-data.The user can define and subtract backgound using mouse and keyboard.XY-data is an arbitrary text file containing two columns: [X-data, Y-data].Documentation, help and examplesPyPIrepository.GitHubrepository.GitHub Pageswithdocumentation.Versions of BGROUNDVersion 0.0.1 = an incomplete testing versionVersion 0.0.2 = the basic algorithm worksVersion 0.0.3 = a small improvement of code and docstringsVersion 0.1.0 = better arrangement of funcs in modules + semi-complete docs
Package: bgserve
bgservean extensible async background server for pythontable of contentsinstallationusagelicenseinstallationpip install bgserveusageimportpathlibimportrequestsfrombgserveimportProvider# create a providerprovider=Provider()### File (supports range requests)path=pathlib.Path("hello.txt")path.write_text("hello, world")file_resource=provider.create(path)response=requests.get(file_resource.url)assertresponse.text=="hello, world"assert"text/plain"inresponse.headers["Content-Type"]### Directory (supports range requests)root=pathlib.Path("data_dir")root.mkdir()(root/"hello.txt").write_text("hello, world")dir_resource=provider.create(root)response=requests.get(file_resource.url+"/hello.txt")assertresponse.text=="hello, world"assert"text/plain"inresponse.headers["Content-Type"]### In-memorydata="a,b,c,\n1,2,3,\n4,5,6"content_resource=provider.create(data,extension=".csv")response=requests.get(content_resource.url)assertresponse.text==dataassert"text/csv"inresponse.headers["Content-Type"]licensebgserveis distributed under the terms of theMITlicense.
Package: bg.solr
Introductionbg.solris a Solr web-frontend integrated with Plone 3/4
for querying a Solr instance filled with content frombg.crawler.RequirementsSolr 3.XPlone 3 oder Plone 4Installationaddedbg.solrto the eggs option of your buildout.cfg and
re-run buildout.Usageadd/@@solr-searchto the root URL of your Plone site in order
to see the search form (http://host:port/path/to/plone/@@solr-search).Sourcecodehttps://github.com/zopyx/bg.solrBug trackerhttps://github.com/zopyx/bg.solr/issuesSolr setupYou can use the buildout configuration fromhttps://raw.github.com/zopyx/bg.crawler/master/solr-3.4.cfgas an example how to setup a Solr instance for usingbg.crawler.Licencebg.solris published under the GNU Public Licence V2 (GPL 2)Creditsbg.solris sponsored by BG PhoenicsAuthorZOPYX Ltd.Charlottenstr. 37/1D-72070 TuebingenGermanyinfo@zopyx.comwww.zopyx.comChangelog0.2 (2011-12-13)Documentation update0.1 (2011-11-29)Initial release
Package: bg-task-queue
Background Task QueueOverviewInstallationpipinstallbg-task-queueExampleimporttimefromsrc.bg_task_queueimportBackgroundTaskQueuetq=BackgroundTaskQueue(verbose=True,max_workers=2)# add function using decorator@tq.functiondeftask_a(i):time.sleep(1)print(f'Task_a({i}) Finished')# or add manuallydeftask_b(a=0):time.sleep(3)print(f'Task_b({a}) Finished')tq.function(task_b)tq.add_task("task_a",100)tq.add_task("task_b",a=200)tq.add_task("task_a",300)tq.add_task("task_a",400)whileTrue:summary={"pending":0,"running":0,"stopped":0,"errored":0,"success":0}tasks=tq.get_all_tasks()fortintq.get_all_tasks():print(t)summary[t.status]+=1print(summary)...
[*] Worker-1 : End 71f323e7-5b25-4870-b22d-667dda0c5749
[*] Worker-1 : takes job 3472f262-8a7d-446c-a601-fb5a02284f22
[*] Worker-1 : Start 3472f262-8a7d-446c-a601-fb5a02284f22
<Task id=71f323e7-5b25-4870-b22d-667dda0c5749, status=success function=task_a, args=[100], kwargs={}>
<Task id=8220b58b-3087-43d2-a813-cd2c0c8458e0, status=running function=task_b, args=[], kwargs={"a": 200}>
<Task id=3472f262-8a7d-446c-a601-fb5a02284f22, status=running function=task_a, args=[300], kwargs={}>
<Task id=6c7c27fc-ccc5-419b-8b92-61b5738dfa51, status=pending function=task_a, args=[400], kwargs={}>
{'pending': 1, 'running': 2, 'stopped': 0, 'errored': 0, 'success': 1}
...ClassesStatus(Enum)PENDING: The task is pending execution.RUNNING: The task is currently running.SUCCESS: The task successfully completed.ERROR: The task ran into an error during execution.STOPPED: The task has been stopped.Taskid: Unique identifier for the task.func_name: The name of the function to run.args: Positional arguments for the function.kwargs: Keyword arguments for the function.status: The current status of the task. Default isPENDING.BackgroundTaskQueuedb_path: Database path for SQLite3. Default is:memory:.max_workers: Maximum number of worker threads. Default is2.verbose: Enables verbose logging. Default isFalse.falling_rate: The sleep time between each worker loop. Default is0.1.LicenseThis project is licensed under the MIT License. See LICENSE.md for more details.
Package: bgtunnel
bgtunnel - Initiate SSH tunnels in the backgroundUseful when you need to connect to a database only accessible throughanother ssh-enabled host. It works by opening a port forwarding sshconnection in the background, using threads. The connection(s) areautomatically closed when the process exits, or when explicitly callingthe `close` method of the returned SSHTunnelForwarderThread object.Notes on default values-----------------------* Bind address and host address defaults to "127.0.0.1"* SSH port defaults to 22* Bind port defaults to picking a random available one, accessible from theobject returned by the `open` functionUsage examples--------------# Enable forwarding for a MS SQL server running on the remote SSH host>>> import bgtunnel>>> forwarder = bgtunnel.open(ssh_user='manager', ssh_address='1.2.3.4',...                           host_port=1433)>>> print(forwarder.bind_port)59432>>> import somesqlpkg>>> conn = somesqlpkg.connect('mssql://myuser:mypassword@localhost:' +forwarder.port)# Enable forwarding for an old AS400 DB2 server accessible only via# the remote SSH host. Multiple ports need to be opened.>>> import bgtunnel>>> ports = [446, 449] + range(8470, 8477)>>> forwarders = []>>> for port in ports:...     forwarders.append(bgtunnel.open(ssh_user='manager',...                                     ssh_address='1.2.3.4',host_address='192.168.0.5',...                                     host_port=port, bind_port=port))>>> print(''.join(f.bind_port for f in forwarders))4464498470847184728473847484758476>>> import somesqlpkg>>> conn = somesqlpkg.connect('mssql://myuser:mypassword@localhost:446')
Package: bgvep
Read data generated within thebgvepproject.
Within that project there are two datasets, both identified by
the reference genome (e.g. hg19) and the VEP version (e.g. 88):a tabix file with the run of vep for all positions in the genomea bgpack file with only the most severe consequence type.InstallationThis project is a Python package
and can be installed withpip.
Download the source code, get into this
project directory and execute:pipinstall.UsageTo request the output of 1 or more positions, simply indicate the
chromosome, the initial and the final positions you are interested.Commad line usageExecutebgvep --helpfor getting all the information.The output is printed to the screen using tabs as separators for the indexes:bgvep--genomehg19--vep88--chromosomechr1--begin100000--end100004Adding the--most-severeflags, returns the most severe consequence type
for the 3 possible changes of the allele in that position.Python usageThe easiest way to usebgvepis to make use of the generatorsgetandget_most_severe.frombgvepimportgetfordatainget('hg19','88','chr1',100000,100004):...However, thebestway to usebgvepis using directly the readers:
theTabixand theBGPackreaders, which are context managers.frombgvep.readersimportTabixwithTabix('hg19','88')asreader:fordatainreader.get('chr1',100000,100004):...The advantage of using directly the readers is that they are not instantiated
on every call.The outputThe format of the output is:ChromosomePositionReferenceAlternateGeneFeatureFeature_typeConsequencecDNA_positionCDS_positionProtein_positionAmino_acidsCodonsExisting_variationImpactDistanceStrandFlagsSymbolSymbol sourceHGNC_IDCanonicalENSPWhen asking for themost-severeconsquence type, the output is formed
by the most severe consequente type of all the possible changes of the reference
allele. The order is always ACGT, and if the refernce allele changes to itself,
nothing is returned for it.SupportIf you are having issues, please let us know.
You can contact us at:bbglab@irbbarcelona.org
Package: bgzip
bgzip: block gzip streamsbgzipprovides streams for block gzip files.Cython is used under the hood to bypass Python's GIL and provide fast, parallelized inflation/deflation.with open("my_bgzipped_file.gz", "rb") as raw:
	with bgzip.BGZipReader(raw) as fh:
		data = fh.read(number_of_bytes)

with open("my_bgzipped_file.gz", "wb") as raw:
	with bgzip.BGZipWriter(raw) as fh:
		fh.write(my_data)Installationpip install bgzipRequirementsbgzip requiresopenmp. On MacOS
it can be installed with:brew install llvmLinksProject home pageGitHubPackage distributionPyPIBugsPlease report bugs, issues, feature requests, etc. onGitHub.
Package: bh1745
BH1745 Colour SensorMost suited to detecting the illuminance and colour temperature of
ambient light, the BH1745 senses Red, Green and Blue light and converts
it to 16bit digital values.InstallingStable library from PyPi:Just runsudo pip install bh1745Latest/development library from GitHub:git clonehttps://github.com/pimoroni/bh1745-pythoncdbh1745-pythonsudo ./install.sh0.0.4Migrate to new i2cdevice API0.0.3Automagically call setup if not called by userAllow setup() to try alternate i2c addressesAdded .ready() to determine if sensor is setup0.0.2Bumped i2cdevice dependency to >=0.0.40.0.1Initial Release
Package: bhad
Bayesian Histogram-based Anomaly Detection (BHAD)Python implementation of the BHAD algorithm as presented inVosseler, A. (2023): BHAD: Explainable anomaly detection using Bayesian histograms. Thebhadpackagefollows Scikit-learn's standard API foroutlier detection.InstallationpipinstallbhadUsage1.) Preprocess the input data: discretize continuous features and conduct Bayesian model selection (optionally).2.) Train the model using discrete data.For convenience these two steps can be wrapped up via a scikit-learn pipeline (optionally).frombhad.modelimportBHADfrombhad.utilsimportDiscretizefromsklearn.pipelineimportPipelinenum_cols=[....]# names of numeric featurescat_cols=[....]# categorical featurespipe=Pipeline(steps=[('discrete',Discretize(nbins=None)),('model',BHAD(contamination=0.01,num_features=num_cols,cat_features=cat_cols))])For a given dataset get binary model decisons:y_pred=pipe.fit_predict(X=dataset)Get global model explanation as well as for individual observations:frombhad.explainerimportExplainerlocal_expl=Explainer(pipe.named_steps['model'],pipe.named_steps['discrete']).fit()local_expl.get_explanation(nof_feat_expl=5,append=False)# individual explanationslocal_expl.global_feat_imp# global explanationA detailed toy example using synthetic data for anomaly detection can be foundhereand an example using the Titanic dataset illustrating model explanability can be foundhere.
Package: bhagavad-gita-api
Bhagavad Gita APICode for the BhagavadGita.io API, which is an app built for Gita readers by Gita readers.UsageThe Bhagavad Gita API allows any developer to use content from Gita in their apps.
This API is built with FastAPI which is based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.Documentation for this API is availaible in two interactive formats:Swagger UIRedocIf you are interested in using this API for your application, please
register an account atRapidAPIwhere you'll get both the credentials as well as sample code in your language of
choice. The API is 100% FREE to use.ProjectsHere is a list of interesting projects using this API.BhagavadGita.ioAndroid AppHave you build something with this API ? Open a "Show and tell" discussion. The maintainers will feature your project on the README if they find it interesting.Self HostingThe official API is free to use for all.
But If you wish you can self host anywhere you want.If you want to deploy your own instance,You can deploy
the API server on your system or VPS.UsingpipxNoteIf you dont havepipx, justpip install pipxpipxrunbhagavad-gita-apiOr usingdockerdockerrun-it-p8081:8081--env-file=.envbhagavadgita/bhagavad-gita-apiNow openhttp://localhost:8081/docsto see docs.
To stop the server pressCtrl+Con your keyboard.By default an in-memory SQLite database is used.
But you configure to use any SQL database of your choice.
The official version uses PostgreSQL.Looking to deploy on a cloud platform ?
We have detailed docs to deploy to the following platforms:HerokuDetaDigital OceanConfigurationHere is the list of supported environment variables.NameDescriptionDefaultTESTER_API_KEYThe API key for testing.NoneSQLALCHEMY_DATABASE_URIThe DSN for your database connection.sqlite://(in memory SQLite db)If you want to configure your deployment even more,
then please take a look at moduleconfig.py.To set the environment variables, you may simply use a.envfile where you
specify the values in the format ofKEY=VALUE.DevelopmentFeel free to use theissue trackerfor bugs and feature requests.Looking to contribute code ? PRs are most welcome!
To get started with developing this API, please read thecontributing guide.CommunityJoin theDiscord chat serverand
hang out with others in the community.You can also useGitHub Discussionsto ask questions or tell us about
projects you have built using this API.Contributors ✨Thanks goes to these wonderful people (emoji key):Anubhav Gupta💻Sanuj Sood💻Aahnik Daw💻Akshat Joshi💻Amritpal Singh💻Niku Singh💻sreevardhanreddi💻🚇This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: bhai4you-mail
Installation$ pip install bhai4you-mail && bmailFeaturesbmail, ** Generate Fresh Anonymous Mail  **inbox, ** Read Inbox Messages **How to install ?$ pkg install python -y
$ pip install bhai4you-mail
$ bmailRun ?$ bmailSpecial Features ;)[✓] No Need any API key ;)
[✓] Easy InstallationHow to Remove Bmail ?$ removebmailDisclaimerWe are not responsible for your loss by this tool.
this tool is made for Education/Learning Purpose.
Dont harm anyone using this tool.About UsCreated by Parixit Sutariya
Github : github.com/Bhai4You
Blogspot : https://bhai4you.blogspot.comGithub
Package: bhai4you-phishing
Installation$ pip install bhai4you-phishFeaturesbhai4you-phish, ** 7 powerful phishing tools installer **How to install ?$ pkg install python -y
$ pip install bhai4you-phishRun ?$ socialphish
$ weeman
$ zphisher
$ shellphish
$ blackeye
$ lockphish
$ hiddeneye

- install tool accourding your need ;)DisclaimerWe are not responsible for your loss by this tool.
this tool is made for Education/Learning Purpose.
Dont harm anyone using this tool.Usage$ toolname -h

PIP module : Parixit Sutariya
Github : github.com/Bhai4You
Blogspot : https://bhai4you.blogspot.comGithub
Package: bhaicord.py
bhaicord.pyA simple discord api wrapper made in pythonInstallationpipinstallbhaicord.py# orpipinstallgit+https://github.com/himangshu147-git/bhaicord.py.gitUsageimportbhaicordfrombhaicordimportClient,Intentsclient=Client(intents=Intents.all())@client.eventasyncdefon_ready(event):print("Bot is ready")@client.eventasyncdefmessage_create(msg:bhaicord.Message):ifmsg.content.startswith("test"):awaitmsg.send("it works fine")client.run("TOKEN")ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: bhand
IntroductionThis repository provides a command-line interface and Python package for theBrunel HandbyOpen Bionics.The main design goal is to provide a fast and reliable interface to the
firmware,Beetroot.  Motivating
use-cases are rapid prototyping and integration into more complicated
applications.DevelopmentTo install the current release, try:pip install bhandwhich usespipto install dependencies and
this Python package. Now, connect the USB cable from your Brunel Hand into your
host machine, and try:bhandIt should print diagnostics data, e.g., the CPU temperature.  Note that serial
communications usepySerial. To
obtain a help message, try:bhand --raw ?The?command is recognized by the firmware Beetroot V1.01. (In some shells,?is a special character and has to be escaped. If the above fails, try
insteadbhand--raw\?.)Current testing status formasterbranch:(for details, visitthe page on Travis CI).Bug reports and feature requests can be submitted in the issue tracker athttps://github.com/rerobots/brunel_hand_cli/issuesParticipatingAll participation must follow our code of conduct, elaborated in the file
CODE_OF_CONDUCT.md in the same directory as this README.Reporting errors, requesting featuresPlease first check for prior reports that are similar or related in the issue
tracker athttps://github.com/rerobots/brunel_hand_cli/issuesIf your observations are indeed new, pleaseopen a new
issueSecurity disclosures are given the highest priority and should be sent to Scott
<scott@rerobots.net>, optionally encrypted using hispublic key. Please do so
before opening a public issue to allow us an opportunity to find a fix.Contributing changes or new codeContributions are welcome! There is no formal declaration of code style. Just
try to follow the style and structure currently in the repository.Contributors, who are not rerobots employees, must agree to theDeveloper
Certificate of Origin. Your agreement is
indicated explicitly in commits by adding a Signed-off-by line with your real
name. (This can be done automatically usinggit commit--signoff.)LicenseThis is free software, released under the Apache License, Version 2.0.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: bharat
Bharat: Package For Data On The Largest DemocracyA package for easily working with Bharat(India) and states' metadata.All states and union territories of Bharat (India)CapitalsGST CodesAbbreviations (vehicle codes)WebsitesPostal ZonesGeographical ZonesDate of statehoodIs union territoryISO3166-2:IN codesInstallationAs usual:pip install bharatFeaturesEasy access to state information:>>> import bharat
>>> bharat.states.UP
<State:Uttar Pradesh>
>>> bharat.states.UP.abbr
'UP'
>>> bharat.states.UP.name
'Uttar Pradesh'
>>> bharat.states.UP.post_zone
2Includes union territories too:>>> bharat.states.DL.name
'Delhi'
>>> bharat.states.DL.is_UT
True
>>> bharat.states.UP.is_UT
FalseList of all states (or UTs):>>> bharat.states.STATES
[<State:Andhra Pradesh>, <State:Arunachal Pradesh>, <State:Assam>, ...
>>> bharat.states.UNION_TERRITORIES
[<Union Territory:Andaman and Nicobar Island>, <Union Territory:Chandigarh>, ...And the whole collection, if you want it:>>> bharat.states.ALL
[<State:Andhra Pradesh>, <State:Arunachal Pradesh>, <State:Assam>, ...For convenience,STATES,UNION_TERRITORIES, andALLcan be accessed directly from thebharatmodule:>>> bharat.states.STATES
[<State:Andhra Pradesh>, <State:Arunachal Pradesh>, <State:Assam>, ...
>>> bharat.STATES
[<State:Andhra Pradesh>, <State:Arunachal Pradesh>, <State:Assam>, ...States' Attributes>>> bharat.states.State.__annotations__.keys()
dict_keys(['abbr', 'capital', 'code', 'iso31662in', 'is_UT', 'name', 'post_zone', 'statehood_date', 'website', 'zone'])