A platform to run Gymnasium or PettingZoo games with AI.
Project description
PAIAGym
A platform to run Gymnasium or PettingZoo games with AI.
Installation
pip install paiagym
Usage
Install a game:
paiagym install <game_name>
Uninstall a game:
paiagym uninstall <game_name>
Run the inferencing with given information by the environment variable:
paiagym run
Run the inferencing with given script path:
paiagym run <game_name> -i <script_path>
Run the training with given information by the environment variable:
paiagym train
Run the training with given script path:
paiagym train <game_name> -i <script_path>
List all added games:
paiagym ls
List all available games:
paiagym ls -a
List games in development:
paiagym ls -m dev
List games in production:
paiagym ls -m prod
Usage for Container
You can checkout the Dockerfile for the Docker container.
To build the Docker image:
docker build -t paiagym:base . --no-cache
If you are using Linux server, run before starting the container (install and config X server with NVIDIA Driver):
sudo sh display.sh
display.sh can be found at display.sh.
To start the container:
docker run -it --rm --gpus all -v /tmp/.X11-unix:/tmp/.X11-unix paiagym:base
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file paiagym-0.0.2.tar.gz
.
File metadata
- Download URL: paiagym-0.0.2.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc1d388821e8274667b921728a022e2b5b2301722de0aa919e293838c59d5994 |
|
MD5 | 72791ac75741134318026783c0116d27 |
|
BLAKE2b-256 | 5de8b51d9bacd4493a59bd49c1aa7b476e31ffa418c02880300df1e728776b83 |
File details
Details for the file paiagym-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: paiagym-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42231840ff1fab293f0965894ab59ba13aabd6f954eff69f82c7a9912e8b6e92 |
|
MD5 | 1f44ced630792dc21c842af9a1e00470 |
|
BLAKE2b-256 | 832e628b3d5e682e8d8f1990432afaaee21f448fea83f2e3da3e91fcda6b56bd |