Saravanan666/pypi-org huggingface dataset:
Package: babycat
Babycat is an audio decoding and manipulation libraryFeaturesDecoding, resampling, and encodingBabycat's core feature set includes:decoding MP3, FLAC, and WAV.resampling audio to different frame rates.encoding waveforms to WAV.Bindings for Rust, Python, WebAssembly, and CBabycat can be used from the following target languages:Rust. The majority of Babycat is written in Rust, with the exception of a few C dependencies likelibsamplerate.Python. Babycat's Python bindings allow you to decode, resample, and encode audio without being slowed down by Python's Global Interpreter Lock (GIL). Babycat also integrates with Jupyter, allowing you to play and listen to audio streams decoded by Babycat inside of a Jupyter notebook.WebAssembly. Babycat generates JavaScript/WebAssembly bindings that can run either in a web browser or in Node.js.C. Babycat exposes a C API, which is useful for both creating audio analysis projects in C or creating Babycat bindings for languages not mentioned above.Effective multithreading and parallelismBabycat is designed to parallelize the decoding of many audio files across multiple CPU cores. Babycat's Python bindings allow for parallel audio decoding without being slowed down by Python's Global Interpreter Lock.Open source under the MIT licenseThe audio ecosystem is full of expensive proprietary software packages, or (L)GPL-licensed code that restricts how you can use it. In contrast, Babycat is licensed under the MIT license, allowing you to use Babycat any way you want for free.Babycat is battle-tested in industryBabycat was built at and is actively maintained byNeocrym, a record label that uses artificial intelligence to find and promote the world's greatest musicians. Neocrym uses Babycat to decode millions of songs as part of audio feature engineering pipelines for machine learning models.Learn moreSource code and issuesYou can find Babycat's source code atgithub.com/babycat-io/babycat.API documentation and releasesbabycat.iois our main documentation website. You can find documentation and releases for each binding at:BindingDocumentationReleasesRustdocs.rs/babycatcrates.io/crates/babycatPythonbabycat.io/api/pythonpypi.org/project/babycatWebAssemblybabycat.io/api/wasmnpmjs.com/package/babycatCbabycat.io/api/cNo releases yet. You can compile from source.TutorialsYou can learn more about how to use Babycat from our long-form tutorials:Audio terminologyInstallation/development requirementsUsing BabycatContributing to BabycatAcknowledgementsThe first version of Babycat was an internal project at Neocrym written byRitik MishraSince then, the code has been extended and open-sourced byJames Mishra.Babycat is built on top ofmanyhigh-quality open source packages, including:Symphoniafor audio decoding.libsampleratefor high-quality audio resampling.Houndfor WAV encoding.PyO3for generating Python bindings.cbindgenfor generating C bindings.wasm-bindgenfor generating WebAssembly bindings.Babycat's goal is to provide a simple and consistent API on top of the existing audio ecosystem, without sacrificing performance, portability, or permissive licensing.
Package: babylog
babylogSupported python versionsThe babylog Python library is compatible withPython version 3.8 and above. It is recommended to use the latest version of Python for best performance and stability. If you are using an older version of Python, you may need to upgrade your Python installation in order to use babylog. You can check your Python version by running the commandpython --versionin your command prompt or terminal.InstallationLike most python packages, run:pipinstallbabylog
Package: babyonemoretime
Kills python + all subprocesses, restarts with the same args, Windows only, works with pyinstallerpip install babyonemoretimefrombabyonemoretimeimportrestart_everythingfromtimeimportsleepimportsubprocessimportsyssleep(4)ifsys.argv[1]=="n":subprocess.Popen("notepad.exe")else:subprocess.Popen("word.exe")sleep(4)restart_everything(pyfile=__file__,sysarv=sys.argv,restart=False)# kills everythingrestart_everything(pyfile=__file__,sysarv=sys.argv,restart=True)# kills everything and restarts# python.exe resa.py n
Package: babyplots
babyplots - Easy, fast, interactive 3D visualizationsBabyplots is an easy to use library for creating interactive 3d graphs for exploring and presenting data. This is the python API that allows you to create babyplots visualizations in Jupyter notebooks.Find the full documentationhere.InstallYou can install the babyplots package using pip:pipinstallbabyplotsUsageOnce imported, you can create a babyplots visualization using the Babyplot class and adding plots to it. To display your visualization, simply call the object:frombabyplotsimportBabyplotbp=Babyplot()bp.add_plot(coordinates,"pointCloud","categories",clusters,{"colorScale":"Paired"})bpBelow is a minimal example using the Iris data set:importnumpyasnpfromsklearnimportdecompositionfromsklearnimportdatasetsfrombabyplotsimportBabyplotnp.random.seed(5)iris=datasets.load_iris()X=iris.datay=iris.targetiris=datasets.load_iris()X=iris.datay=iris.targetbp_iris=Babyplot(background_color="#262626ff")bp_iris.add_plot(X,"shapeCloud","categories",y,{"shape":"sphere","colorScale":"Set2","showAxes":[True,True,True],"axisLabels":["PC 1","PC 2","PC 3"]})bp_irisYou can see this example (and a few more) in a demo notebookhere.Full DocumentationFor the complete documentation of babyplots and its python API, please visithttps://bp.bleb.li/documentation/python.Support, Questions, Feedback, ...Join ourDiscord server!Support the work on babyplotsUsing babyplots will always be free for everybody. But if you really like it and want to show your appreciation, you may buy us a coffee :)Also see:babyplots_lib, the underlying javascript libraryBabyplots as anR packageLibraries used in babyplots:Babylon.js, the rendering engineChroma.js, the color conversion libraryCCapture.js, for capturing gifsAuthorBabyplots was created byNils TrostLicenseReleased under theApache 2.0 License.Find the licenses of the included librarieshere. Make sure to include this file if you use babyplots in your project.
Package: baby-shap
Baby Shap is a stripped and opiniated version ofSHAP (SHapley Additive exPlanations), a game theoretic approach to explain the output of any machine learning model by Scott Lundberg. It connects optimal credit allocation with local explanations using the classic Shapley values from game theory and their related extensions (seepapersfor details and citations).Baby Shap solely implements and maintains the Linear and Kernel Explainer and a limited range of plots, while limiting the number of dependencies, conflicts and raised warnings and errors.InstallBaby SHAP can be installed from eitherPyPI:pip install baby-shapModel agnostic example with KernelExplainer (explains any function)Kernel SHAP uses a specially-weighted local linear regression to estimate SHAP values for any model. Below is a simple example for explaining a multi-class SVM on the classic iris dataset.importbaby_shapfromsklearnimportdatasets,svm,model_selection# print the JS visualization code to the notebookbaby_shap.initjs()# train a SVM classifierd=datasets.load_iris()X=pd.DataFrame(data=d.data,columns=d.feature_names)y=d.targetX_train,X_test,Y_train,Y_test=model_selection.train_test_split(X,y,test_size=0.2,random_state=0)clf=svm.SVC(kernel='rbf',probability=True)clf.fit(X_train.to_numpy(),Y_train)# use Kernel SHAP to explain test set predictionsexplainer=baby_shap.KernelExplainer(svm.predict_proba,X_train,link="logit")shap_values=explainer.shap_values(X_test,nsamples=100)# plot the SHAP values for the Setosa output of the first instancebaby_shap.force_plot(explainer.expected_value[0],shap_values[0][0,:],X_test.iloc[0,:],link="logit")The above explanation shows four features each contributing to push the model output from the base value (the average model output over the training dataset we passed) towards zero. If there were any features pushing the class label higher they would be shown in red.If we take many explanations such as the one shown above, rotate them 90 degrees, and then stack them horizontally, we can see explanations for an entire dataset. This is exactly what we do below for all the examples in the iris test set:# plot the SHAP values for the Setosa output of all instancesbaby_shap.force_plot(explainer.expected_value[0],shap_values[0],X_test,link="logit")
Package: babysploit
Installation Instructions:Using Pipsudo apt-get update
sudo apt-get upgrade
sudo apt-get install exploitdb netcat nmap perl php7.0 
pip3 install babysploit
babysploitIn order to usesearchcommand you must follow stepshereto install the searchsploit binary!Building From Sourcesudo apt-get update
sudo apt-get upgrade
sudo apt-get install exploitdb netcat nmap perl php7.0
git clone https://github.com/M4cs/BabySploit.git
cd BabySploit/
python3 setup.py install
babysploitDocker Run Commanddocker run --rm -idt --name babysploit xshuden/babysploit    # container is deleted when you're done
OR
docker run -idt --name babysploit xshuden/babysploitGetting Started:Setting Configuration Values:BabySploit uses ConfigParser in order to write and read configuration. Your config file is automatically
generated and located at./babysploit/config/config.cfg. You can manually change configuration settings
by opening up the file and editing with a text editor or you can use the set command to set a new value for
a key. Use the set command like so:set rhost
>> Enter Value For rhost: 10
>> Config Key Saved!If before running this command the rhost key had a value of 80, the rhost key after running this command has a
value of 10. You can also add configuration variables to the config by using the set command with a new key after it
like so:set newkey
>> Enter Value For newkey: hello
>> Config Key Saved!Before running this there was no key named "newkey". After running this you will have a key named "newkey" in your config
until you use theresetcommand which resets the saved configuration.Running A ToolIn order to run a tool all you have to do is enter the name of the tool into BabySploit. You can use thetoolscommand
to display a menu with all the currently available tools. If we run tools we get the depiction:*this depiction may be outdated*This menu will display the tools available and the description of each tool. To run a tool simply enter the tool name
into BabySploit. Ex:ftpbruteforce- runs the ftpbruteforce tool.Features (Current, In The Works, Planned):Visitproject board for tools.Information GatheringExploitationPost ExploitationBruteforcingPhishingCryptography/StenographyInformation Gathering:NmapIP InfoTcpdump (In The Works)Datasploit (In The Works)Censys LookupDNS LookupRaccoonCloudflare BypasserExploitation:SearchsploitReverseShell WizardFTP Buffer Overflow ScanWPSeku WordPress Vuln ScannerPost Exploitation:In The WorksBruteforcing:FTP BruteforcerWPSeku WordPress Login BruteforcePhishing:BlackEye PythonCrypto/Stegano:MetaKillerPDFMetaContributingFeel free to contribute by making plugins or fixing bugs with a Pull Request. All contributions are helpful and will help make this a great tool.Licensed UnderMIT.Copyright (c) 2018 Syndicated Intelligence
Package: baby-steps
Baby StepsBDD steps for test markup. Just for readability.Installationpip3installbaby-stepsUsageimporthttpxfrombaby_stepsimportgiven,when,thendeftest_status_code():withgiven:code=200withwhen:resp=httpx.get(f"https://httpbin.org/status/{code}")withthen:assertresp.status_code==codeNamed Stepsimporthttpxfrombaby_stepsimportgiven,when,thendeftest_status_code():withgiven("status code"):code=200withwhen("user requests a resource"):resp=httpx.get(f"https://httpbin.org/status/{code}")withthen("it should return expected status code"):assertresp.status_code==codeHooksfrombaby_stepsimportgiven,then,whenfrombaby_steps.hooksimportadd_hookdeftest():withgiven("status code"):passwithwhen("user requests a resource"):passwiththen("it should return expected status code"):passdefhook(step,name):print(step,name)add_hook(hook)test()# <class 'baby_steps.Given'> 'status code'# <class 'baby_steps.When'> 'user requests a resource'# <class 'baby_steps.Then'> 'it should return expected status code'Advancedfrombaby_stepsimportwhenfrombaby_steps.hooksimportadd_hookdeftest():withwhen:print("when")defhook(step,name):print("before",step)yieldprint("after",step)add_hook(hook)test()# before <class 'baby_steps.When'># when# after <class 'baby_steps.When'>Custom Stepsfrombaby_stepsimportStepclassAndThen(Step):passand_then=AndThen()withand_then("smth"):pass
Package: bac-bank-parser-gt
BAC ScrapperPython library to scrap BAC WebsiteThe intended use of this library is to make it easy to access BAC bank data to allow the automatisation of processes that currently banks doesn't allow.How to use itInstallationpip install bac-scrapper-gtIf you are using requirements.txt just addbac-scrapper-gtinto the fileUsagePrecautionsDon't access to BAC website or mobile app while executing some script usign this library.Login with the library will fail if you are logged in from the website or mobile app.LoginThe recommended method for login is usingwithstatement of Python. We initialize the class in the with and will make automatically login with the provided credentials and will logout after finishing all the work and if some exception happens we ensure that logout method is called.frombac_bank_gtimportBACBank,UserPasswordBankLogincredentials=UserPasswordBankLogin(username="ENTER YOUR USERNAME",password="ENTER YOUR PASSWORD")withBACBank(credentials)asconnection:# Do your work here# We are logout nowGet accountsfrombac_bank_gtimportBACBank,UserPasswordBankLogincredentials=UserPasswordBankLogin(username="ENTER YOUR USERNAME",password="ENTER YOUR PASSWORD")withBACBank(credentials)asconnection:accounts=connection.fetch_accounts()# Fetch all accountsforainaccounts:print(a)Get movementsWe can retrieve the movements of an account usingfetch_movementsmethod inBACBankAccountimportdatetimefrombac_bank_gtimportBACBank,UserPasswordBankLogincredentials=UserPasswordBankLogin(username="ENTER YOUR USERNAME",password="ENTER YOUR PASSWORD")withBACBank(credentials)asconnection:accounts=connection.fetch_accounts()forainaccounts:mov=a.fetch_movements(datetime.date.today()-datetime.timedelta(days=60),datetime.date.today()+datetime.timedelta(days=1),)forminmov:print(m)LogoutIt's important to logout after you finish your operations otherwise you can lock yourself and that won't allow you to login from the website, that's due security protections of BAC.Even thoughwithstatement is the recommended way to make sure logout method is called. You can also execute it manually.bank=BACBank(credentials)try:bank.login()# Do your workexcept:passfinally:bank.logout()ContributingFork itCreate your feature branchCommit your changesPush your branchCreate a pull requestFAQWhy I need to enter my credentials? It is safe?We need your credentials to authenticate in the bank, those credentials are not stored in any place. This is open source library so you can check the code.Can you make some program for me using this library?Of course, this library provides a base for another utilities and potentially any thing that is on the website of BAC is under subject for automatization, if you need some customization or build a program on top of this library please contact me at dev at csimon (dot) dev and I will be happy to help you.
Package: baccoemu
THE BACCO EMULATORSbaccoemu provides a collection of emulators for large-scale structure statistics over a wide range of
cosmologies.InstallationFollow detailed instructions athttps://baccoemu.readthedocs.io/en/latest/#installationAnyway, a quick installation should boil down topipinstall.[--user]UsageFollow detailed instructions athttps://baccoemu.readthedocs.io/en/latest/#quickstartYou can also see an example in this same folder in the file example.pyCredit our workIf you use baccoemu, please cite our papers:thelinear cold- and total-matter power spectrum <https://arxiv.org/abs/2104.14568>_thenonlinear cold-matter power spectrum <https://arxiv.org/abs/2004.06245>_themodifications to the cold-matter power spectrum caused by baryonic physics <https://arxiv.org/abs/2011.15018>_For more details, visit ourour website <http://bacco.dipc.org>_LicenseMIT
Package: bace
baceA deck of Naive Bayes algorithms with sklearn-like API.AlgorithmsComplement Naive BayesNegation Naive BayesUniversal-set Naive BayesSelective Naive BayesInstallationYou can install this module directly from GitHub repo with command:python3.7 -m pip install git+https://github.com/krzjoa/bace.gitor as a PyPI packagepython3.7 -m pip install baceUsagebaceAPI mimicsscikit-learnAPI, so usage is very simple.frombaceimportComplementNBfromsklearn.datasetsimportfetch_20newsgroupsfromsklearn.feature_extraction.textimportCountVectorizervectorizer=CountVectorizer()# Train setnewsgroups_train=fetch_20newsgroups(subset='train',shuffle=True)X_train=vectorizer.fit_transform(newsgroups_train.data)y_train=newsgroups_train.target# Test setnewsgroups_test=fetch_20newsgroups(subset='test',shuffle=True)X_test=vectorizer.fit_transform(newsgroups_test.data)y_test=newsgroups_test.target# Scorecnb=ComplementNB()cnb.fit(X_train,y_train).accuracy_score(X_test,y_test)DocumentationThe full documentation is athttp://bace.rtfd.org.
Package: bacinet
bacinetHelmet-like http response Headers for FastAPI.This is alpha software lacking testing and proper documentation. Use at your own risk!Basic usageInstall package viapip install bacinet.In your code, import apply from the package and add it as a middleware to your app:frombacinetimportapplyfromfastapiimportFastAPI,Requestapp=FastAPI()@app.middleware("http")asyncdefadd_bacinet(request:Request,call_next):response=awaitcall_next(request)apply(response.headers)returnresponseAlternatively, you can use an ASGI-conformant Middlware:frombacinetimportBacinetMiddlewareapp=FastAPI()app.add_middleware(BacinetMiddleware)To change the default options, import and change the options dictionary from bacinet:frombacinetimportoptionsoptions["X-DNS-Prefetch-Control"]="on"You can also import individual header functions (likex_download_options) and apply those on your own applicator function that can be provided to BacinetMiddleware's constructor.HeadersIn it's standard form, the following headers will be set or removed by the middleware:HeaderDefaultDescriptionOrigin-Agent-Cluster?1https://github.com/WICG/origin-agent-clusterX-Content-Type-OptionsnosniffPrevents MIME type sniffing attacksX-XSS-Protection1Enables XSS filtering and page sanitation in the browserX-Powered-ByremovedHeader gets removed to hinder server identificationX-Download-OptionsnoopenPrevent automated opening of downloads in legacy browsersX-DNS-Prefetch-ControloffPrevents general DNS prefetching for linksCross-Origin-Resource-Policysame-origindisallow cross-origin no-cors requestsX-Frame-OptionsDENYDeny embedding in other sitedCross-Origin-Opener-Policysame-originDeny sharing browsing context with cross-origin documentsX-Permitted-Cross-Domain-PoliciesnoneDisallow document embedding of the resourceCross-Origin-Embedder-Policyrequire-corphttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-PolicyReferrer-Policyno-referrerDo not send referrer headersContent-Security-Policysee belowRestrict resource accessStrict-Transport-SecuritymaxAge=15552000;includeSubDomainsMake sure that the site is only accessed via httpsDefault content-security policiesThe following content-security policies are applied in the default setting:default-src 'self';base-uri 'self'font-src 'self' https: data:form-action 'self'frame-ancestors 'self'img-src 'self' data:object-src 'none'script-src 'self'script-src-attr 'none'style-src 'self' https: 'unsafe-inline'upgrade-insecure-requests
Package: baciphacs
This library is designed for the kind of (desesperate) situation where
you want to display bar charts but with the constraint that your HTML
document must not depend on additional files or remote webservices.baciphacs will use basic HTML code with some bits of CSS style embeded
in tags, to display a reasonably readable chart.If you need pretty or advanced graphs and don’t have any strict
constraints on your HTML’s dependency, many libraries exists that
generate much much better looking graphs.baciphacs is licensed under the 2 close BSD License,
and more detailed information about it can be found at
GitHub:https://github.com/tibonihoo/baciphacs.It is tested on Travis-CI:https://travis-ci.org/tibonihoo/baciphacsExample for horizontal bar chartsCode sample:from baciphacs import DataSample
from baciphacs import GenerateHTMLHorizontalBarChart

