Skip to main content

Run OpenAI Gym environments on an external process or remote machine using gRPC.

Installation

Install Gym (not required if using Docker) and run:

pip install gymx

It is recommended to use a virtual environment.

Usage

Server

To start the server run:

python -m gymx

To use a different port run:

python -m gymx --port=54321

You can also run the server using Docker:

docker run -p 54321:54321 album/gymx

Client

Inside your application use:

from gymx import Env

env = Env('CartPole-v0')

To specify the server address use:

env = Env('CartPole-v0', address='localhost:54321')

API

  • env.reset(): Reset the environment's state. Returns observation.
  • env.step(action): Step the environment by one timestep. Returns observation, reward, done, next_episode. Unlike the original gym API, it automatically resets the environment when done and returns next episode's observation instead of info.

Metadata

Release files for gymx 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gymx 0.0.1
File Size Uploaded
gymx-0.0.1.tar.gz 5.5 kB Details

Release files / gymx-0.0.1.tar.gz

Download URL gymx-0.0.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0a975ef566f6f53ac90a7e7fceb21beeb1dc2090cc7ad17175cb446f9b3e2400
BLAKE2b-256 checksum
How to use checksums
a1372b9fce09979ddbcf2525a8443b7d4ed24ad13d5a6665499ceefc1fd1439c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.20.0 CPython/3.6.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page