Skip to main content

Python SDK for model-environment evaluation workflows

Project description

RLMesh

RLMesh is a Python SDK for model-environment evaluation. It serves Gymnasium-style environments, connects clients over local or remote transports, and adapts values for plain Python, NumPy, Torch, and JAX users.

Pre-1.0 (0.x): the stable API may change in a minor release, with a migration note, so pin a minor range for active projects.

Installation

Install from PyPI:

pip install rlmesh

Install optional adapters as needed:

pip install "rlmesh[numpy]"
pip install "rlmesh[gymnasium]"
pip install "rlmesh[torch]"
pip install "rlmesh[jax]"

Quickstart

Install RLMesh with Gymnasium support and the NumPy client adapter:

pip install "rlmesh[gymnasium,numpy]"

In one process, serve any Gymnasium-compatible environment:

import gymnasium as gym
from rlmesh import EnvServer

env = gym.make("CartPole-v1")
EnvServer(env, "127.0.0.1:5555").serve()

In another process, connect to it as a remote environment:

from rlmesh.numpy import RemoteEnv

env = RemoteEnv("127.0.0.1:5555")
observation, info = env.reset(seed=0)

terminated = truncated = False
while not (terminated or truncated):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info = env.step(action)

env.close()

Links

License

Licensed under either of Apache License, Version 2.0 or the MIT license, at your option. See LICENSE-APACHE and LICENSE-MIT.

Python wheels also include third-party notices in THIRD_PARTY_NOTICES.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rlmesh-0.1.0rc2-cp311-abi3-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.11+Windows x86-64

rlmesh-0.1.0rc2-cp311-abi3-musllinux_1_2_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.11+musllinux: musl 1.2+ x86-64

rlmesh-0.1.0rc2-cp311-abi3-musllinux_1_2_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.11+musllinux: musl 1.2+ ARM64

rlmesh-0.1.0rc2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

rlmesh-0.1.0rc2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

rlmesh-0.1.0rc2-cp311-abi3-macosx_11_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

rlmesh-0.1.0rc2-cp311-abi3-macosx_10_12_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

rlmesh-0.1.0rc2-cp310-cp310-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.10Windows x86-64

rlmesh-0.1.0rc2-cp310-cp310-musllinux_1_2_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

rlmesh-0.1.0rc2-cp310-cp310-musllinux_1_2_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ ARM64

rlmesh-0.1.0rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

rlmesh-0.1.0rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

rlmesh-0.1.0rc2-cp310-cp310-macosx_11_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

rlmesh-0.1.0rc2-cp310-cp310-macosx_10_12_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file rlmesh-0.1.0rc2-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 87ceff87549381449a7d685bf6614af58d89337533f22db1f9a4bb22976e277c
MD5 574d67849534f88ff4b2de71424658d2
BLAKE2b-256 b70eb8d78fe378d462f214a16ed3c080b4af4154fe662a15d7e44d1b44eef002

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp311-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp311-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e4960f9685b1d4ad58c0228d066ab58c9793de0e9567e9791db4dd02ca74064d
MD5 276c3df9b21c9df20dc32585b18d93be
BLAKE2b-256 9245b80269ece7994f03dc0d773bd327081002a9ea6797fe70ea97b7bc4ec65f

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp311-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp311-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2c2109318ac0cd9929aa69b05a1d727ffcd5873f8f59a318d7d157b4f6d8303c
MD5 36507ed048e54efc6d608588cf246aa4
BLAKE2b-256 fedc8e0c33f4a914c9f650e9cbb63167fef832704ad6f6104c9c6edba704cd44

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95d89c0c502c963fe8d45a55144c287617ef45fe457ece664b971981b03246ce
MD5 282b8d204c97264a37cdaf44e5d0f344
BLAKE2b-256 7c40200a1161fbecaf5fe9bb277f3367b2a3d1a3147bb28ad5516536172ff87a

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 46a972a6bd409c2da73d5c59c8688d1f15590060844bae1ee40179d08f468b60
MD5 2a77e69b4f235709ca499eba4bf05148
BLAKE2b-256 c419907c46813c15ddea0ec1c1a1da743077506259371c60f3e9d380f487024c

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 108a48b08354f833878f4171fb39ad52ec3bd1469edfa7d4914b90db07ef45d4
MD5 db78dc86cadcbdd5c7fae3254cc08bb4
BLAKE2b-256 854402f38d0523dad5c044cc1b80039d65e97b845c6498097247cdc31e5d1a02

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1e0a9828e759d60ad0629e0c72aa82d8e88bab34531bc23df283430bcfa048d3
MD5 10ff16e1aeb6b3c54ffd7a58989c3ca7
BLAKE2b-256 d8634b046c4b5e142688ef6b93a8fc22ed720420c11e2d06a06b0521f373b542

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 055ba1a887dfecbd107cbbda6ba18b8c80d56fe3ac03cb360128ed174d5ec042
MD5 e57d9fd1ebdf35925957d610f9f56339
BLAKE2b-256 a69303976d4c742e3191b99c65bca1a82b89c418f67d838dc4c079dd9a7d5229

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4c5b4daa508f2ab2a7b6c9ecb64e48904b90e6ba1addfcc6d83483703b2e8c45
MD5 97eed0a747d65cc2a73780ed21598406
BLAKE2b-256 f62d9b7c9e24316def1706af212028074645a2cb7523f94ad54d9b95cc851f74

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp310-cp310-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp310-cp310-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 af8f22abccc0ddd016270a534dec003355b057b5ef6008848917a32ee3e0abf9
MD5 03d6575d6576a7af21af748c24c0b7a1
BLAKE2b-256 4b9d6645bf18fc220b7cb75d380e0c1df9a5b81a2f3f08ddc90a13de0a9de1a8

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9450c1c86ec87099419bbf2969bba34d5d6475464a70ea61e1e5eab4adaf0729
MD5 3a5ed057a4126ab761b8be4a37bced36
BLAKE2b-256 a7ab383c863622f8c97ff4ae9a8583610b9f4ca6ed508d94826d8541e0aa0528

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1759a87432348037d8da11f65330d67c3b58393573fe3b0f35a3fc3522e48b9b
MD5 72de4f76e1e9034756924527157041c7
BLAKE2b-256 4c848d393175e32f4467480c82d205db05078dfe1eadc153c345f3d369e74027

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99045fe8767f8e30ec783dbb59b59ad28f7ce3c539896653809462e402ac2924
MD5 585e2242b5b9176879cee7f3790af0fa
BLAKE2b-256 523753c780df6de3900aa4be0adbd83a2d944669bd408a8703d19eb54a46920e

See more details on using hashes here.

File details

Details for the file rlmesh-0.1.0rc2-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for rlmesh-0.1.0rc2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 886a4451f1ae630cc7a1441c87e3146e7362a7d88860bf1dd3b9bce68a335db1
MD5 af0c687a541e3306a5d74e9c83b002f9
BLAKE2b-256 67e2c446b8649220566ab2ef78af7ab5f21f9edfca5eab7eb1ba11302bc9c6e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page