Saravanan666/pypi-org huggingface dataset:
Package: dot3k
Display-o-Tron 3000InstallingWe've created a super-easy installation script that will install all pre-requisites and get your Dot3k up and running in a jiffy, just type this into a terminal or LXTerminal:curlget.pimoroni.com/dot3k|bashUsageLCDfromdot3kimportlcdlcd.write('Hello World!')Backlightfromdot3kimportbacklightbacklight.sweep(0.5)backlight.update()Joystickfromdot3kimportjoystick@joystick.on(joystick.UP)defhandle_joystick_up(pin):print("Joystick up!")2.0.3Bump cap1xxx dependency to v0.1.42.0.2Addedversionto module2.0.1Now handles reset pin for Display-o-Tron HATAdded cap1xxx as a dependency2.0.0Added support for Display-o-Tron HATMisc fixes and improvements1.9.0Added new MenuIcon class with pre-made icons for use in plugins/menusAdded "cancel" method which can be called to immediately exit any menu item1.8.2Fixed bug in screensaver functionality so it works with non-keyword argsAdded new "add_item" feature so that menu items can be kept in order1.8.1Backlight now has off() method shortcut for turning lights offAdded a use_brg() method for old Dot3ks with different pixel order1.8.0Significant, possibly breaking, change toinit.py to remove redundant importslcd and joystick should work with Python 3, backlight still requires smbus1.7.1Sane defaults for write_option(), now no longer defauts to 1 margin and blank icon1.7.0Added input handling plugin supportRemapped parameters to args/kwargs to make menu initialisation less mystifying1.6.1Fixed bug in set_bar which cased the left blue backlight to light1.6.0Added support for an "idle" plugin which shows after a customisable amount of seconds1.5.0Fixed joystick repeat using delta timing instead of delays1.4.0Bugfix of menu.py line-endingsAttempt to fix joystick.repeat to prevent multiple repeats firing at once1.3.0Removed plugins from dot3k.menu into examples/plugins folder1.2.0Breaking changes with plugin compatibility vs version 1.1Many fixes to redraw callsPlugin redraw method is now passed the "menu" instance1.1.0Fix for joystick on Rev 1 Pi1.0.0Initial Release
Package: dot4dict
Dot4DictAccess dictionary keys with a Dot:fromdot4dictimportdotdictmy_dict=dotdict({"foo":"bar"})assertmy_dict.foo=="bar"assertmy_dict["foo"]=="bar"This works also recursivelyfromdot4dictimportdotdictmy_dict=dotdict({"a":{"b":{"c":"foo"}}})assertmy_dict.a.b.c=="foo"CopyrightThis project is distributed under theApache license version 2.0.
Package: dota
dotaDefense of the AlanWARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through the code and commit history to see if it does what you need, orask mefor status updates.Stay tuned!Installpython3 -m pip install -U dotaUsageimportdotaprint('TODO')LicenseMITContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: dota2
Supports Python2.7+and3.4+.Module based onsteamfor interacting with Dota2’s Game Coordinator. If you’ve usednode-dota2then
this module should feel right at home. Check out the documentation
to get started.Documentation:http://dota2.readthedocs.ioContributions and suggestion are always welcome.InstallationInstall latest version from PYPI:pip install dota2Install the current dev version fromgithub:pip install git+https://github.com/ValvePython/dota2

# if you are installing over existing install
# note: "only-if-needed" will only update dependecies if needed
pip install -U --upgrade-strategy only-if-needed git+https://github.com/ValvePython/dota2
Package: dota2-grid-editor-cli
Dota2 Grid EditorInstallationfirst install python3 from herepython 3then open command prompt and type:pip install dota2-grid-editor-cli
or
python -m pip install dota2-grid-editor-cliUSEin cmd, type:python -m cli_grid -loc [steam location] -id [your dota2_id]

example:
	python -m cli_grid -loc D:/games/steam -id 443187988you can use this through a bat file, so you don't have to type this every time. You can also run the bat file on startup, so it gets automatically updated every time you turn on your computer
