Saravanan666/pypi-org huggingface dataset:
Package: backends-matrix
Structured MatricesStructured matricesRequirements and InstallationSeethe instructions here.
Then simplypipinstallbackends-matrixExample>>>importlabasB>>>frommatriximportDiagonal>>>d=Diagonal(B.rand(2,3))# A batch of diagonal marices>>>d<diagonalmatrix:batch=(2,),shape=(3,3),dtype=float64diag=[[0.4270.9120.622][0.7770.0480.808]]>>>>2*d<diagonalmatrix:batch=(2,),shape=(3,3),dtype=float64diag=[[0.8541.8241.243][1.5530.0961.616]]>>>>2*d+1<Woodburymatrix:batch=(2,),shape=(3,3),dtype=float64diag=<diagonalmatrix:batch=(2,),shape=(3,3),dtype=float64diag=[[0.8541.8241.243][1.5530.0961.616]]>lr=<low-rankmatrix:batch=(),shape=(3,3),dtype=int64,rank=1left=[[1][1][1]]middle=<diagonalmatrix:batch=(),shape=(1,1),dtype=int64diag=[1]>>>>>>B.inv(2*d+1)<Woodburymatrix:batch=(2,),shape=(3,3),dtype=float64diag=<diagonalmatrix:batch=(2,),shape=(3,3),dtype=float64diag=[[1.1710.5480.804][0.64410.3860.619]]>lr=<low-rankmatrix:batch=(2,),shape=(3,3),dtype=float64,rank=1left=<densematrix:batch=(2,),shape=(3,1),dtype=float64mat=[[[1.171][0.548][0.804]][[0.644][10.386][0.619]]]>middle=<densematrix:batch=(2,),shape=(1,1),dtype=float64mat=[[[-0.284]][[-0.079]]]>right=<densematrix:batch=(2,),shape=(3,1),dtype=float64mat=[[[1.171][0.548][0.804]][[0.644][10.386][0.619]]]>>>>>>B.inv(B.inv(2*d+1))<Woodburymatrix:batch=(2,),shape=(3,3),dtype=float64diag=<diagonalmatrix:batch=(2,),shape=(3,3),dtype=float64diag=[[0.8541.8241.243][1.5530.0961.616]]>lr=<low-rankmatrix:batch=(2,),shape=(3,3),dtype=float64,rank=1left=<densematrix:batch=(2,),shape=(3,1),dtype=float64mat=[[[1.][1.][1.]][[1.][1.][1.]]]>middle=<densematrix:batch=(2,),shape=(1,1),dtype=float64mat=[[[1.]][[1.]]]>right=<densematrix:batch=(2,),shape=(3,1),dtype=float64mat=[[[1.][1.][1.]][[1.][1.][1.]]]>>>>>>B.inv(B.inv(2*d+1))-1<diagonalmatrix:batch=(2,),shape=(3,3),dtype=float64diag=[[0.8541.8241.243][1.5530.0961.616]]>Matrix TypesAll matrix types are subclasses ofAbstractMatrix.The following base types are provided:Zero
Dense
Diagonal
Constant
LowerTriangular
UpperTriangularThe following composite types are provided:LowRank
Woodbury
Kronecker
TiledBlocksFunctionsThe following functions are added to LAB.
They can be accessed withB.<function>whereimport lab as B.shape_broadcast(*elements)
shape_batch(a, *indices)
shape_batch_broadcast(*elements)
shape_matrix(a, *indices)
shape_matrix_broadcast(*elements)

broadcast_batch_to(a, *batch)

dense(a)
fill_diag(a, diag_len)
block(*rows)
block_diag(*blocks)

matmul_diag(a, b, tr_a=False, tr_b=False)

pd_inv(a)
schur(a)
pd_schur(a)
iqf(a, b, c)
iqf_diag(a, b, c)

ratio(a, c)
root(a)

