RideSims
RideSims is a Python CLI package for running automated ride operation sequences for RideSims simulations.
Requirements
- Python 3.13+
- uv (Python/dependency manager)
- A local environment where keyboard and mouse automation is allowed
Installation
Create or update the environment and install project dependencies:
uv sync
Install with development tools:
uv sync --group dev
Running The CLI
Run RideSims with uv-managed execution:
uv run ridesims list-rides
uv run ridesims validate-rides
uv run ridesims run-automated velocicoaster
uv run ridesims run-automated velocicoaster --max-cycles 5
uv run ridesims run-automated velocicoaster --run-once
uv run ridesims run-automated velocicoaster --max-duration-seconds 120
uv run ridesims run-automated velocicoaster --dry-run
uv run ridesims run-automated velocicoaster --backend keyboard --verbose --no-color
uv run ridesims run-automated velocicoaster --no-strict-preflight
uv run ridesims run-automated velocicoaster --strict-backend-probe
uv run ridesims run-automated velocicoaster --config ./ridesims.toml
uv run ridesims run-automated velocicoaster --json-logs
If no ride name is provided for run-automated, the CLI prompts for one.
Available Commands
list-rides: Show all supported rides.validate-rides: Validate ride imports andrun()contract checks.run-automated <ride_slug>: Start the automation sequence for a ride.
run-automated expects a ride slug (for example velocicoaster).
Key run-automated options:
--max-cycles <n>: stop after N cycles.--run-once: shorthand for running exactly one cycle.--max-duration-seconds <seconds>: stop after a time limit.--dry-run: simulate operations without keyboard input.--backend <auto|keyboard|pydirectinput>: choose input backend.--strict-backend-probe: fail if runtime capability probing reports backend issues.--strict-preflight/--no-strict-preflight: control preflight failure policy.--verbose: enable verbose logging.--no-color: disable colored terminal output.--config <path>: load defaults from a TOML file.--json-logs: output machine-readable JSON logs.
Feature-flag based behavior can be configured in [features]:
event_stream = true: emits structured lifecycle events (including correlation IDs) during runs.extended_backend_probe = true: reserved toggle for progressively deeper backend probes.
If --config is not provided, RideSims checks these paths in order:
./ridesims.toml./.ridesims.toml
Example config:
[run]
backend = "auto"
strict_backend_probe = true
[features]
event_stream = true
extended_backend_probe = false
Ride Guides
Each ride has setup and operation notes:
Architecture Layers
ridesims/cli.py: command registration, argument parsing, user-facing output.ridesims/core/session.py: run session option assembly and run-bound warnings.ridesims/core/runtime.py: bounded cycle/time execution loop.ridesims/core/errors.py: typed errors and centralized command exit policy map.ridesims/backends/: backend resolution and runtime capability probing.ridesims/rides/: ride modules plus the registry and preflight checks.ridesims/config.py: typed TOML defaults and override loading.
Exit Code Policy
Shell-friendly process exit codes are standardized across commands.
list-rides0: command completed successfully.
validate-rides0: all registered rides validated successfully.1: one or more ride preflight checks failed.
run-automated0: ride automation completed successfully.1: user/config/preflight/backend/ride contract error prevented run.130: interrupted by user (Ctrl+C).
Development
Lint the project:
uv run ruff check .
Format imports:
uv run isort .
Validate release metadata locally:
uv run python scripts/validate_release.py vX.Y.Z
Run tests:
uv run python -m pytest -q
Continuous Integration
The CI workflow runs Ruff and the unit test suite for pushes to dev and
test, and pull requests targeting either branch. Run the same checks locally
before opening a pull request:
uv run ruff check .
uv run python -m pytest -q
Creating a Release
Before creating the first PyPI release, configure GitHub Environment pypi
and a PyPI Trusted Publisher for GitHub owner copev313, repository
RideSims, workflow release.yml, and environment pypi. This uses GitHub
OIDC, so no PyPI API token secret is required.
For each release:
-
Set
project.versioninpyproject.tomltoX.Y.Z. -
Refresh
uv.lockso its RideSims package entry matchesX.Y.Z. -
Add a
## [X.Y.Z]section toCHANGELOG.md. -
Commit the release changes and create a matching annotated tag:
git tag -a vX.Y.Z -m vX.Y.Z git push origin vX.Y.Z
The tag must match vMAJOR.MINOR.PATCH. The release workflow validates the
tag, project, lockfile, installed runtime version, and changelog; runs lint and tests; builds the distribution;
publishes it to PyPI; and then creates the GitHub release. Manual release
workflow runs validate a proposed tag only and do not publish.
Release/versioning policy:
Metadata
Release files for RideSims 0.5.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 |
|---|---|---|---|---|
| ridesims-0.5.0.tar.gz | 25.0 kB | Without provenance | Details for ridesims-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ridesims-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for ridesims-0.5.0-py3-none-any.whl |
Total release size: 51.4 kB
Release files / ridesims-0.5.0.tar.gz
| Download URL | ridesims-0.5.0.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecb552eb72818493e044c772e99285a71807f523688dc513882dccf06e23232a
|
|
BLAKE2b-256 checksum How to use checksums |
a91cf06c11496082e3e4759c4f85cac33a6655612df4395576867effe6041e9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ridesims-0.5.0-py3-none-any.whl
| Download URL | ridesims-0.5.0-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c48122b1ccdb7064bfad79fa3be5b266f22b472f40b4fc399214946a50727823
|
|
BLAKE2b-256 checksum How to use checksums |
5abcff235900d719a2f85d53a278857000e6ddef7cbd903e2ffd3f2d6e534d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for RideSims 0.5.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.
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.