Skip to main content

Python SDK for model-environment evaluation workflows

Project description

RLMesh

RLMesh is a Python SDK for model-environment evaluation workflows. It can serve Gymnasium-style environments, connect clients over local or remote transports, and adapt values for plain Python, NumPy, and Torch users.

Beta: APIs and package structure may change before the stable release.

Installation

Install the published beta from PyPI:

pip install --pre rlmesh

Install optional adapters as needed:

pip install --pre "rlmesh[numpy]"
pip install --pre "rlmesh[gymnasium]"
pip install --pre "rlmesh[torch]"

Quickstart

Install RLMesh with Gymnasium support:

pip install --pre "rlmesh[gymnasium]"

In one process, serve any Gymnasium-compatible environment:

import gymnasium as gym
import rlmesh

env = gym.make("CartPole-v1")
rlmesh.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()

Runnable examples and exact commands live in the repository under examples/python.

Links

License

Licensed under either MIT or Apache-2.0.

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.0b1-cp311-abi3-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.11+Windows x86-64

rlmesh-0.1.0b1-cp311-abi3-musllinux_1_2_x86_64.whl (7.4 MB view details)

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

rlmesh-0.1.0b1-cp311-abi3-musllinux_1_2_aarch64.whl (7.0 MB view details)

Uploaded CPython 3.11+musllinux: musl 1.2+ ARM64

rlmesh-0.1.0b1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

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

rlmesh-0.1.0b1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.0 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

rlmesh-0.1.0b1-cp311-abi3-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

rlmesh-0.1.0b1-cp311-abi3-macosx_10_12_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

rlmesh-0.1.0b1-cp310-cp310-win_amd64.whl (6.0 MB view details)

Uploaded CPython 3.10Windows x86-64

rlmesh-0.1.0b1-cp310-cp310-musllinux_1_2_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

rlmesh-0.1.0b1-cp310-cp310-musllinux_1_2_aarch64.whl (7.0 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ ARM64

rlmesh-0.1.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

rlmesh-0.1.0b1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

rlmesh-0.1.0b1-cp310-cp310-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

rlmesh-0.1.0b1-cp310-cp310-macosx_10_12_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: rlmesh-0.1.0b1-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.3

File hashes

Hashes for rlmesh-0.1.0b1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b88be3a2dc555936286401ade3133592ea1cf6e4d40e49dec443b222c9fdf68e
MD5 67f992ba38ae440c36f37527b305aa48
BLAKE2b-256 d8910073608c0a2dee511e0456969537dbddce3ffdae9537a1bc46586bd26deb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp311-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 10fdcea8fa4bd5a0e1e08de664af2b248ec324ddf164264efeec160b0b07e8b9
MD5 2acaf0b6067c931aa8d41f57ed420f96
BLAKE2b-256 9a0b38e6d1044430c7502a6ba5d341a184a7db0f2da88e1bd3372842b88b31ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp311-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 aebbadc4da25e717bbd309e3dcd122b01f0213a133c9ab1f12f0287932cc2d56
MD5 cd789f61840a37555c57a4a66b2bcaba
BLAKE2b-256 004d020c5fa8041b457f217b8787431615d5e9e8e4bb931d5d89502328ea6e95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b34827982d2a0949c89260f8bba1e3b7e1032821d07d9ccb8cf75db5fe1c0197
MD5 f77332475b6aedc6cdd9a76685f7df53
BLAKE2b-256 a0bfdb18eb23dd0bcebea694521779e1753b66884b2f47bf52e42cf658fb347d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 283edee1727d26257b253a11642269fd05cd23e249ca21cb2c557b4818e61c18
MD5 7d9bab81a51f94120adbed5f686128a4
BLAKE2b-256 406710ceea92aea5289d268e2adc25fe55873ea3af4b819bb2f66292d7a8028a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88d5d9ef4a6d66313f31796c21f514201067f121c8b0b48d75fde7cbbaa569b6
MD5 bef291f7c35f276b3be9d83c5efcd374
BLAKE2b-256 13bb67a83414fb719e2a3126748a89634a0b190cccf1a5aa26a6019ce3a183ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f3b1e97914c600477a6c2adb9a2c68521e7f93d800d468177f5b0e08e1d4eb3b
MD5 a256eec2f1ef484fb103dd42434d95de
BLAKE2b-256 ac7018b4c83bc53b6ecafa9ddfa046d7fae304f338d15510dee6ed5dc64cf037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 61805ed29c86d3bc4ec97a5c70aff842416891dfc46275547aa3073ec7d82180
MD5 1a45b75cc78649d20fe96efde9472d9d
BLAKE2b-256 b8eb6d1586c716f973b3f61d7a55eee02337b1df6e39932f16da4c7b711a74a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 733398abc53738288efe20019d85b202cf1f0616d9c414791ded56111a3c3e64
MD5 ac7cca3e1cd30e9e12aad30e836e1344
BLAKE2b-256 df06d3f6b1c245274e66879000fc78eeb319f4c25f667219256f362b7e00ea3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp310-cp310-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 228b9e5dc87e9169ee27b4e1f073592699501bfe8f2085ce83e9ca6ef2dde7cc
MD5 4f46506dd99e3e9fbc17b8c8863557a1
BLAKE2b-256 ed75e92cf0db6afe950dd1c8d3f9d3e0575df97954aad3cfcafe46c62d7446a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f0dabe8bb8ca10d7f186c603a66c3b093c0e389a6f5bd405a43bb51a3bc5702
MD5 9190cfd23449cd93606087284967c038
BLAKE2b-256 e119537d67642b71e0ddb05798622b37b078073c367ff73c746fa047bc3e65b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 797e730450bf0fb771d449337ffa84a3ea4ac52b0dfcf5c58f2fd589c44b6138
MD5 4c6ea5565da8924b53e904aaa94441ef
BLAKE2b-256 25a75170ee55501c6f977ad7221d15850d84508bbcdeb60679b53f5b8da9d4b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 607a03ec6038cebae2f3cd15b5f477b8d52308c5c4de85e20598bc08f4334b57
MD5 b554cca07f79a7d02c7177767c8f7468
BLAKE2b-256 bf6b00f35ed318f76426149d184082b1b13a3efb79409e0149bedaf049d165f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rlmesh-0.1.0b1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f0f61f0fae7dc6942b1c352bc12d62941517952aa9d965a9d0b72109ba34653a
MD5 3f62fc2d24bfeb7b4a52888142fdbeb4
BLAKE2b-256 847f67cc46cc95ddbcbf49dfe081fa37d264a64b15b0fd044e65b3d270d5c04b

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