Skip to main content

A Gymnasium wrapper for the AWS DeepRacer simulator

Project description

DeepRacer Gym

PyPI Downloads Python License: MIT Tests Coverage Container DOI

DeepRacer

A Gymnasium wrapper for the AWS DeepRacer simulator. Each deepracer-v0 environment automatically launches its own containerized simulator (Docker/Podman/Apptainer), then exposes it through the standard gymnasium API.

Install

Requirements:

  • Python 3.12+
  • Linux (tested on Ubuntu 20.04+), macOS, or Windows (via WSL2)
  • A container runtime: Docker, Podman, or Apptainer (e.g. for rootless runs on HPC)
  • Sufficient hardware resources (recommended ~3 CPUs, ~6 GB RAM per environment)
pip install deepracer

Quick Start

import gymnasium as gym
import deepracer

env = gym.make("deepracer-v0")      # starts a simulator service on demand

observation, info = env.reset()

observation, reward, terminated, truncated, info = env.step(
    env.action_space.sample()
)

env.close()                         # stops + removes the simulator service

See the full documentation for details.

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

deepracer-0.1.4.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepracer-0.1.4-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file deepracer-0.1.4.tar.gz.

File metadata

  • Download URL: deepracer-0.1.4.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for deepracer-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5b20531ae0e39f6c2066e93fdcabc75374c1c22b1a05cc837ae42d2c47e941dd
MD5 c034acf0ceb477315ad132d4b7b7daba
BLAKE2b-256 cbfcfc9433e39034b65dd8186f7a8e6bde6ca987940002f709107bcc1cc26f5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepracer-0.1.4.tar.gz:

Publisher: publish-pypi.yml on uzairakbar/deepracer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deepracer-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: deepracer-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for deepracer-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d74f957a6a2a1f0a93903b10531c5ad1dac3be5b037250c9cfa1cbf40ac0588f
MD5 54d7d58deba5633b7a24a27ad7ec0b7b
BLAKE2b-256 29c9d490051b390650188f4c99bf1df19717e5e004047229e8239c438c6e5921

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepracer-0.1.4-py3-none-any.whl:

Publisher: publish-pypi.yml on uzairakbar/deepracer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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