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. Returnsobservation.env.step(action): Step the environment by one timestep. Returnsobservation,reward,done,next_episode. Unlike the original gym API, it automatically resets the environment when done and returns next episode's observation instead ofinfo.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gymx-0.0.1.tar.gz | 5.5 kB | Without provenance | Details for gymx-0.0.1.tar.gz |
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
|
Security for gymx 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.