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.5

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.5
File Size Uploaded Provenance Actions
bs_simulators-0.1.5.tar.gz 114.9 kB With provenance Details for bs_simulators-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 174.0 kB

Release files / bs_simulators-0.1.5.tar.gz

Download URL bs_simulators-0.1.5.tar.gz
Size 114.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cc86e587ab1b7926b0c1cda98951c43c92cfc2e688b29ffc56fbf0831719d5ad
BLAKE2b-256 checksum
How to use checksums
3f5e469e082edd4b8d6c12499c7c042a9161618e52008cf6639a5bc89c0fc027
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 21, 2026.

Transparency log

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

Download URL bs_simulators-0.1.5-py3-none-any.whl
Size 59.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
774b98f862e006e241a346181067b739bac34f84ec497d8fea331b7b41f263f9
BLAKE2b-256 checksum
How to use checksums
0ea613423eb72724a35a3558c5752d77fc0e9fb1bc07f2efeddd615221176dd4
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 21, 2026.

Transparency log

Security for bs-simulators 0.1.5

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.5.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 21, 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