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.14.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.14-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atarihelpers-0.0.14.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.14.tar.gz
Algorithm Hash digest
SHA256 e0992a76e8fe14cc3534d5b53e941b329fbbcf93627a8563a274535b138f8511
MD5 7e8906f7d01fa17e81577393f3b33e06
BLAKE2b-256 74ec1e81e644c58ae75388aee6e5422a076ba42124408cb7f442452674831263

See more details on using hashes here.

File details

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

File metadata

  • Download URL: atarihelpers-0.0.14-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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 78dbbea2198220d298f2cf84357870507a3e1763c6f765fa7552403e07899017
MD5 5d7c83b1dea83161c028ddf1cc83323e
BLAKE2b-256 101ffdab4608fd357c1759609df7527288b5d3a491b6efe5e14764e2d06d99e1

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