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.3.tar.gz (35.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.3-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deepracer-0.1.3.tar.gz
  • Upload date:
  • Size: 35.4 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.3.tar.gz
Algorithm Hash digest
SHA256 22c2803780619e77519a3a32c6b7f7149a0306a91de46f50fce45469180d4bbe
MD5 8d41a0406bad58d321433d0275854a85
BLAKE2b-256 9c875b2a331330e8e511fe75dfaf44a53a04fa6f8a13e03e012d514ac56cf2cc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: deepracer-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 31.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 43ef9ad0a409a4644063e88481cd161aeddd3d3dd6b6874a72a956ce74c54233
MD5 9f5f125f9b3aa693382a6101f442c2e5
BLAKE2b-256 cc84c7431ca8542e09275d17b9daba464e0d1eb13000fd993aeca40003ba165c

See more details on using hashes here.

Provenance

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