MCPcopy Index your code
hub / github.com/MrRobb/gym-rs

github.com/MrRobb/gym-rs @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
83 symbols 174 edges 6 files 13 documented · 16% updated 3y agov1.0.0 · 2019-10-11★ 705 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

gym-rs

HitCount Crates.io Docs.rs license

OpenAI gym binding for Rust.

Actively maintained! If you have any problem just create an issue.

Install

Just install the requierements layed out in the requirements.txt.

If you don't have python installed, go here

curl "https://raw.githubusercontent.com/MrRobb/gym-rs/master/requirements.txt" > requirements.txt
pip3 install -r requirements.txt

Usage

Once everything is installed, just add this crate to your your Rust project.

# Cargo.toml

[dependencies]
gym = "*"

Then, to use it just do:

// main.rs

extern crate gym;
/* ... */

Example

Once you have installed correctly the library, the only thing left is to test if its working ok. To do so, you just have to execute the following commands:

If you don't have Rust installed go here

shell script git clone https://github.com/MrRobb/gym-rs.git cd gym-rs pip3 install -r requirements.txt cargo run --example basic

This repository is inspired in this genius PR made by @NivenT. It includes changes, but it is based on his contribution.

Core symbols most depended-on inside this repo

Shape

Method 40
Function 23
Route 12
Class 6
Enum 2

Languages

Python58%
Rust42%

Modules by API surface

server.py48 symbols
src/lib.rs26 symbols
src/space.rs4 symbols
src/error.rs4 symbols
examples/basic.rs1 symbols

For agents

$ claude mcp add gym-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page