data = [("ba",3,2),("c",6,1),("i",2,1),("p",4,1),("h",4,1),("a",3,1),("cs",3,2)]
dataSamples = [DataSample._make(t) for t in data]
print GenerateHTMLHorizontalBarChart(dataSamples,numStdev=2,color="blue")The Python code above will generate an HTML snippet that renders like a bar chart:http://htmlpreview.github.io/?https://github.com/tibonihoo/baciphacs/blob/master/doc/index.html
Package: back
Backbone for PyTorch training loopWill try to keep it minimalistic.pip install backfrombackimportBoneFeaturesProgress barCheckpoints saving/loadingSchedulersTensorboard loggingEarly stoppingMultiple GPUsTODOLearning Rate FinderNotebook exampleDocs/testsDockerdocker build -t backbone_pytorch .orsudo docker pull digitman/backbone_pytorch:latestExamplesSRMhttps://github.com/EvgenyKashin/SRMnet
Package: backasa
(sudo) pip install backasaThe goal of this tool is to provide a minimal CLI backup/mirroring tool
for Picasa Web Albums.UsageQuickstartThis will initiate or sync an existing backup of all picasa web albumns
for this user, into/target/of/backupbackasa -e your@gmail.com -p password1 -t /target/of/backup/ backupFull CycleSetup- Setup backup directory and store your credentialsmkdir backup-target
cd backup-target
backasa setupBackup- routinely run the backup (cron, etc..)cd backup-target
backasa backupCleanup- Remove old versions of files and deleted filescd backup-target
backasa cleanupOptions--emailor-eManually provide account email on the command line--passwordor-pManually provide password on the command line--limitor-lProvide a time limit (in hours) to run.Accepts floating points (-l0.5for 30 minutes, etc..)This is helpful if you want to gradually catch up your backups
during off peak timesEx. Cron job starts at 1 AM, using-l4it will stop ~ 5 AMbackasa will pick up where it left off for the next run--targetor-tSpecify the target backup directoryDefaults to the current working directory--notifyor-nSend an email to the account upon completion or failureincludes job log--helpor-hBuilt in help documentationAuthentication:Backasa handles user authentication one of two ways, specified as
command-line arguments (--emailand--password), or via a.configfile in the backup directory generated by thesetupaction. This.configfile is stored with the same level of security
as your private ssh keys.If you are using Google 2-step Verification, you will need to create an
application specific password for backasa and use it in your setup.Manual Garbage CollectionBy default Backasa does not delete files. As new file versions come in
older versions are marked as.oldand are left on the file system
along side their newer counterparts. Files deleted from picasa are left
as is in your backups. Thecleanupaction is used to remove old
versions of files and scan picasa for deleted files to remove from your
file system.
Package: backblast
This is a package that has useful machine vision for use with CarsCHANGE LOGRELEASE 10.0.0.1  (7/27/2021)First Release\RELEASE 20.0.0.2 –> 7/27/2021Just wanted to test some things outreally didn’t don anything\-RELEASE 3
-0.0.0.3–> 7/27/2021
-Just wanted to test some things out
-really didn’t don anything