Settings

Theme

Show HN: REST API for Gymnasium (fka OpenAI Gym) reinforcement learning library

github.com

1 points by cloudkj 23 days ago · 1 comment · 1 min read

Reader

I was looking through some of my past personal projects tinkering with reinforcement learning, and noticed that the REST/HTTP API for the OpenAI gym available at the time is no longer supported. The API was pretty useful back then since most of ML and deep learning hadn't quite stabilized on the various Python libraries today.

gymnasium-http-api is an attempt at bringing back the same type of language-agnostic support. It mostly wraps the forked and supported Gymnasium library, with some endpoints specifically for making it easier to render and visualize the training and learning process.

Check out the README for some examples. Hope others find it useful!

thitami 23 days ago

The language-agnostic angle is the right reason to resurrect this. The original gym HTTP API was underrated for exactly that — being able to drive environments from Go or Rust without fighting Python interop was genuinely useful. Curious whether you're handling the render/visualize endpoints via server-sent events or polling. Streaming frame data over HTTP for visualisation can get messy fast, especially at higher framerates.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection