Saravanan666/pypi-org huggingface dataset:
Package: batik
Batik is a Python framework for simplifying dataflow programming.It’s basically a bunch of glue code for connecting steps in a data pipeline,
with support for stateful actors, multithreading, and model serving.Hot-reload sort of works too, but I’m still ironing out the kinks.I wrote Batik because I hated having to screw around with initializing threads, queues,
handling IPC, and having to decipher just what a data science or signal processing
pipeline was doing from a giant block of imperative code.In Batik, you implement processing steps, or layers, on their own,
and stitch them together in batik.yaml, for an approach more resembling gnuradio or simulink without the gui.Terminology:Manifest: The complete setup of what to run/serve. Read from batik.yaml.Layer: A single processing step in a pipeline. Takes some data as a parameter,
operates on it, and returns some data.Endpoint: A sequence of one or more layers. Used as an api endpoint for model serving.
May be invoked dynamically from other layers to do things like fan-out based on value etc.Actor: A stateful class, initialized at runtime. The methods of the class may be
used as layers or daemons.Daemon: A generator function that runs at startup. Each generated value is passed to a
specified endpoint, possibly through some layers.See examples for more.Batik is kind of a mess at the moment. If you want to contribute, I’ll buy you a beer.
Package: batinfo
A simple Python module to retrieve battery information on Linux-based operating system.
No ACPI or external software is needed.
Only the Linux kernel and its/sys/class/power_supplyfolder.A simple example says more than thousand words:In [1]: import batinfo
In [2]: bat = batinfo.Batteries()
In [3]: bat
Out[3]: <batinfo.Battery.Batteries at 0x31c87d0>
In [4]: bat.stat
Out[4]: [{“status”: “Full”, “capacity”: 50, “name”: “CMB1”, “uevent”: “POWER_SUPPLY_NAME=CMB1nPOWER_SUPPLY_STATUS=FullnPOWER_SUPPLY_PRESENT=1nPOWER_SUPPLY_TECHNOLOGY=Li-ionnPOWER_SUPPLY_CYCLE_COUNT=0nPOWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000nPOWER_SUPPLY_VOLTAGE_NOW=12496000nPOWER_SUPPLY_CURRENT_NOW=0nPOWER_SUPPLY_CHARGE_FULL_DESIGN=5800000nPOWER_SUPPLY_CHARGE_FULL=5800000nPOWER_SUPPLY_CHARGE_NOW=3900000nPOWER_SUPPLY_CAPACITY=100nPOWER_SUPPLY_MODEL_NAME=CP293550-01nPOWER_SUPPLY_MANUFACTURER=FujitsunPOWER_SUPPLY_SERIAL_NUMBER=01A-Z100320001158Z”, “alarm”: 0, “charge_full”: 5800000, “voltage_now”: 12496000, “serial_number”: “01A-Z100320001158Z”, “cycle_count”: 0, “current_now”: 0, “charge_now”: 3900000, “voltage_min_design”: 10800000, “path”: “/sys/class/power_supply/CMB1”, “technology”: “Li-ion”, “manufacturer”: “Fujitsu”, “type”: “Battery”, “model_name”: “CP293550-01”, “present”: 1, “charge_full_design”: 5800000}]
In [6]: bat.stat[0]
Out[6]: {“status”: “Full”, “capacity”: 100, “name”: “CMB1”, “uevent”: “POWER_SUPPLY_NAME=CMB1nPOWER_SUPPLY_STATUS=FullnPOWER_SUPPLY_PRESENT=1nPOWER_SUPPLY_TECHNOLOGY=Li-ionnPOWER_SUPPLY_CYCLE_COUNT=0nPOWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000nPOWER_SUPPLY_VOLTAGE_NOW=12496000nPOWER_SUPPLY_CURRENT_NOW=0nPOWER_SUPPLY_CHARGE_FULL_DESIGN=5800000nPOWER_SUPPLY_CHARGE_FULL=5800000nPOWER_SUPPLY_CHARGE_NOW=3900000nPOWER_SUPPLY_CAPACITY=100nPOWER_SUPPLY_MODEL_NAME=CP293550-01nPOWER_SUPPLY_MANUFACTURER=FujitsunPOWER_SUPPLY_SERIAL_NUMBER=01A-Z100320001158Z”, “alarm”: 0, “charge_full”: 5800000, “voltage_now”: 12496000, “serial_number”: “01A-Z100320001158Z”, “cycle_count”: 0, “current_now”: 0, “charge_now”: 3900000, “voltage_min_design”: 10800000, “path”: “/sys/class/power_supply/CMB1”, “technology”: “Li-ion”, “manufacturer”: “Fujitsu”, “type”: “Battery”, “model_name”: “CP293550-01”, “present”: 1, “charge_full_design”: 5800000}
In [7]: bat.stat[0].capacity
Out[7]: 50
In [8]: print bat.stat[0]
100
In [9]: bat.stat[0].manufacturer
Out[9]: ‘Fujitsu’
In [9]: bat.stat[0].technology
Out[9]: ‘Li-ion’
In [11]: bat.stat[0].charge_full
Out[11]: 5800000
In [12]: bat.stat[0].charge_now
Out[12]: 3900000
In [12]: bat.update()
> Refresh the statsHave fun…
Package: batman-curve
Batman CurveA Python library for generating the iconic Batman curve - a mathematical function that creates a plot resembling the legendary Batman symbol.Learn MoreExplore the mathematical details of the Batman curve onWolfram MathWorld:Weisstein, Eric W. "Batman Curve." From MathWorld - A Wolfram Web Resource.
https://mathworld.wolfram.com/BatmanCurve.htmlInstallation# production installation$pipinstall-rrequirements.txt
$pipinstallbatman# development installation$pipinstall-e.[dev]$pre-commitinstallUsageimportmatplotlib.pyplotaspltimportnumpyasnpfrombatman_curveimportbatmanx=np.linspace(-7,7,300)upper,lower=batman(x)fig,ax=plt.subplots()ax.plot(x,upper)ax.plot(x,lower)
Package: batmon
# BatmonBatmon is a simple Python script that monitors battery usage on Linux and sends desktop notifications when the battery is low. It’s intended to improve the UX when using window managers like XMonad that don’t bring all of gnome’s conveniences. It usesnotify-sendto send notifications to the desktop.## Usage` pip install batmon `Next, find your battery withls /sys/class/power_supply/. Usually it’sBAT0.
Then, in your.xmonadrcor similar,batmon [BATTERY] &. That’s it!
Package: batoid
.. image::https://github.com/jmeyers314/batoid/workflows/batoid%20CI/badge.svg:target:https://github.com/jmeyers314/batoid/workflows/batoid%20CI/badge.svg.. image::https://codecov.io/gh/jmeyers314/batoid/branch/master/graph/badge.svg:target:https://codecov.io/gh/jmeyers314/batoidbatoidA c++ backed python optical raytracer.docshttps://jmeyers314.github.io/batoid/overview.htmlRequirementsBatoid is known to work on MacOS and linux, using Python version 3.8+, and
either the clang or gcc compiler with support for c++14.InstallationPyPIReleased versions of batoid are available on pypi as source distributions.
This means you will need at least c++14 compiler available and that setup.py
can find it.  This should hopefully be the case on most *nix systems, in which
case, the following ought to work::pip install batoidGithubIf PyPI doesn't work, then you can try cloning the source from github and
running setup.py.  Clone the repo with either ::git clone git@github.com:jmeyers314/batoid.gitor ::git clone https://github.com/jmeyers314/batoid.gitOnce the repo has been cloned, then compile and install with ::python setup.py installor optionally ::python setup.py install --userTestsTo run the unit tests, from the batoid directory, first install the testing
requirements ::pip install -r test_requirements.txtAnd then run the tests using pytest ::pytest
Package: batoms
Beautiful AtomsBatoms is a Python package for editing and rendering atoms and molecules objects using blender. A Python interface that allows for automating workflows.Features:Model: space-filling, ball-stick, polyhedral, cavity and so on.Supported File type: cif, xyz, cube, pdb, json, VASP-out and so on.Supported structure: ASE and PymatgenVolumetric data (Isosurface)Ribbon diagram for proteinSite occupancyAnimationGUISupport periodic boundary conditionsSupport fetch structures from MaterialProject, Pubchem and RSCBFlexible: Python script, run interactively or in background.High quality rendering:  3D modelsFree, Open Source: Easy to download and install.Cross-platform: (Linux, Windows, macOS)How to usePlease vist:https://beautiful-atoms.readthedocs.io/en/latest/How to contributeEditorWe recommend usingVisual Studio Codewith theBlender extension.TestWe recommend usingpytest-blender. To run the tests, run:pip install pytest-blenderblender_python="$(pytest-blender)"$blender_python-mensurepip#Installthedevelopmentdependencies:$blender_python-mpipinstall-rtest-requirements.txtcd testspytestPre-commitTo install the pre-commit hooks, run:$pre-commitinstallContactXing Wangxingwang1991@gmail.com
Package: batoms-api
Beautiful Atomsbatoms_api is a API for Beautiful Atoms package. Beautiful Atoms is a Python package for editing and rendering atoms and molecules objects using blender. A Python interface that allows for automating workflows.Features:Model: space-filling, ball-stick, polyhedral, cavity and so on.File type: cif, xyz, cube, pdb, json, VASP-out and so on.Volumetric data (Isosurface)AnimationHigh quality rendering:  3D modelsFree, Open Source: Easy to download and install.Cross-platform: (Linux, Windows, macOS)AuthorXing Wangxingwang1991@gmail.comHow to useOn command line:batomsh2o.xyz-m'1'Use python script:fromase.buildimportmoleculefrombatoms_apiimportrenderatoms=molecule('H2O')# Windowsinput={'output':'D:\\projects\\batoms\\figs\\h2o.png'}# Linuxinput={'output':'figs/h2o.png'}render(atoms,render_input=input)Please vist:https://beautiful-atoms.readthedocs.io/en/latest/
Package: ba-tools
BA-ToolsBA-Tools, shorthand for ArcGIS Business Analyst Tools is a collection of resources combined into a succinct Python package streamlining the process of performing analysis combining quantitative geographic and machine learning methods.QuickstartFor the impatient, you can install this in your local environment using conda. It is a publicly available as aninstallable Conda package. However, it is highly recommended to use this in conjunction withGeoAI-Retailto dramatically streamline the entire analysis workflow.>condainstall-cknu2xsba-toolsOverview and FeaturesBA-Tool dramatically streamlines the process of data munging to be able to build a model using Machine Learning. This is a supporting package forGeoAI-Retail.BA-Tools facilitates quantitatively considering the complex interaction of geographic factors using machine learning to perform analyses for deriving human behavior insights - most notably, human behavior as it relates to retail. Especially when used in conjunction withGeoAI-Retail, BA-Tools dramatically streamlines the process of performing the requisite feature engineering using sound Geographic methods for retail forecasting.It is important to note, this package offers no opinion or guidance on creation of the model. Rather, it facilitates the process offeature engineering, tapping into the vast data and Geographic analysis capabilities of ArcGIS to automate much of the feature engineering required to quantitatively create Geographic factors to include in model training. With this model created, BA-Tools module also enables inferencing using the created model to evaluate the effects of adding or removing a location from the retail landscape.RequirementsCurrently, only analysis usingArcGIS Prowith theBusiness Analystextension usinglocally installed United States datais supported. Consequently, for now, it is dependent on ArcPy and locally installed ArcGIS Business Analyst data for the United States. Depending on what use cases we run across, and have to support, international data and even full REST based analysis (not requiring ArcPy) may be supported in the future. Currently though, it is not.IssuesFind a bug or want to request a new feature?  Please let us know by submitting an issue.ContributingEsri welcomes contributions from anyone and everyone. Please see ourguidelines for contributing.License -Apache 2.0Copyright 2020 EsriLicensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.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: batorch
batorchIntroductionbatorchis a package affiliated to projectPyCAMIA. We encapsulated a new type on top oftorchtensers, which we call itbatorch.Tensor. It has the same function astorch.Tensor, but it can automatically select the device it was on and provide batch or channel dimensions. Also, we try to provide more useful module for torch users to make deep learning to be implemented more easily. It reliespython v3.6+withtorch v 1.7.0+.Note thattorch v1.7.0was released in 2020,and it is necessary for this package as the inheritance behavior for this version is different from previous versions.Most originaltorchfunctions should be able to be applied forbatorchtensors.Special features forbatorchare still under development. If unknown errors pop our, please use traditionaltorchcode to bypass it and meanwhile it would be very kind of you to let us know if anything is needed: please contact us bye-mail.>>>importbatorchasbt>>>importbatorch.nnasnn>>>bt.turn_off_autodevice()>>>bt.manual_seed(0)<torch._C.Generatorobjectat0x1071b6730>>>>t=bt.randn([3000],400,requires_grad=True)>>>LP=nn.Linear(400,400)>>>a=LP(t)>>>a.sum().sum().backward()>>>print(t.grad)Tensor([[-0.2986,0.0267,0.9059,...,0.4563,-0.1291,0.5702],[-0.2986,0.0267,0.9059,...,0.4563,-0.1291,0.5702],[-0.2986,0.0267,0.9059,...,0.4563,-0.1291,0.5702],...,[-0.2986,0.0267,0.9059,...,0.4563,-0.1291,0.5702],[-0.2986,0.0267,0.9059,...,0.4563,-0.1291,0.5702],[-0.2986,0.0267,0.9059,...,0.4563,-0.1291,0.5702]],shape=batorch.Size([3000],400))batorchhas all of following appealing features:Auto assignthe tensors to availableGPUdeviceby default.Use[nbatch]or{nchannel}to specifythe batch and channel dimensions. i.e.tp.rand([4], {2}, 20, 30)returns a 2-channel feature tensor of $20\times30$ matrices with batch size 4. One may also usetensor.batch_dimensionto access (or assign) batch dimension, channel dimension can be operated likewise. If you find it hard to remember the symbol, just remember brackets enclose paralleled items in matrices hence it represents the batch dimension for paralleled calculation; braces enclose equation systems which are highly related hence it represents the channel (or feature) dimension.Batch and channel dimension can helpauto matching the sizesof two tensors in operations. For example, tensors of sizes(3, [2], 4)and(3, 4)can be automatically added together with axis of size 3 and 4 matched together. Some methods will also use this information. Sampling, for example, will take the batch dimension as priority.The tensor object iscompatible with originaltorchfunctions.InstallationThis package can be installed bypip install batorchor moving the source code to the directory of python libraries (the source code can be downloaded ongithuborPyPI).pipinstallbatorchUsagesNot available yet, one may check the codes for usages.Acknowledgment@ Yuncheng Zhou: Developer
@ Yiteng Zhang: Important functions extraction
Package: batou
batou helps you to automate your application deployments:You create a model of your deployment using a simple but powerful Python API.You configure how the model applies to hosts in different environments.You verify and run the deployment with the batou utility.Getting started with a new project is easy:mkdir myprojectcd myprojectgit initcurl -sL https://raw.githubusercontent.com/flyingcircusio/batou/main/bootstrap | shgit commit -m "Start a batou project."Here's a minimal application model:$mkdir-pcomponents/myapp$cat>components/myapp/component.pyfrom batou.component import Componentfrom batou.lib.python import VirtualEnv, Packagefrom batou.lib.supervisor import Programclass MyApp(Component):def configure(self):venv = VirtualEnv('2.7')self += venvvenv += Package('myapp')self += Program('myapp',command='bin/myapp')And here's a minimal environment:$mkdirenvironments$cat>environments/dev/environment.cfg[environment]connect_method = local[hosts]localhost = myappTo deploy this, you run:$./batoudeploydevCheck thedetailed documentationto get going with a more ambitious project.FeaturesSeparate your application model from environmentsSupports idempotent operation for incremental deploymentsDeploy to multiple hosts simultaneouslyAutomated dependency resolution for multi-host scenariosNo runtime requirements on your applicationEncrypted secrets with multiple access levels: store your
SSL certificates, SSH keys, service secrets and more to get true 1-button deployments.Deploy to local machines, Vagrant, or any SSH hostBroad SSH feature support by using OpenSSH through execnetOnly few dependencies required on the remote hostShips with a library of components for regularly needed tasksself-bootstrapping and self-updating - no additional scripting neededLicenseThe project is licensed under the 2-clause BSD license.HackingMake suremercurialandsubversionare installed and in$PATH.Run./develop.shto create a local virtualenv with everything set up.Run the test suite using:bin/toxBuild the documentation using:cd doc; makeSet up GPG for the examples withexport GNUPGHOME=<DIRECTORY OF BATOU HERE>/src/batou/secrets/tests/fixture/gnupgMake sureageis installed and in$PATHfor age encryption support.ChangelogSeeCHANGES.md.
Package: batou-ext
batou_ext - a library of components for batoubatou_extmaster is now supporting Python3 and is depending on batou2. If you still want to use batou_ext with batou 1.x running Python2 you still can use thebatou1-py2branch.To addbatou_extto your deployment, add a like to therequirements.txtof your batou deployment::batou_ext>=2.4Development and release processChanges should be accompanied with a changelog entry. Use./changelog.shto create one.Releasing will create a tag and publishes the package to pypi. Use./release-this.shto create a release.2.4.2 (2023-12-08)Make it possible to add arbitrary additional configuration to a service created by aSystemdTimer().Addnixos.NixOSModuleto inject component attributes into .nix files.2.4.1 (2023-11-16)Add*.mdto the release, so it can actually be used.2.4.0 (2023-11-16)Add release process with changelog (FC-33250).
Package: batou-scm
The batou_scm distributionBatou components for managing source code in a development deployment.This package is compatible with Python version 3.6 up to 3.9.Developing batou_scmAuthor:gocept<mail@gocept.com>PyPI page:https://pypi.python.org/pypi/batou_scmIssues:https://github.com/gocept/batou_scm/issuesSource code:https://github.com/gocept/batou_scmCurrent change log:https://raw.githubusercontent.com/gocept/batou_scm/master/CHANGES.rstChange log for batou_scm1.1 (2021-01-29)Use Github actions as CI.Claim support for Python 3.9Fix bug in.buildout.Buildoutwhere it was not always updated when a
source has changed.1.0 (2020-07-16)Update default setup tools version to latest release.Require a final release of batou version 2.1.0b2 (2020-06-15)Update default versions used in Buildout component to recent versions.1.0b1 (2020-05-08)Add support for Python 3.6 up to 3.8.Requirebatou >= 2.Drop support for Python 2.7.Migrate repository to github.0.6.3 (2018-05-04)Remove bitbucket.org fingerprint.0.6.2 (2018-05-04)Update bitbucket.org fingerprint again.Removecode.gocept.comfrom fingerprints.0.6.1 (2018-05-04)Update bitbucket.org fingerprint.0.6 (2017-11-29)Update tobatou >= 1.6andpytest >= 3.3.0.5 (2017-11-13)Remove absolute path in setup.py.0.4 (2017-05-30)Fixhas_changesdetection of clone in buildout component.
This requiresbatou >= 1.3.0.3.2 (2016-05-09)Fixed compatibility with pre-1.1 batou.0.3.1 (2016-05-09)Update bitbucket.org fingerprint.Require current batou for tests while keeping code compatible with pre-1.0.0.3 (2016-04-15)Usezc.buildout == 2.5.0andsetuptools == 20.7as default versions.Drop support for Python 2.6.0.2 (2015-09-21)AddBuildoutWithVersionPinsto be able to handle version pinnings in a
separate source package.0.1.3 (2015-05-21)Update bitbucket.org fingerprint.0.1.2 (2015-01-12)MakeBuildout.eggs_directorypath configurable.0.1.1 (2014-11-28)Update code.gocept.com fingerprint.0.1 (2014-08-28)initial release
Package: batpy
batpybatpyis a Python wrapper forArgonne National Laboratory'sMicrosoft Excel-basedsoftware modeling tool BatPaC.Installationbatpyis available fromPyPI, and currently requires Python 3.10 or newer. It can be installed with:$pipinstallbatpyUsage and documentationbatpyis able to read, write, and calculate batteries in theBatPaC tool. Furthermore,batpycan export the calculated batteries to abrightway2Excel workbook, which can be imported directly intobrightway2.Documentation forbatpyis available atGitHub Pages, including an example and documentation on all the modules and functions.ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensebatpywas created byRaphael Ginster. It is licensed under the terms of the MIT license.Creditsbatpywas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: ba-tsconcat
tsconcatBIDS App and Python library for concatenating MRI time series.Inspired byCho et al. 2021.FeaturesConcatenate BOLD time series from multiple datasets, sessions, subjects or runs into a single file.Dry run mode to check what the output directory will look like.Fake mode to produce abids2tablecompatible parquet output directory.InstallationGet the newest development version via:pipinstallgit+https://github.com/cmi-dair/tsconcatQuick startba-tsconcat/path/to/input/bids/path/to/outputgroup--concatses--dry_runUsageba-tsconcat--help
usage:ba-tsconcat[-h][-cCONCAT][-d][-f]bids_diroutput_dir{group}ConcatenateMRItimeseries.

