Saravanan666/pypi-org huggingface dataset:
Package: batsim-py
Batsimis a scientific simulator commonly used to
evaluate Resource and Job Management System (RJMS) policies.Batsim-py allows using Batsim from Python 3.Main FeaturesDeveloped on Python 3.8Simple API for evaluating the performance of Scheduling/Shutdown/DVFS policiesTime/Event-based designSimple to be extendedFully documentedInstallationMake sure you have Batsim v3.1.0 installed and working. Otherwise, you must followBatsim installationinstructions. Check the version of Batsim with:batsim--versionInstall batsim-py from PyPI:pipinstallbatsim-py[Optional] If you prefer, you can install batsim-py and run tests with:gitclonehttps://github.com/lccasagrande/batsim-py.gitcdbatsim-pypipinstall-e.pythonsetup.pytest[Optional] Go to theTutorialssection to find examples.For further information, check theAPI Documentationto understand how to customize the simulation behavior.Simulation InputsTo evaluate the behavior of a RJMS policy, you must provide:Aplatformdescription (XML): describes the network and resource characteristics.Aworkload(JSON): defines the jobs to be submitted to the system and their execution profiles.The expected format of both files is the same adopted in Batsim. CheckBatsim docsto get further information on how to define platforms and workloads.TutorialsThe tutorials section provides examples of different simulation scenarios:SchedulingShutdownDVFSAPI DocumentationThe API documentation provides information on classes and modules in the Batsim-py package.SimulatorEventsMonitorsJobsResources
Package: batsoc
batsoc - State of Charge (Battery)Got a cell voltage and would like to know how much charge is left?
batsoc to the rescue!InstallationpipinstallbatsocAccuracyMeasuring state of charge based on voltage alone is not terribly
accurate. The measured voltage depends on multiple factors besides
the state of charge: temperature and load affect matters as well.Usagefrombatsocimportsoc,BatteryTypesoc(BatteryType.ALKALINE,1.3)will output 0.633 indicating 63.3% state of charge.Supported batteriesALKALINEAny generic 1.5V alkaline battery under low load.
The curve is defined for 0.8 - 1.6 volts.LI_IONAny generic lithium-ion battery with a nominal voltage of 3.7 or 3.8.
The curve is defined for 3.0 - 4.2 volts.CR2032A 3V lithium coin cell battery under very low load.
The curve is defined for 2.0 - 3.0 volts.
Package: batspp
BATSPPShell style tests usingbats-core frameworkBats is a greatTAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected.The goal of Batspp to allow writing shell style tests with an simple and a less idiosyncratic syntax.#!/usr/bin/env batspp# Test example with multiple assertions$filepath=$(echo$TMP/testfile-"$$")$echo-e"in this test\nwe are using\nmultiple assertions"|sudotee$filepath$cat$filepath|wc-l3$cat$filepath|wc-c46Batspp grew out of work forThomas O'Haraonshell-scriptsandmezcla.DocsInstallationBasic usageWriting testsWriting setups and teardownsTests examplesCoverage reportsBatspp internalsContributingLicenseBatspp is released under an GNU Lesser General Public License Version 3, seeLICENSE.TXTfor details.
Package: bats-tda
BATS.pyPython bindings for theBasic Applied Topology Subprograms (BATS) library.
This includes:Simplicial, Cubical, and Cell ComplexesSimplicial, Cubical, and Cellular MapsHomology and induced mapsPersistent homologyZigzag homologyA variety of topolgical constructionsNote that the C++ repository is the main library, and contains more features.  This repository provides bindings for a subset of the functionality of BATS, and is under active development.Documentation, examples, and tutorials can be found atbats-tda.readthedocs.ioOnce installed, you can import thebatsnamespace:importbatsInstallation with pipThe easiest way to installbatsis usingpippip install bats-tda # gccTo use clang (e.g. on a Mac) tryCC=clang pip install bats-tda # clangBecausebatsuses OpenMP, it has to be compiled from source with a C++17 compliant complier.  This means installation can take a few minutes.  You can pass--verbosetopipto see what is going on with installation.If you don't have OpenMP, you can install with a package manager.GCC (e.g. on Linux)dnf install libgomp-devel # Fedoraapt-get install libgomp1-dev # UbuntuClang (e.g. on Mac)brew install libomp
Package: battalion
Python framework for commandline applicationsQuickstartFeeling impatient? I like your style.$pipinstallbattalionIn mycli.py script:frombattalion.apiimport*classDB(object):def__init__(self,state):self.msg=state.msgdefmyfunc(self):returnself.msg@fixturedefdb(state):returnDB(state)classmycli(CLI):"""
    Toplevel program - mycli
    """classState:version='0.0.1'msg=""@commanddefnormal_function(cli,db,data=None):# NOTE: the "db" arg will be populated from the "db" fixture function"""Takes in data and outputs new data"""ifdataisNone:returndb.myfunc()else:returndata@commanddefgreeting(cli,name="Hello"):"""
        Prints "Hello {name}!"
        """print"Hello{0}!".format(name)classmyhandler(Handler):"""
    Organizational container of commands which can also add state variables
    """classState:version='0.0.2'# Handlers can have their own versioningcli='mycli'msg="World"@commanddefvalidate(cli,data):returndata@commanddefhello(cli,msg=None):"""
        Prints "Hello World!"
        """name=cli.normal_function(data=msg)name=cli.myhandler.validate(data=name)cli.greeting(name=name)if__name__=="__main__":mycli.main()Then on the commandline$pythonmycli.pymyhandlerhello>HelloWorld!$#or if installed as a console script via setuptools$myclimyhandlerhello>HelloWorld!$#also$myclimyhandlerhello"Josh">HelloJosh!$mycli--help>Toplevelprogram-mycli>>Usage:>mycli[options]<command>[<args>...]>mycli[options]>>Options:>-h,--helpShowthisscreen.>--versionShowversion.>-d,--debugShowdebugmessages>--config=<CONFIG>Theconfigfilepath[default:~/.mycli.cfg]>>Commands:>greetingPrints"Hello {name}!">myhandlerOrganizationalcontainerofcommandswhichcanalsoaddstatevariables>$myclimyhandlerhello--help>Prints"Hello World!">>Usage:>hello[options]>hello<msg>>>Options:>--msg=<MSG>[default:None]>
Package: battdeg
BattDegBattDeg is a template project for prediction degrdataion of lithium ion battery
using machine learning.Licensebattdegis licensed under the terms of the MIT license. See the file
“LICENSE” for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.All trademarks referenced herein are property of their respective holders.Copyright (c) 2019–, Shrilakshmi Bonageri, Ge Gu, Guoyao Chen, Chintan Pathak,
University of Washington
Package: battery-bot-telegram
Telegram battery bot.Monitors laptop battery level and sends a message on Telegram when it drop below specified threshold.Usage:batbottg -t TELEGRAM_TOKEN -u TELEGRAM_USER [-b BATTERY_THRESHOLD] [-f CHECK_FREQUENCY]
batbottg -c CONFIG_FILE
batbottg --helpOptions:-t, --telegram-token=TELEGRAM_TOKEN         Telegram bot token
-u, --telegram-user=TELEGRAM_USER           Telegram user ID
-b, --battery-threshold=BATTERY_THRESHOLD   Battery level alert threshold [default: 10]
-f, --check-frequency=CHECK_FREQUENCY       Level check frequency [default: 60]
-c, --config=CONFIG_FILE                    Read config from file
--help                                      Show this screenConfig file format:[bot]
telegram_token = TELEGRAM_TOKEN
telegram_user = TELEGRAM_USER
battery_threshold = BATTERY_THRESHOLD
check_frequency = CHECK_FREQUENCY
Package: battery-data-toolkit
Battery Data ToolkitThe battery-data-toolkit,batdata, converts battery testing data from native formats to a standardized HDF5 file.
These HDF5 files contain the metadata needed to understand the source of the data,
and can be easily manipulated by common analysis libraries (e.g., Pandas).This repository also containsexample scriptsfor converting datasets to the HDF5 format.InstallationThe package can be installed with pip:pip install battery-data-toolkitProject OrganizationThescriptsfolder holds code that processes different datasets used by our collaboration.Any logic that is general enough to warrant re-use is moved into thebatdataPython package.The Python package also holds the schemas, which are described inschemas.py.
Package: battery-notify
AboutA battery monitor and notification app with sound for Linux systems.Usage$battery-notifystart--daemon
battery-daemonstarting...
started.

$battery-notifystop--daemon
battery-daemonstopping...
stopped.

$battery-notifystatus--daemon
battery-daemonisnotrunning.

$battery-notifyinfo
Batterylevelis:97.67%
Batteryusagetimeleft:2:03:17
Batterystatus:discharging
Chargerplugged:offInstall$pipinstallbattery-notifyInstall the dataDownload the source code, unzip it, go into the source directory and run:$tarxvfbattery-notify-1.4.tar.gz
$cdbattery-notify-1.4
$python3data.pyinstallUninstall$pipuninstallbattery-notify

$python3data.pyuninstallConfig file/etc/battery-notify/config.tomlXDG desktop file/etc/xdg/autostart/battery-daemon.desktop.samplePidfile$HOME/.run/battery-notify.pid$HOME/.run/music_player.pid
Package: batteryopt
batteryopt is a battery operation optimization tool developed by Jakub Szcześniak and
implemented by Samuel Letellier-Duchesne. The objective is to minimize the annual
electricity costs of a battery-integrated PV system using a Mixed-Integer Linear Program
(MILP). The algorithm is implemented using thepyomolibrary
opening up the model to a large array of solvers (e.g.: Gurobi, GLPK, etc.).Installationconda create --name batteryopt python=3.7  # tested with 3.7, 3.8 and 3.9
conda activate batteryoptgit clone https://github.com/MITSustainableDesignLab/batteryopt.git
cd batteryopt
python setup.py installUsageTypebatteryopt --helpto access the command line optionsOutputbatteryopt outputs an Excel file with the model Variables for each time step of the year:ttfMP_dmdP_elecP_pvBuyingChargingDischargingE_sP_chargeP_dischargeP_dmd_unmetP_gridP_pv_excessP_pv_export01nannan60536.50.0002624010020000-0-060536.560536.500111nan60536.50.0002624010020000-0060536.560536.500211nan60536.50.0002624010020000-0060536.560536.500311nan60536.50.0002624010020000-0060536.560536.500411nan60536.50.0002624010020000-0060536.560536.500The column names are:
Package: batterytender
InstallationpipinstallbatterytenderUsageModuleYou can import the module asbatterytender.importbatterytenderemail='XXXXXXXXXXXXXXXXXXXX'password='XXXXXXXXXXXXXXXXXXXX'bt=batterytender.BatteryTender(email,password)formonitorinbt.monitors:print('Monitor id:{}'.format(monitor.device_id))print('    Name:{}'.format(monitor.name))print('    Date:{}'.format(monitor.date))print('    Voltage:{}'.format(monitor.voltage))# Historical readingsprint('    History:')forhistoryinmonitor.history:print('        Date:{}'.format(history['date']))print('        Voltage:{}'.format(history['voltage']))# The latest reading is also available in the same format as# historical reading via the `.current` propertyprint('    Current:')print('        Date:{}'.format(monitor.current['date']))print('        Voltage:{}'.format(monitor.current['voltage']))
Package: battery-yunruse
batteryv1.0: Cross-platform battery statusThe following functions are available:is_discharging:        Check if battery is discharging (i.e. in use).is_charging:           Check if battery is charging.percent:               Return percentage charge of battery in [0, 100].minutes_to_empty:      Minutes of battery life left (may be empty if not known yet).minutes_to_full:       Minutes until the battery is charged (may be 0 if full, or empty if not on charge or not known).capacity:              Battery's current capacity in mWh (mAh on macOS).design_capacity:       Battery's original capacity in mWh (mAh on macOS).The following OS versions are supported:macOS 10.2 and laterLinux 2.6.24 and laterWindows Vista and laterANotImplementedErroris raised for unsupported OSes.Pull requests and issues are always welcome for better compatibility!Usage exampleObtain withpip install battery-yunruseand use like;importbatterysource='battery'ifbattery.is_discharging()else'AC power'print(f'On{source}at{battery.percent()}%')print(f'Battery is at{battery.capacity()/battery.design_capacity()*100:4.1f}% health.')The CLI always returns a JSON value:$ python -m battery
{"is_discharging": true, "percent": 92, "minutes_to_empty": 215, "minutes_to_full": null, "capacity": 2388, "design_capacity": 4381}
$ python -m battery percent
92Other notesIn the unix philosophy: do a small thing well.Also check outpsutil!As the whole package ispublic domain, please hack this code into whatever purpose needed.Note that the Python is just a wrapper around the annotated.tomlof commands that give standardised output.
(For compatibility this is converted to.jsonfor use.)
Package: batticon
DescriptionBatticon is simple system tray widget that show battery status. Written with GTK 3.
To use, just place it where you want and start by running$ batticonAlso you can install it from PyPi, for that just run$ pip install batticonSettingsSettings file namedsettings.jsonand used standard JSON markup.
Today it have only two settings:theme that can be set by theme nametimeout interval to update indicator.Settings file can be placed in 3 places:program executable directory~/.config/batticon//etc/batticon/Themes can be placed in:in‘themes’directory where program lay~/.config/batticon/themes//usr/share/batticon/themes/How to create new themeYou can create your own theme. It is very easy to do. All what you should do:Create new directory and place it into themes oneCreate 2 sets of icons - one set for charging battery and one for discharging battery. Actually, it can be equal set of icons, but it should have different names (<battery_percent>-charging.<png|svg>for charging and similar but with‘discharging’instead ‘charging’ for discharging battery mode. You can place any number of icon for percent from 00 to 100 (it means that you can have 00,01,02…98,99,100 - full set of 101 icon for charging and 101 for discharging or you can just have 10,30,70,100 - set from 4 icon for charging and 4 for discharging; app will handle it right)You should remember that all icons should be or svg or png formatCreate icon with name‘default.<png|svg>’It’s all - you can change name of theme to yours in settings and restart appYour app doesn’t work!!Just write to me, don’t be shy. I will really glad to help you with your problem.
Also, be cautious - program depends on pygobject for GTK3 and this package usually
distributed by OS itself. For example, it just doesn’t work if I trying to
install it from pip in my Arch laptop, but works well if I install it from repos.
Package: batting-order-analysis
DescriptionSimulates every possible batting order for a given lineup and displays summary statistics of
the average runs (over a number of games) of the orders, and specific information about the
top and bottom 5 orders. The user may choose how many games each order is simulated for,
which players are in the lineup, or what each player's PA outcomes are in a single game
(see sample files).Data SourceBaseball Savant Custom DataMajor TODOsDetermine the accurate likelihoods of sacrifices and double plays for different out typesEnable some sort of pinch hitting scheme (right now, each player hits the entire game)Enable some sort of pitcher dependent hitting results (even as simple as right-y/left-y;
right now hitting stats are full season aggregates)Include edge cases like stealing, wild pitches, etc.More detailed data (i.e. did a double go to right or left field?)Player specific data (i.e. how often does a player try to steal?)Installationpip install batting-order-analysisView on PyPIUsagedriver.py and driver.ipynb supply a basic interface, check them out
Package: battlecat
Battlecat is a general purpose double entry accounting web application.
Battlecat is based onHordakand is currently a work in progress.RequirementsDjango >= 1.8Postgres >= 9.2Python 2.7, 3.4, 3.5Linux or macOSDocumentationDocumentation TBA. However, see theHordak docsto understand the core
mechanics.Get involvedHelp is very welcome indeed. There isn’t much here yet which makes it hard
to know where to start. However, we should have something rough sketched out
soon, at which point getting involved may be easier.Of course, feel free to get in touch if you want to help out anyway. The
plan is to follow a path roughly similar to that ofSwiftwind, but
more general purpose.CreditsInitial development byAdam CharnockBattlecat is packeged usingSeed.
Package: battle-cats-game-modder
Battle Cats Game Modding ToolA python game modding tool for the mobile game The Battle Cats that can decrypt, encrypt, and modify some game files.Note: I am no longer actively working on this tool so there may be bugs. I'm working on a simpler and much more powerful new modding tool that will replace this one when it's eventually finished.It is a pretty much direct port from myC# game modding toolwith a few bug fixes.Join thediscord serverif you want to suggest new features, report bugs or get help on how to use the modder. (Discord is the same one as for save editing as I haven't made a modding specific one yet)PyPi:https://pypi.org/project/battle-cats-game-modder/If you want to support me then consider gifting me some ko-fi here:https://ko-fi.com/fieryhenryThanks to:EasyMoneko for the original keys for decrypting/encrypting:https://www.reddit.com/r/battlecats/comments/41e4l1/is_there_anyone_able_to_access_bc_files_your_help/Battle Cats Ultimate for what some of the numbers mean in various csvs.https://github.com/battlecatsultimateThis resource for unit csvs:https://pastebin.com/JrCTPnUVVi on discord for enemy csvsHow to use:Install python (If you haven't already)https://www.python.org/downloads/Enter the command:py -m pip install -U battle-cats-game-modderinto cmd or another terminal to install the editor. If that doesn't work then usepythoninstead ofpyin the commandUnpack the apk file for the game usingApktoolorAPKToolGui.You can then find the .pack and .list files in the assets folder of the extracted APK.Get the .pack and .list files that contain the files you want to edit:Most stats are in DataLocalMost text is in resLocalSprites are in various Server filesThen enter the command:py -m BCGM_Pythonto run the tool. If that doesn't work then usepythoninstead ofpyin the commandSelect option to decrypt .pack filesSelect .pack files that you want, they will be in/assetsfor local files in the extracted apk, or/data/data/jp.co.ponos.battlecatsen/filesfor downloaded server filesAlso decrypt the DownloadLocal pack as you will need it for laterOnce completed the files will be in agame_filesfolder in the folder you ran the command fromYou can manually edit the data, or use the option in the tool that you wantOnce edited, you should place any modified files in the DownloadLocal pack folderOpen the tool again and select theencryptoptionSelect the DownloadLocal folderOnce complete the encrypted .pack and .list files will be in anencrypted_filesfolder in the folder you ran the command fromIf you are asked if you want to patch the libnative file, say no as this featrue is currently broken and you do not need to do it if you placed your files in DownloadLocalThen you need to place the encrypted .pack and .list files back into the assets folder of the apkYou then need to pack the apk using apktool or apktoolguiYou then need to sign the apk using apktool or apktoolguiYou then need to install the apk, you may have to uninstall the game first before installing the modified apk for the first timeOpen the game and see if it works
Package: battlefield1-sdk
SetupFrom the command line:pip install battlefield1-sdkUsageGET API_KEY:https://battlefieldtracker.com/site-api/createExamplesfrombf1.battlefieldimportBattlefield# PLATFORM AVAILABLES# 'xbox'# 'playstation'# 'pc'bf=Battlefield(username='YOUR USERNAME',api_key='YOUR API KEY',platform='YOUR PLATFORM')# STATS SERVICEbf.stats_service.basic_stats()bf.stats_service.detailed_stats()bf.stats_service.career_for_owned_games()# PROGRESSION SERVICEbf.progression_service.get_codex()bf.progression_service.get_dog_tags()bf.progression_service.get_filtered_codex()bf.progression_service.get_kit_ranks_map()bf.progression_service.get_medals()bf.progression_service.get_vehicle(vehicle='mark v landship')bf.progression_service.get_vehicles()bf.progression_service.get_weapon(weapon='c93')bf.progression_service.get_weapons()# LOADOUT SERVICEbf.loadout_service.get_items()bf.loadout_service.get_items_gates()bf.loadout_service.get_kits()bf.loadout_service.get_presets()bf.loadout_service.get_equipped_dog_tags()# response format is in JSONRun TestsExport your API_KEY:export API_KEY='YOUR API KEY'Run tox:tox
Package: battlefy.py
WORK IN PROGRESSThis library is still a wip and is far from ready to be used. Feel free to use but expect breaking changes if you don't lock a version.Battlefy.pyA Python Library for Battlefy.comBattlefy.py is an asyncio library for accessing information off of Battlefy.com.This library has been designed for use by IPL for Splatoon tournaments primarily.Installationpipinstallbattlefy.pyUsageTournamentsfrombattlefyimportTournamentClientclient=TournamentClient(headers={})tour_id="5d167f61ddd2f83f429dc858"tournament=awaitclient.get_tournament(tour_id)print(tournament.name)
Package: battlefy-toolkit-Slate
Battlefy-ToolkitA toolkit to download Battlefy data made by Inkling Research Labs (IPL).
Code onGithub.Import prefix isbattlefy_toolkit.RequirementsPython 3.9+DiscordIdResolverCan translate a Discord Id to information.If multiple requests are to be made, a single DiscordIdResolver should be created and resolve_discord_id called multiply.if__name__=='__main__':frombattlefy_toolkit.resolvers.DiscordIdResolverimportDiscordIdResolverresolver=DiscordIdResolver(f"your.bot.token")info1=resolver.resolve_discord_id(97288493029416960)info2=resolver.resolve_discord_id(763492840038465537)print(info1.qualified_username)print(info2.qualified_username)DistributionUpdate the version info insetup.py, then,Commands should be entered into the venv console:Windows:rmdir /S build
rmdir /S dist
py -m pip install --upgrade build
py -m build
py -m pip install --upgrade twine
py -m twine upload dist/*Linux:rm -r build
rm -r dist
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload dist/*
Package: battle-map-tv
Battle Map TVDisplay battle maps for TTRPGs on a tv that lies flat horizontally on your table.This Python application aims to do one thing: quickly show an image on your secondary screen,
in the right size and with a 1-inch grid.For GM's with little time or who improvise their sessions: much easier to use in-session than a full blown VTT.FeaturesWorks natively on Linux, macOS and Windows.Doesn't use a browser.Free and open sourceWorks offlineSimple UITwo windows:one on the TV with your map and grid on itone on your GM laptop with controlsImport local image files to display on the tv.Scale, pan and rotate the image.Store the physical size of your screen to enable grid and autoscaling.Overlay a 1-inch grid.Automatically detect the grid in an image and scale to a 1 inch grid.Save settings so images load like you had them last time.InstallationOpen terminal or cmd.Check that you have Python installed by running thepython --versioncommand.If you don't have Python, it's easy to install. See here:https://wiki.python.org/moin/BeginnersGuide/DownloadInstall Battle Map TV with this command:python -m pip install battle-map-tvThen run it with:python -m battle_map_tvManualDrag the TV window to your TV and make it fullscreen with the 'fullscreen' button.Ue the 'add' button to load an image.You can drag the image to pan. Zoom with your mouse scroll wheel or use the slider in the controls window.Close the application with the 'exit' button.There are two text boxes to enter the physical dimensions of your secondary screen in milimeters.
This is needed to display a grid overlay and autoscale the image to 1 inch.TechnicalUsesPySide6for the graphical user interface.UsesOpenCVto detect the grid on battle maps.UsesHatchto build and release the package.