RustForge Python
Native environments and CPU DQN, with an optional Gymnasium bridge. Import
rustforge; the package distribution is rustforge-rl (CPython 3.9+).
pip install rustforge-rl
pip install "rustforge-rl[gym]" # optional Gymnasium support
To use the new convenience functions from this checkout, activate a virtualenv,
install maturin and run maturin develop in this directory.
import rustforge as rf
print(rf.available_envs())
env = rf.make_env("CartPole-v1")
agent = rf.train("cartpole", episodes=10, output="dqn.csv")
action = agent.predict(env.reset(42))
# Optional Gymnasium: float32 NumPy observations and standard tuples.
env = rf.make_env("pendulum", api="gymnasium")
obs, info = env.reset(seed=42)
make_env defaults to native reset/step tuples. Environment names accept case,
hyphens/underscores and supported Gym ids. Native classes, DQN.train and
Gymnasium make remain available. Python DQN supports CartPole, GridWorld and
MountainCar; use the CLI for other algorithms and GPU training. Episode-limit
defaults in train are 500, 100 and 200 respectively. Training randomness is not
fully seed-controlled.
output accepts strings or pathlib paths. Invalid training settings raise
ValueError before opening output; training/log I/O failures raise RuntimeError.
Native negative discrete actions raise OverflowError; out-of-range actions and
invalid action dimensions raise ValueError.
Metadata
Release files for rustforge-rl 0.2.0
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 |
|---|---|---|---|---|
| rustforge_rl-0.2.0.tar.gz | 466.4 kB | With provenance | Details for rustforge_rl-0.2.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| rustforge_rl-0.2.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for rustforge_rl-0.2.0-cp39-abi3-win_amd64.whl |
| rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details for rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| rustforge_rl-0.2.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 | Details for rustforge_rl-0.2.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
Total release size: 3.0 MB
Release files / rustforge_rl-0.2.0.tar.gz
| Download URL | rustforge_rl-0.2.0.tar.gz |
|---|---|
| Size | 466.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0bde6e916c887ba669b1753957f4e751759d1fb0c749c2c6943a49926cfc59d
|
|
BLAKE2b-256 checksum How to use checksums |
6ae5e82ae3652dde624ecc93b26c34cd5ee1f22c422f5e5a24e9cfae79466ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 5, 2026.
Transparency logRelease files / rustforge_rl-0.2.0-cp39-abi3-win_amd64.whl
| Download URL | rustforge_rl-0.2.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 405.4 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3d8dbba389392f2d3ee1709887360ec17c5f129453d5a14df7de6b7b1a5adbc4
|
|
BLAKE2b-256 checksum How to use checksums |
417e97a6ead4b4263e59851737ec89b19dc698b949feeebb3757d76063ed8d5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 5, 2026.
Transparency logRelease files / rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 583.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
dfb2794baef525a188f98139bd18a86a510bbc1c68dca15aba4524f6fb5d6458
|
|
BLAKE2b-256 checksum How to use checksums |
93e52782426d3057ea2613380efcac686bd34aa608f21b52e1d5cb6fb8a171f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 5, 2026.
Transparency logRelease files / rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | rustforge_rl-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 555.2 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e84dc31c9afe4bd4f15ebd857a2f8dde10207af9dc5e61b5d4bc135de44aae1d
|
|
BLAKE2b-256 checksum How to use checksums |
1848a30b6d839307b97a42ccf6fa0ec008027a519ece3f7aa3450ca389567b4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 5, 2026.
Transparency logRelease files / rustforge_rl-0.2.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | rustforge_rl-0.2.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
13bec56206e18586d73ff3caf119701d1fe7e745447c90b18b214a1874c9ecc9
|
|
BLAKE2b-256 checksum How to use checksums |
081405b2bf1d55127534bd66cc76595afa36b649188543cf092d791e95e82c6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 5, 2026.
Transparency logSecurity for rustforge-rl 0.2.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 5 files in this release have been uploaded with provenance metadata.
Attestation for rustforge_rl-0.2.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 Oct 5, 2026.
Transparency logA 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.