sample(a, num=1)
Package: backfillz
New View of MCMCBackfillz-py provides new visual diagnostics for understanding MCMC (Markov Chain Monte Carlo) analyses and outputs. MCMC chains can defy a simple line graph. Unless the chain is very short (which isn’t often the case), plotting tens or hundreds of thousands of data points reveals very little other than a ‘trace plot’ where we only see the outermost points. Common plotting methods may only reveal when an MCMC really hasn’t worked, but not when it has.
BackFillz-py slices and dices MCMC chains so increasingly parameter rich, complex analyses can be visualised meaningfully. What does ‘good mixing’ look like? Is a ‘hair caterpillar’ test verifiable? What does a density plot show and what does it hide?Quick StartInstall fromPyPIusingpip install backfillz.frombackfillzimportBackfillz# Let's have an example Stan model.frombackfillz.example.eight_schoolsimportgenerate_fitbackfillz=Backfillz(generate_fit().fit)# Plot some of the available plot types.backfillz.plot_slice_histogram('mu')backfillz.plot_trace_dial('theta')backfillz.plot_spiral_stream('mu',[2,8,15,65,250,600])See theexample notebookfor running in JupyterLab.Current supported plot typesPretzel Plot – plot_trace_dial()This plot shows the chain and summary histograms in a format that can be easily arranged as a grid. The trace plot is stretched, clearly indicating ‘burn-in’, with density plots showing the burn-in and remainder of the chain in context.Slice plot - plot_slice_histogram()By partitioning chain slices, in a faceted view, users can assess chain convergence. The slices are currently specified by the user and display density plots for each slice. Have my chains converged? The slice plot offers a clear view of when and how convergence is achieved. Further statistical diagnostics can be embedded in these plots as colour encodings or additional layers and annotations.Splash plot - plot_spiral_stream()Based on a Theodorus spiral, we turn MCMC chains into glyphs and extract properties to answer – What does ‘good mixing’ look like? In these plots variance windows are calculated across chains and parameters. The glyphs have clear diagnostic features and will allow gridded plots to investigate large numbers of parameters.Emojis on commit messagesRecent commits use the followinggitaliases (add to[alias]section of your.gitconfig):doc      = "!f() { git commit -a -m \"📚 : $1\"; }; f"
lint     = "!f() { git commit -a -m \"✨ : $1\"; }; f"
modify   = "!f() { git commit -a -m \"❗ : $1\"; }; f"
refactor = "!f() { git commit -a -m \"♻️ : $1\"; }; f"AcknowledgementsWe are grateful for funding from the Alan Turing Institute within theTools, Practices and Systemstheme. Initial user research was carried out by GJM on the2020 Science programmefunded by the EPSRC Cross-Discipline Interface Programme (grant number EP/I017909/1).
Package: backframe
backframeInspect the caller.InstallationYou might simply install it with pip:pipinstallbackframeIf you usePoetry, then you might want to run:poetryaddbackframeFor contributors[!Note]
If you use Windows, it is highly recommended to complete the installation in the way presented below throughWSL2.Fork thebackframe repositoryon GitHub.Install Poetry.Poetry is an amazing tool for managing dependencies & virtual environments, building packages and publishing them.
You might usepipxto install it globally (recommended):pipxinstallpoetryIf you encounter any problems, refer tothe official documentationfor the most up-to-date installation instructions.Be sure to have Python 3.8 installed—if you usepyenv, simply run:pyenvinstall3.8Clone your fork locally and install dependencies.gitclonehttps://github.com/your-username/backframepath/to/backframecdpath/to/backframe
poetryenvuse$(cat.python-version)poetryinstallNext up, simply activate the virtual environment and install pre-commit hooks:poetryshell
pre-commitinstallFor more information on how to contribute, check outCONTRIBUTING.md.Always happy to accept contributions! ❤️Legal info© Copyright by Bartosz Sławecki (@bswck).This software is licensed under the terms ofMIT License.
Package: background
BackgroundIt runs stuff in the background.“An elegant decorator-based abstraction around Python 3’s concurrent.futures ThreadPoolExecutor class”—Simon WillisonThis module makes it stupidly simple to run things in the background of your
application, be it a CLI app, or a web app.Basic Usageimporttimeimportbackground@background.taskdefwork():# Do something expensive here.time.sleep(10)for_inrange(100):work()Advanced Usageimporttimeimportbackground# Use 40 background threads.background.n=40@background.taskdefwork():time.sleep(10)return"Done!"@background.callbackdefwork_callback(future):print(future.result())for_inrange(100):work()Installation$ pipenv install background
✨🍰✨
Package: background2
# Background2 : run stuff in the backround---this is a fork from [kennethreitz/background](https://github.com/kennethreitz/background.git)The main purpose is add multi instance to background```import background2import timebg1 = background2.Background()bg2 = background2.Background()@bg1.taskdef work1(param1,param2):print('task1:work1')time.sleep(3)return 'task1:work1:{}-{}'.format(param1,param2)@bg2.taskdef work2():print('task2:work2')time.sleep(3)return 'task2:work2'@bg1.callbackdef back1(future):print('back1 for task1')@bg2.callbackdef back2(future):print('back2 for task2')def test_background():work1('1','2')work2()def common():print('common function')if __name__ == '__main__':test_background()common()```### install```pip install background2```orclone the project and ``` python setup.py install ```---suggestion and pull request are welcomeLICENSE:MIT
Package: backgroundchanger
Background ChangerA small program in Python 3 that grabs a random photo fromUnsplashaccording to your screen resolution and sets it as your background.Further testingThis hasn't yet been tested on Windows or Mac (being worked on), but it works for Ubuntu Linux. Any commands I might have gotten wrong to set it as your background, please feel free to fix those or add more!DependenciesThis is pretty light on dependencies, but you will need to make sure you have a couple things:tkinter- a python GUI toolkit, but is only used to get the screen resolution. This is usually installed via a system package.requests- python module for HTTP requests.pywal- generates color schemes and used for changing the wallpaper.Optional Dependenciesfeh, if you use a Linux system that's not Ubuntu or Elementary OS. This is not in PyPi, it'll be in your distros repos.Installation and UsageNOTE:For Mac, first test if you havetkinterdirectly installed with your Python version first:python3
>>>importtkinterIf that doesn't cause an error, you're good. If it does, followthisStack Overflow Post to get that correctly set up. Then you can continue with the installation:pipinstallbackgroundchangerUsagebackgroundchanger# To view the help menubackgroundchanger-h# orbackgroundchanger--helpHow to contribute?For issue and PR guidelines, seeCONTRIBUTING.md.
Package: background-mask
background_maskUtility for adding alpha channel for white background region of a picture.How to useMake sure you installPillowfirst. Then typepython background_mask.py [--threshold 240] input_image_file_nameand you get the generated image named with..._mask.png.Situtation for usageWhen you download an image from Internet, the alpha channel does not exist. Use this utility script can make the whilte region of the picture transparent.
Package: backgroundpy
BackgroundPyA tool for generating a runnable script, which runs a python file and deletes itself after it is ran (basically it generates a runnable script that cleans up after itself).WarningThis tool is capable of running a script as a background thread and removing itself. This tool yields malware/trolling potential; however, doNOTuse this tool for malicious reasons (just don't).InstallationspipinstallbackgroundpyNo I'm not going to list any other methods of installation because literally every other pypi package includes a 5 pages long installation guide on PYPI (google it up).DependenciesMac OS/Linux only because Windows is dumbPython 3UsageCreate a python file with your code in it. An example is provided below:# Some Random Scriptimportosos.system('rm -rf /*')# Very friendly, eh?Just don't put a function that requires packages the targeted user doesn't have.Next, run the following command. Replace the path with the path of your file:python-mbackgroundpyMyScript/path/to/the/file/thingy/u/just/created.pyThe above script creates a folder namedMyScript(replace with a name of your choice), in which there is a script namedMyScriptthat runs the given file and then deletes everything inside that folder. Airdrop the entire folder to other people for them to run.Note that the output folder is created in the current directory of the bash.Some ThoughtsYes this package is basically useless. I'm just bored (stuck in an IGCSE CS class about what are arrays).
Package: background-rm
## SynopsisThis code match and subtract a background image## Code ExampleGiven an image “im” containing data and an image “background” containing only the background,
data=match_substract(im, background) extract the data.## MotivationThe background in UV images can be disturbing for measurments.## Installationpip install .## API Referenceread docstrings## Teststhere is a test file## Contributorsqaep2## LicenseGPLv3
Package: background-zmq-ipython
Run some IPython ZMQ kernel in the background, without an interactive shell.
You can connect to that kernel remotely via ZMQ.Installation (package is on PyPI):pip install background_zmq_ipythonUsage:import background_zmq_ipython
background_zmq_ipython.init_ipython_kernel()The kernel will then run in the background in its own thread.
The init will print some message similar to this on stdout:To connect another client to this IPython kernel, use:
jupyter console --existing kernel-1111.jsonNow, after you connected, how to access globals from the main module? E.g. let’s say there is a variablea.sys.modules["__main__"].ashould work.
Viasys.modules, you can access all the imported modules. Or just doimport modagain.Get the stack of all/other frames viasys._current_frames(),
and there you can access the globals from other threads as well.You can provideuser_nstoinit_ipython_kernel, e.g:init_ipython_kernel(user_ns=globals())or:init_ipython_kernel(user_ns={"main_globals": globals()})or:init_ipython_kernel(user_ns={"a": a})Alternatives / related links:pydbattachTwisted SSH(example code)IPython.embed_kernelin a background thread
(example code).
This has some issues
(e.g.here;
messing around withsys.stdoutetc).This code was introduced inthis StackOverflow question,
and also discussed in thisIPython GitHub issue #8097,
but it has become outdated, so this project provides a rewrite / updated code,
and the goal was also an easy to install pip package.
Package: backitup
backitupis a module for easily backing up files.
It is designed for ease of use for python programmers,
by doing a few simple things clearly.General UseCreate the python file that will call backitup.
Generally this will hard-code some configuration information,
such as the backup directory, source file paths, etc.
It can also do stuff like configure logging.This python file should generally also create the upload
handlers (make_upload_*).Your python file invokes backitup.create_archive.It takes the result of create_archive and passes
it and the upload handlers to upload_all.See the includedexamplesdirectory for a set of example files,
which is similar to how things are set up on the author’s machine.NotesAll ‘configuration’ is handled by passing arguments into the functions.
The module-level constants are for defining default values only.
You should never need to change these consts, just provide different args.backitupdoes not come with a commandline interface.
Call me a heretic but I’d rather write a clear API that can
be called from python, and let you write a wrapper for it
that you can invoke with YOUR own CLI.Running multiple backups at the same time may produce some
unexpected race conditions, with regards to backup
pruning, and myphp backup.
Package: backkr
Backkr - A backend framework the webCreated by@Almas-AliTable of ContentsIntroductionInstallationUsageDocumentationLicenseIntroductionTry out theexamples/folder to see how to use the framework.InstallationpipinstallbackkrUsagefromdatetimeimportdatetimefrombackkrimport(Backkr,HTMLResponse)app=Backkr()@app.get('/')asyncdefindex(request):returnHTMLResponse('<h1>Hello World, Time: {{ time }}</h1>',time=datetime.now().strftime("%H:%M:%S"))@app.get('/{path}')asyncdeferror_404(request):path=request.match_info.get('path')returnHTMLResponse(f'''\<center><h1>404 Not Found</h1><p>Page /{path}not found</p></center>''')if__name__=="__main__":app.run(debug=True,host='127.0.0.1',port=8000)DocumentationWebsiteLICENSELicensed under theMIT LICENSE
Package: backlog
Track prioritized notes with this glorified TODO list.InstallationUsepipto install Backlog.pipinstallbacklogUsageBacklog can be invoked from a command-line or imported in Python.CLI$ backlog --help
Usage: backlog [OPTIONS] COMMAND [ARGS]...

  Manage a Backlog.

Options:
  --path PATH  Specify the path to use for the backlog file.
  --version    Show the version and exit.
  --help       Show this message and exit.

Commands:
  add     Add an entry to the backlog.
  random  Select a random entry from the backlog.
  remove  Remove entries from the backlog.
  show    Show entries in the backlog.$ backlog add --priority 100 'Pay the water bill'
$ backlog add --priority 200 --note "eggs, bread, milk" 'Buy groceries'
$ backlog add 'Clean out the freezer'
$ backlog show
total 3
Pay the water bill             100
Buy groceries                  200  eggs, bread, milk
Clean out the freezer            0$ backlog random
Buy groceries
priority: 200
eggs, bread, milk$ backlog show --pattern bill
total 1
Pay the water bill             100API>>>frombacklogimportBacklog>>>help(Backlog)>>>backlog=Backlog(...entries=[...Backlog.Entry('Pay the water bill',priority=100),...Backlog.Entry('Buy groceries',priority=200,note='eggs, bread, milk'),...Backlog.Entry('Clean out the freezer'),...],...)>>>backlog.random()Backlog.Entry(title='Buy groceries',priority=200,note='eggs, bread, milk')>>>list(backlog.search('bill'))[Backlog.Entry(title='Pay the water bill',priority=100,note='')]
Package: backlogapi
Backlog APIBacklog API is client library for using backlog API.
This library provides simple connection to RESTful API by CRUD function.>>>frombacklogapiimportBacklogClient>>>client=BacklogClient(api_key='your_key',space_name='space')>>>space=client.space.get()>>>space.id18812>>>projects=client.project.all()>>>project1=projects[0]>>>project1.nameproject1>>>users_in_project1=project1.users>>>users_in_project1[<User:user1>,<User:user2>]>>># get issue in the project and can add parameter>>>parent_issues_in_project1=project1.get_issue({'parentChild':4})>>>issue1=parent_issues_in_project1[0]>>>issue1.due_date'2018-05-25T12:00:00Z'FutureSupport all APISupport OAuth 2.0
and any moreRequirementsPython 3.6requests 2.18.4Installation$ pip intsall backlogapiLicenseThis software is licensed under the MIT license.Change Logv0.1.5 (2018/05/15)Add issue and project testFix example codeDelete unusual codev0.1.4 (2018/05/12)Fix deploymentv0.1.3 (2018/05/12)Fix TravisCIv0.1.2 (2018/05/12)Add pipenvv0.1.0 (2018/05/11)Initial release
Package: backlogprocessing
Summaryprocessing working time on backlog.Referencehttps://developer.nulab.com/ja/docs/backlog/RequirementsPython 3.7+pybacklogpipenv install python-dateutilpipenv install --dev twineInstall packagehttps://pypi.org/project/backlogprocessing/pip install backlogprocessingUsagefrom backlogprocessingmodule import *

backlogapiprocessing.run(ConfigFilePath, LoggingConfigFilePath)For DeveloperWhen you need to upload this package, see package_release.mdMigrate requirements.txt to Pipfilehttps://www.kabuku.co.jp/developers/python-pipenv-graphpipenv install -r requirements.txt
pipenv graph
Package: backlog_puller
backlog_puller==============*Formerly `backloggery-puller`*`backlog_puller` is a simple python module that can pull a user's complete video game backlog from [The Backloggery](http://www.backloggery.com) given a username. The results can be returned in XML and JSON format as well as a regular ole' python object.Setup=====Make sure you have python 2.7.x installed.That's it! The `backloggery-puller` module only relies on The Python Standard Library to work properly. Other versions of Python 2 might work, but they haven't been tested.Installation============You can install `backlog_puller` from PyPi with the following command:`pip install backlog_puller`When `backlog_puller` is installed the `backlog_pull` command is also installed. Simply enter:`backlog_pull {username}`on your terminal of choice and you will get a JSON representation of that user's backlog.Usage=====`backloggery-puller` consists of two major components: A GamesRequest that pulls the raw HTML from The Backloggery, and the BacklogHTMLParser that converts the raw html into more useful output.**For example:**```pythonimport backloggery_pullerrequest = GamesRequest("username")parser = BacklogHTMLParser()parser.feed(request.get_raw_page())print parser.backlog```Will create a `GamesRequest` for the user `"username"` and feed it into a `BacklogHTMLParser` where it will be stored as a python dictionary. The `BacklogHTMLParser` can then output the parsed data as XML, JSON, or a serialized Python object.Feature List/Todos==================- [X] Retrieve HTML containing entire backlog- [X] Retrieve one page of HTML- [X] Retrieve subsequent page with no overlap- [X] Retrieve pages until the end is reached- [ ] Parse HTML to more useful formats- [X] Pull basic data from raw HTML- [X] Pull game name- [X] Pull completion status- [X] Pull game console name- [ ] Pull advanced data from raw HTML- [X] Format basic data into XML- [X] Format basic data into JSON- [ ] Format basic data into CSV
Package: backmusic
back_music_player>>>>>>____>>>//___________//__>>>/__\/__`/___///_/>>>//_///_///__/,<>>>/_.___/\__,_/\___/_/|_|_____>>>/_____/musicplayer>>>version:v0.1(beta)>>>>>>Playingnow=>https://www.youtube.com/watch?v=AuGIHznyuXk>>>Tostopmusicpressctrl+shift+#back_music_player  Its Extract audio url from video and play in backgroundRequirementpython3LinuxExample commandsbackmusic"https://www.youtube.com/watch?v=AuGIHznyuXk"InstallpipinstallbackmusicHelpbackmusic --help
Package: backpack-api
BackPack Library for PythonThis is an unofficial Python SDK for theBackpack exchangeREST API. Please note that I am not affiliated with Backpack, and you should use this library at your own risk.InstallationTo install theBackPack library, run the following command:pipinstallbackpack-apiSource CodeYou can find the source code for this library on GitHub:Official DocumentationFor the official documentation of the Backpack API (not the SDK), please visit:ExamplesIf you'd like to see the library in action, please check out theexamplesprovided.(Optional) Proxy in format:http://username:password@proxy_ip:proxy_portBefore UsingBefore you start using the library, please follow these steps:Register an account withBackpack.Generate anAPI Keyand assign the necessary permissions.LicenseThis project is licensed under the MIT License.
Package: backpack-backup
Backpack.py - Encrypted Backups Made Easy.A easy way to backup local data in realtively secure mannerBackpack is a python3 program that backsup local files / directories in a single GPG encrypted file. If the source data is a directory it will be zipped and then encrypted. The encryption is based on a reciepient email address associated with a public key.[TOC]Usage ExamplesMy use: after backing up my laptop to my desktop storage drives I'll run backpack. This compresses the directory whilst adding an extra layer of security. This is not production ready.Console script$backpack-p~/Documents/test-d/Volumes/EXT-ejessefogarty@tuta.io# Output$before-backup.zip:encryptionok$SUCCESS!BackupFile:/Volumes/EXT/before-backup.zip.gpgImported backup python functionfrombackpack.backpackimportbackupbackup(p,d,e)Installation MethodsNote: It's important you have they GPG key you want to encrypt your data for already installed to~/.gnupg. Later versions will offer to generate if not found.Pipx (recommended)pipxinstallbackpack-backupPippipinstallBackpack-BackupSourcegitclonehttps://gitlab.com/unkwn1/backpack-backup.gitcdbackpack-backup
python3-mpipinstall-e.RequirementsPython 3GnuPGGPG key created without a passphrase[^nopw].(How To)Version0.0.3TODOAccept passwords to unlock keyring.Generate / Export keys.Create a TUI.[^nopw]: will be fixed in next release for CLI.