Skip to main content

A curated collection of helpers needed for Atari DRL environment management.

Project description

Atari Helpers

Lightweight utilities for Atari reinforcement learning: launch environments fast, capture episodic video if you want, and preprocess frames so they are ready for your agent. All signal, no cargo cult. 🎯

  • 🎮 make_environment: spin up Gymnasium Atari envs with optional video recording
  • 🖼️ process_state: grayscale + resize frames for downstream stacks
  • 🧰 Zero-fluff dependency set (Gymnasium, ALE-Py, NumPy, OpenCV)

Installation

pip install atarihelpers

Quickstart

from atarihelpers import make_environment, process_state

env = make_environment(
    "ALE/Pong-v5",
    record=True,       # 🎥 save videos to ./videos
    record_every=25,   # capture every 25th episode
)

state, _ = env.reset()
processed = process_state(
    state,
    image_size=84,     # target square size
    grayscale=True,    # convert to single channel
    resize=True,       # keep original resolution if False
)

Note: inputs should be NumPy arrays shaped (H, W, C) in BGR order (OpenCV style). Returns the processed NumPy array ready for stacking or feeding to your model.

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

atarihelpers-0.0.13.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

atarihelpers-0.0.13-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file atarihelpers-0.0.13.tar.gz.

File metadata

  • Download URL: atarihelpers-0.0.13.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atarihelpers-0.0.13.tar.gz
Algorithm Hash digest
SHA256 f12dba774fd3eafe5d5a128eae767367d32673dda51b17c11b07c6367db76a50
MD5 a59332c2a0795278f1f799df7617280f
BLAKE2b-256 f5b11402b08bf93aa8bd1f64ba0b13931c2745071ef68715074d612065fdd4a7

See more details on using hashes here.

File details

Details for the file atarihelpers-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: atarihelpers-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for atarihelpers-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 7ea53a92f32038a55918bf3898d0f630b859c476bc308b8bd8e1aa414ee65c2a
MD5 7439d069ff7fc742a93bee1de976a1d0
BLAKE2b-256 a744a13464990020c93c2341d5c2ecd4c119acf79ce071f590c60a454ebc0d65

See more details on using hashes here.

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