Skip to main content

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

paiagym-0.0.4.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

paiagym-0.0.4-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file paiagym-0.0.4.tar.gz.

File metadata

  • Download URL: paiagym-0.0.4.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for paiagym-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b5469d50b7a5afcbf7797af35dafd0301310ccf304fc0f163a6fc721fee08255
MD5 91814591e9b4a6c7e20ecada06ca4439
BLAKE2b-256 96af328cd975ad0a5c7395e3bfdd47443f966ce885afac3f5b6eda42ef8eda69

See more details on using hashes here.

File details

Details for the file paiagym-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: paiagym-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for paiagym-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c93b64c1d9774d7dd09986bc76405392e9aaaf860d8590703c464a326c2a3031
MD5 3c5eddb594410087fd9ef6e36f0535e3
BLAKE2b-256 71d2e1a096c44c20277e729db17429c319cfed7a47a5fd1e2f31099268c5dcde

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page