Skip to main content

A Gymnasium wrapper for the AWS DeepRacer simulator

Project description

DeepRacer Gym

PyPI Downloads Python License: MIT Tests Coverage Docker Pulls 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.0.tar.gz (35.3 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.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deepracer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2754e757669238b91fd3f9d58e3ca5ef58e1105c888d0ace326014279112cbd4
MD5 f8592a40acc964f083f3b5cd45acb61c
BLAKE2b-256 5cc19f02bb982b3e6dbe8c244d03949c2e370052ea5a40c6bad8af0cf266c254

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepracer-0.1.0.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.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for deepracer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d07896934fad2383f5fec0a7f223898eb1c7f2057113ddd0db5d216201535bcf
MD5 fee88bc398eeb5c329ae1c3a97997691
BLAKE2b-256 345017d059dbabdb46466e43f967eca27e87b3fd3f798684d9a7f82e882672c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepracer-0.1.0-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