Package: dota2monitor
Dota2MonitorDota2Monitor allows you to use GameState Integration Monitoring to track events happening in Dota 2 matches.InstallationYou can install Dota2Monitor using pip:pipinstalldota2monitorUsagePlace the file gamestate_integration_monitor.cfg into ~\SteamLibrary\steamapps\common\dota 2 beta\game\dota\cfg\gamestate_integration."Dota 2 Integration Configuration"
{
    "uri"           "http://localhost:666/"
    "timeout"       "5.0"
    "buffer"        "0.1"
    "throttle"      "0.1"
    "heartbeat"     "30.0"
    "data"
    {
        "provider"      "1"
        "map"           "1"
        "player"        "1"
        "hero"          "1"
        "abilities"     "1"
        "items"         "1"
        "buildings"     "0"
        "draft"         "0"
        "events"        "1"
        "previously"    "0"
    }
}Add the following code snippet to monitor events:fromdota2monitor.serverimportDota2Monitorfromdota2monitor.modelsimportListeningEventsdefcustom_lvl_up_notify():print('New level!')defcustom_death_notify():print('Dead!')defcustom_smoked_notify():print('Smoked!')if__name__=='__main__':monitor=Dota2Monitor()monitor.event_manager.add_event_listener("onDeath",custom_death_notify)monitor.event_manager.add_event_listener(ListeningEvents.LVL_UP,custom_lvl_up_notify)monitor.event_manager.add_event_listener(ListeningEvents.SMOKED,custom_smoked_notify)monitor.run(port=666)ContributingFeel free to contribute by submitting pull requests or raising issues.
Package: dotabase
DotabaseA SQLite database representing much of the data from Dota 2 game files, and a SQLAlchemy representation to be used with it. This was built using mydotabase-builderproject. Note that I've removed the database from this repository, as binary files are not git-friendly, and have replaced it with a SQL file dump of the database.DescriptionThe goal of this project is to provide an interface into Dota 2 game files so that applications can be built around them. This repository will be kept up to date with Dota so that changes to the game are immediately available.
One main feature of this project that I couldn't find anywhere else, is a representation of Dota's Hero Response system. This is the system that controls the various vocal responses that heroes have to actions that happen in the game.
In addition to supplying a SQLite database, this project includes a Python SQLAlchemy representation of the database, which provides an easy way to interface with Python applications. (dotabase.py) It also happens to be a good file to look at if you want to get an idea of the structure of the database
NOTE: This project does not supply any player information or data from specific Dota games. There are plenty ofalreadyexistingAPIs for that.UsageIf you want to use the dotabase package in your Python applications, you can install via pip like this:pip install dotabaseExample usage:fromdotabaseimport*session=dotabase_session()forheroinsession.query(Hero):print(hero)If you use MyPy, you should be able to get typing hints and your editor should recognize that the "hero" variable above is an instance of the "Hero" class.Note that the package was built using Python 3.9 and SQLAlchemy 1.4JSON filesIn thejsondirectory, I've auto-generated a bunch of JSON files that give you an idea of what is inside the database. These are also useful for seeing the difference between builds.BuilderThe database is built using my customdotabase-builder. Check it out for more information on how this project is being constructed. Note that the database is constructed and then dumped to a SQL creation script for saving to source control. You can reconstruct it withsqlite3 dotabase.db ".read dotabase.db.sql"Extracted VPK FilesThe files extracted from Dota's vpk are all the ones of the following types:txtpngmp3 (extracted from vsnd_c files)More file types will be added later.
Package: dotadevkit
DOTA DevkitAboutThis is a modified version of the originalDOTA_Devkit. The devkit has had some issues regarding ease of installation and usage with the latter being a significant problem. This repo attemps to address these issues by providing a simple CLI for easier usage and cross-platform whls for easier installation.Disclaimer:  This repo was created post9938855. The DOTA authors could update the original repo and/or add support for (possible) new versions of the DOTA dataset. While this repo will try to remain in sync with the original, users should rely on the original should the repos diverge.Installationpip install dotadevkitUsageOnce installed, you will have access to thedotadevkitCLI. Rundotadevkit --helpordotadevkit <command> --helpfor further details.Usage: dotadevkit [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  convert    Convert tiled DOTA annotations to COCO format.
  evaluate   Run evaluation for both tasks on DOTA & DOTA 1.5.
  merge      Merges annotations according to DOTA Tasks.
  split      Splits images and annotations.
  visualise  Visualise annotations.Your dataset directory should look as follows:.
├── example
│   ├── images
│   ├── labelTxt
│   ├── images.txtReferexampledirectory in this repo for a concrete exampleSplitSplit only images with 8 processesdotadevkit split \
        ./example/images \
        ./example_split/images \
        8 \
        --imagesSplitimagesandlabelTxtinto tiles of size 800 x 800 with overlap of 200 pixels with 8 processesdotadevkit split \
        ./example/ \
        ./example_split/ \
        8 \
        800 \
        200Mergedotadevkit merge \
        ./example_split/dota_dets \
        ./example_split/merged_dets \
        8EvaluateDOTA evaluation on specific task and dataset version.dotadevkit evaluate \
        ./example_split/merged_dets/Task1_{:s}.txt \
        ./example/labelTxt/{:s}.txt \
        ./example/images.txt \
        1.0VisualiseVisualise images that haveplaneandhelicoptercategories.dotadevkit visualise \
        ./example_split/ \
        -cat plane -cat helicopterConvertConvert tiled DOTA annotations of specified version to MS-COCO format.dotadevkit convert \
        ./example_split/ \
        --version 1.0
Package: dotapatch
PlatformStatusGitHubPyPIHealthdotapatchis a software which aims the automation of formattingsimple text changelogintoclear html changelog.Check theGameplay Update 7.18. This is the latest patch parsed usingdotapatch.Read the documentation atRead the Docs.ContentsQuickstartInstalling dotapatchGathering a new changelogRunning dotapatchTask ListContributingQuickstartInstalling dotapatchInstalldotapatchusingpip:$ pip install dotapatch
Collecting dotapatch
...
Successfully installed dotapatch-2.4
$ dotapatch
usage: dotapatch [-h] [-t template_file] [-u] [-V] [-d] [-s] [-q]
                 [changelog_file [changelog_file ...]]NoteIf you get anOSError, runpip install--userdotapatchinstead.Gathering a new changelogGo todota2 newspage and locate the latestpatch.Copy and save it as a file.7.07d:
==
* Necronomicon: Mana Break damage from 60 to 50%
* Nullifier: Cooldown reduced from 14 to 13
* Nullifier: Manacost reduced from 100 to 75

* Alchemist: Unstable Concoction damage increased from 150/220/290/360 to 160/240/320/400
* Bane: Enfeeble duration reduced from 20 to 14/16/18/20
* Bane: Brain Sap damage rescaled from 90/160/230/300 to 75/150/225/300WarningThe contentmuststart with the patch name7.07d:followed by a
separator==.Running dotapatchHead over to the folder where you saved the changelog file and rundotapatch:$ cd changelogs
$ dotapatch 706f
INFO Parsing 7.06f
INFO HTML saved at /home/arthurazs/changelogs/706f.html
INFO 7.06f conversion went smoothly.NoteIf the HTML page shows some of the heroes/items as[[hero_name]]instead
of the hero/item’spicture, run the following:$ dotapatch --update-data
INFO Downloading itemdata from dota2's heropediadata
INFO Updated itemdata saved successfully
INFO Downloading herodata from dota2's heropediadata
INFO Updated herodata saved successfullyThis will require internet connection and may take a while but it will
ensure that the HeropediaData gets up-to-date.Task ListTODOseeprojects.Changelogseereleases.ContributingTake a time to read ourCode of Conduct. Any unacceptable behavior shall be
reported by contacting the project team atarthurazsoares@gmail.com.Do you have any feedback, questions or ideias?Do you want to report a bug?Would you like to fix a bug or implement a feature?First of all, thank you! Please, read ourContributing Guidelinesfor
details.This project is licensed under theMIT License.
Package: dotaservice
DotaServiceNOTE: The project that uses the dotaservice in a k8s environment is theDotaClientrepo.DotaService is a service to play Dota 2 through gRPC. There are first class python bindings
and examples, so you can play dota as you would use the OpenAI gym API.It's fully functional and super lightweight. Starting Dotaobs = env.reset()takes 5 seconds,
and eachobs = env.step(action)in the environment takes between 10 and 30 ms.You can even set the config ofrender=Trueand you can watch the game play live. Each game will
have a uuid and folder associated where there's a Dota demo (replay) and console logs.Run DotaService LocallyRun the DotaService so you can connect your client to it later. Only one client per server
is supported, and only one DotaService per VM (eg local or one per docker container).python3-mdotaservice
>>>Servingon127.0.0.1:13337Run DotaService DistributedSeedocker/README.md.To run two dockerservice instances, one on port13337and one on13338, f.e. run:dockerrun-dp13337:13337ds
dockerrun-dp13338:13337dsYou can run as many as you want, until you run out of ports or ip addresses. If you are wearing
your fancy pants, use Kubernetes to deploy gazillions.Client Codefromgrpclib.clientimportChannelfromprotobuf.DotaService_grpcimportDotaServiceStubfromprotobuf.DotaService_pb2importActionfromprotobuf.DotaService_pb2importConfig# Connect to the DotaService.env=DotaServiceStub(Channel('127.0.0.1',13337))# Get the initial observation.observation=awaitenv.reset(Config())foriinrange(8):# Sample an action from the action protobufaction=Action.MoveToLocation(x=..,y=..,z=..)# Take an action, returning the resulting observation.observation=awaitenv.step(action)This is very useful to provide an environment for reinforcement learning, and service aspect of it makes it
especially useful for distributed training. I am planning to provide a client python
module for this (PyDota) that mimics typical OpenAI gym APIs. Maybe I won't even make PyDota
and the gRPC client is enough.RequirementsPython 3.7Unix: MacOS, Ubuntu. A dockerfile is also provided see:docker/README.md.InstallationInstalling from pypi:pip3installdotaserviceFor development; installing from source:pip3install-e.(Optional) Compile the protos for Python (run from repository root):python3-mgrpc_tools.protoc-I.--python_out=.--python_grpc_out=.--grpc_python_out=.dotaservice/protos/*.protoNotesMy dev notes:NOTES.md.AcknowledgementsOpenAI Dota crewKarpathyJan IvaneckyNostrademous
Package: dotations-locales-back
dotations-locales-backInstallationLes étapes qui suivent supposent que Python est déjà installé dans votre environnement.
La version de Python nécessaire est décrite dans le fichierpyproject.tomlà la récine du dépôt.La configuration des dépendances est gérée avecpoetry.Pour gérer différentes versions de Python sur une machine, nous utilisonspyenvqui permet par exemple d'installer une version avecpyenv install 3.8.9etpoetry env use python3.8.Pour créer un environnement virtuel et installer les dépendances de l'application, exécuter la commande suivante dans un terminal :poetryinstallCette commande doit s'achever sans erreur.On peut voir les dépendances installées avec cette commande :poetryshowDe même avecpoetry run pip listpour les nostalgiques de pip 🙂Démarrer l'API WebL'API Web est bâtie sur le frameworkFastAPI.Pour la démarrer en local, après avoir suivi les étapes d'installation, exécuter la commande suivante dans un terminal :poetryrunuvicorndotations_locales_back.web_api.main:app--reloadL'API Web est alors accessible à l'adresse suivante :http://127.0.0.1:8000Elle peut être testée via l'interface Swagger UI à cette adresse :http://127.0.0.1:8000/docsTestsPour lancer les tests il faut exécuter la commande suivante dans un terminal :poetryrunpytestOu depuis un terminal avec l'environnement virtuel activé :pytestDéploiement sur ScalingoPour déployer cette application sur Scalingo, il est nécessaire de créer 3 fichiers supplémentaires. En effet Scalingo n'est pas compatible avec les fichiers de gestion des dépendances créés par Poetry.Voici les fichiers à créer :requirements.txt: Scalingo se base sur ce fichier pour installer les dépendances.Pour le créer il faut éxécuter la commande suivante :poetryexport-frequirements.txt--without-hashes--outputrequirements.txtAttention: Si des dépendances sont ajoutées via Poetry, il faudra regénérer le fichierrequirements.txtà chaque fois également. En effet, Poetry gère automatiquement l'ajout de dépendances dans son propre fichierpyproject.tomlmais pas dans le fichierrequirements.txt.runtime.txt: Scalingo se base sur ce fichier pour définir la version de python à utiliser. Il s'agit donc de s'assurer de sa cohérence avec la version de Python indiquée danspyproject.tomlProcfile: Lors du déploiement Scalingo se base sur ce fichier pour éxécuter la commande qui lance l'application.
L'hôte requis est0.0.0.0et il faut également que le serveur écoute le port défini dans une variable d'environnementPORT. Il faut donc ajouter la ligne suivante au fichierProcfile:web: uvicorn web_api.main:app --host=0.0.0.0 --port=${PORT:-5000}
Package: dotbak
dotBAK - Lazily Backup Files and DirectoriesInstallation$ pip install dotbakUsage$ dotbak README.md

$ dotbak README.md

$ dotbak README.md

|$ ls -lah README.md*
-rw-r--r--    1 user     user        2.4K Sep 12 12:10 README.md
-rw-r--r--    1 user     user        2.4K Sep 12 12:56 README.md.bak-2021-09-30-17:23:45
-rw-r--r--    1 user     user        2.4K Sep 12 12:56 README.md.bak-2021-09-30-17:23:57
-rw-r--r--    1 user     user        2.4K Sep 12 12:56 README.md.bak-2021-09-30-17:24:14LicensedotBAK is Open Source and is distributed under the BSD License (three clause).  Please see the LICENSE file included with this software.
Package: dotbot-controller
BotController-pythonThis is a bot-controller package to help you choose the type of your controller and easily get started with the DotBot and the Sail Boat.
How to use:Use an nRF52840-DK flashed with the latest firmware frommasterbranch here:https://github.com/DotBots/Gateway-firmware-freshConnect your nRF52840-DK to your computer via USB and note down its serial port number such as/dev/tty0orCOMxDepending on the use, connect your joystick via USB to your computerInstall the latest release ofdotbot-controllerin command line withpip install dotbot-controller==0.2Use the package by entering your controller type, the serial port on which your DK is connected and the baudrate that you work with like this:bot-controller -t joystick -p COM10 -b 115200
Package: dotbots
DotBotsThis package contains a complete environment for controlling and visualizingDotBots.The DotBots hardware design can be foundhere (PCB)andhere (chassis).
The firmware running on the DotBots can be foundhere.This package can also be used to control devices running the SailBot firmware
application.InstallationRunpip install dotbotsSetupFlash the required firmwares on the DotBots and gateway board (use an
nRF52840DK board as gateway), as explained inthe DotBots firmware repository.Usagedotbots-controller --help
Usage: dotbots-controller [OPTIONS]

  BotController, universal SailBot and DotBot controller.

Options:
  -t, --type [joystick|keyboard]  Type of your controller. Defaults to
                                  'keyboard'
  -p, --port TEXT                 Linux users: path to port in '/dev' folder ;
                                  Windows users: COM port. Defaults to
                                  '/dev/ttyACM0'
  -b, --baudrate INTEGER          Serial baudrate. Defaults to 1000000
  -d, --dotbot-address TEXT       Address in hex of the DotBot to control.
                                  Defaults to FFFFFFFFFFFFFFFF
  -g, --gw-address TEXT           Gateway address in hex. Defaults to
                                  0000000000000000
  -s, --swarm-id TEXT             Swarm ID in hex. Defaults to 0000
  -w, --webbrowser                Open a web browser automatically
  -c, --calibrate                 Run controller in calibration mode
                                  (lighthouse mode)
  -D, --calibration-dir PATH      Directory containing calibration files
  -v, --verbose                   Run in verbose mode (all payloads received
                                  are printed in terminal)
  --help                          Show this message and exit.By default, the controller expects the serial port to be/dev/ttyACM0, as on
Linux, use the--portoption to specify another one if it's different. For
example, on Windows, you'll need to check which COM port is connected to the
gateway and add--port COM3if it's COM3.Using the--webbrowseroption, a tab will automatically open athttp://localhost:8000/dotbots. The page maintains
a list of available DotBots, allows to set which one is active and controllable
and provide a virtual joystick to control it or change the color of the on-board
RGB LED.LighthouseThe DotBots firmware comes with a cheap indoor positionning system based onValve Lighthouse 2.To get the positionning to work and the DotBots to be tracked in real-time the
system must be first calibrated by clicking the "Start calibration" or
"Update calibration" button below the grid map and then by following the
instructions there.TestsTo run the tests, installtoxand use it:tox