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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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