gym-http-api  by openai

HTTP API for OpenAI Gym environments

created 9 years ago
294 stars

Top 90.9% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a REST API to the OpenAI Gym library, enabling reinforcement learning agents to be developed in languages other than Python. It exposes Gym environments and their functionalities (step, reset, space information) via HTTP endpoints, allowing for cross-language development and integration.

How It Works

The project runs a local Python server that interfaces directly with the gym library. It exposes a RESTful API with endpoints for environment creation, stepping, resetting, and querying space information. A Python client is included to demonstrate interaction, and the architecture is designed to be language-agnostic, welcoming contributions for clients in other languages.

Quick Start & Requirements

  • Install: pip install -r requirements.txt
  • Run server: python gym_http_server.py
  • Example client: python example_agent.py
  • Lua client: cd binding-lua && lua example_agent.lua
  • Prerequisites: Python, gym library.

Highlighted Details

  • REST API for cross-language Gym interaction.
  • Supports environment creation, stepping, resetting, and space querying.
  • Includes Python client and Lua client examples.
  • API specification detailed in README.

Maintenance & Community

The project is marked as "Archive" and no updates are expected. Contributions for clients in other languages were welcomed.

Licensing & Compatibility

The repository does not explicitly state a license in the README.

Limitations & Caveats

The project is archived and no longer maintained or updated. The env.monitor.start function's video_callable parameter is not implemented.

Health Check
Last commit

2 years ago

Responsiveness

1+ week

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 90 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google).

python-openai-demos by pamelafox

0%
374
Python scripts for OpenAI API demos
created 1 year ago
updated 1 week ago
Feedback? Help us improve.