Skip to main content

bs-simulators

bs-simulators runs benchmark-systems models as virtual plants for live control experiments. A controller interacts with the simulation as it would with a physical plant: it reads sensor measurements and sends actuator commands while the plant evolves independently.

Installation

Install from PyPI with Python 3.13 or later:

python -m pip install bs-simulators

See the documentation on Read the Docs for examples and the API reference.

Run a virtual pendulum

After installation, launch the bundled pendulum and open http://127.0.0.1:8765/ to watch it evolve.

bs-simulators --catalogue pendulum

The catalogue also includes a DC motor, a pH neutralization process, and the Johansson four-tank process. Use bs-simulators --list-catalogue to see the available configurations.

Run a simulation from Python

from benchmark_systems.models import pendulum
from bs_simulators import Simulation

simulation = Simulation(
    pendulum, x0=[0.6, 0.0], u0=[0.0],
    parameters={"m": 1.0, "L": 1.0},
)
simulation.start(duration=1.0)
simulation.wait()

The pendulum control example shows how to read measurements and send commands in a control loop. A controller in a separate process can use the HTTP interface.

MIT License

Metadata

Release files for bs-simulators 0.1.3

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

Source distribution (sdist)

Source distribution for bs-simulators 0.1.3
File Size Uploaded Provenance Actions
bs_simulators-0.1.3.tar.gz 97.9 kB With provenance Details for bs_simulators-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bs-simulators 0.1.3
File Interpreter ABI Platform Actions
bs_simulators-0.1.3-py3-none-any.whl Python 3 none any Details for bs_simulators-0.1.3-py3-none-any.whl

Total release size: 150.2 kB

Release files / bs_simulators-0.1.3.tar.gz

Download URL bs_simulators-0.1.3.tar.gz
Size 97.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5f5280a1fc1fb0a6f9b23bb79d24d4e03fa9aba55ff7691c3426b51aed366aed
BLAKE2b-256 checksum
How to use checksums
9cfcd10d165e2350e0a255aa9188434ed1c1a73242762e8c1e65ab66490a7cbf
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 Nov 17, 2026.

Transparency log

Release files / bs_simulators-0.1.3-py3-none-any.whl

Download URL bs_simulators-0.1.3-py3-none-any.whl
Size 52.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77f22690c949cda07bd6fbd84adc121396a6acf71b803dc337a5c5c94c6a9b3c
BLAKE2b-256 checksum
How to use checksums
1e8a3e467170fc7110ea44e801498bc37a30f7ed4149766757e412e2bb858098
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 Nov 17, 2026.

Transparency log

Security for bs-simulators 0.1.3

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bs_simulators-0.1.3.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 Nov 17, 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.

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