positionalarguments:bids_dirInputBIDSfolderpath.output_dirOutputBIDSfolderpath.{group}Processingstage,mustbe"group".

options:-h,--helpshowthishelpmessageandexit-cCONCAT,--concatCONCATConcatacross.Canbeanycombinationofdataset,sub,ses,runseparatedbyspaces.Outputdatawillbegroupedbythesetdifference.-d,--dry_runDryrun.Printoutputdirectorystructureinsteadofactuallydoingsomething.Ifthisisenabled'bids_dir'maybeapathtoabids2tableparquetdirectory.-f,--fakeFakeoutput.Outputabids2tableparquetdirectoryinsteadofactuallydoingsomething.Links or ReferencesImpact of concatenating fMRI data on reliability for functional connectomics (Cho et al. 2021)bids2table
Package: batServe
batServesimple, useful file server | part ofbatBeltInstallation:If you have python >= 3.6 installed and want to install batServe onlypip install --upgrade batserveIf you don't have python pre-installed, batServe is available as a pre-built binary via batBeltUsage:usage: batserve (or) python -m batserve (optional arguments)

batBelt file server (1.0-rc4) - simple and useful file server

optional arguments:
  -h, --help            show this help message and exit
  --host [HOST]         Serve on host (eg: localhost, 0.0.0.0). Defaults to 0.0.0.0
  --port [PORT]         Serve on port. Defaults to 8080
  --public              Serve on a publicly accessible URL
  --no-index            Disable auto-generation of index.html
  --no-symlinks         Don't follow symlinks
  --dir [DIR]           The directory path to serve. Defaults to ./
  -u [USERNAME], --username [USERNAME]
                        Username for security, not set by default
  -p [PASSWORD], --password [PASSWORD]
                        Password for security, not set by default