Skip to main content

ruxla

ruxla runs reinforcement learning environments at native speed and keeps them compatible with JAX. Environments written in Rust, or imported from their JAX implementations (gymnax, Pgx, Jumanji, Craftax, ...) and compiled ahead of time, run as native code on CPU threads, or inside JAX under jit, vmap, and grad.

Installation

pip install ruxla            # ruxla.VecEnv: native environments with NumPy, no JAX
pip install "ruxla[jax]"     # also ruxla functions and environments inside JAX, and the exporters

ruxla.compile_env, which compiles environments exported from JAX on the spot, also needs a Rust toolchain (cargo).

Wheels are built for Linux (x86-64 and AArch64) and macOS on Apple silicon (11 or later); on other platforms pip builds the sdist, which needs a Rust toolchain (Windows is untested).

Native environments with NumPy

import numpy as np
import ruxla

envs = ruxla.VecEnv("CartPole-v1", num_envs=256, seed=0)   # stepped on CPU threads
obs = envs.reset()
actions = np.random.randint(0, envs.num_actions, envs.num_envs)
obs, reward, terminated, truncated, info = envs.step(actions)

VecEnv.step_into writes into arrays you allocate once, such as pinned PyTorch tensors; see Using ruxla from PyTorch.

Environments imported from JAX

Exporting needs ruxla[jax] and the environment's library (here gymnax); compiling needs cargo.

import numpy as np
import ruxla

# Export gymnax's CartPole (its jaxprs), compile it to native code with cargo, and load it.
compiled = ruxla.compile_env("gymnax:CartPole-v1")
envs = compiled.vec_env("gymnax_cartpole_v1", num_envs=4096, seed=0)
obs = envs.reset()
obs, reward, terminated, truncated, info = envs.step(np.zeros(4096, np.int32))

License

Apache License 2.0; see NOTICE for the parts derived from JAX and XLA.

Metadata

Release files for ruxla 0.1.0

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

Source distribution (sdist)

Source distribution for ruxla 0.1.0
File Size Uploaded Provenance Actions
ruxla-0.1.0.tar.gz 917.3 kB With provenance Details for ruxla-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ruxla 0.1.0
File Interpreter ABI Platform Actions
ruxla-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for ruxla-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
ruxla-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for ruxla-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
ruxla-0.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for ruxla-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 9.5 MB

Release files / ruxla-0.1.0.tar.gz

Download URL ruxla-0.1.0.tar.gz
Size 917.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a6ce55e53c2a41478cb1937182c0ed3ca5df4cab7e976c49bbb90736ac4d3a93
BLAKE2b-256 checksum
How to use checksums
0f64b87b8cb7dfd7630b2a145512376fa3aeb2df52397fcfb0f5f48040404a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / ruxla-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL ruxla-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 3.2 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
44bfb234e8bb5dda9870d3a3f92cc4bae3cf5da890aac1e8629f1d99a1a3c1a9
BLAKE2b-256 checksum
How to use checksums
99014e851f228b47064415ff8b71105ee7869abf8904517ae6dc71faf29e5d20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / ruxla-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL ruxla-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 2.8 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
5fb8aca7d8b1fbf50dde80eb23f7254001c4af30c7160e1d9b4c1b10daf71de0
BLAKE2b-256 checksum
How to use checksums
036cd301e53ce78b7c4cf921a90852b6b48792605d290a014a4894b106f8f1bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / ruxla-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL ruxla-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 2.6 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
020295cf5318b42f149d3a55fd96019de2253bc8d33c3d47abbda040036ee959
BLAKE2b-256 checksum
How to use checksums
bdfdde95f4bb09df0f1c6d4c114f7e109a71405cd7cddb1943edb11fc32cf59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for ruxla 0.1.0

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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for ruxla-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

4 release files Full provenance

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