Hierarchical, multi-fidelity system simulation framework with a hardware-in-the-loop seam.
Project description
sebench
A Python framework for hierarchical, multi-fidelity system simulation with a hardware-in-the-loop seam.
Build abstract models of complex systems, drill down into concrete implementations, swap in real hardware without touching the rest, and get deterministic replay, trace analysis, and requirement verification along the way.
Install
pip install sebench
The 3D-printer demo (printerlab) lives in this repo as a reference implementation. It is not published to PyPI.
Quickstart
git clone https://github.com/<you>/sebench.git
cd sebench
make setup # uv sync + pre-commit install
make demo-pyramid # simulate printing a 20 mm pyramid (~10 s wall-clock)
make report-server # open http://localhost:8765 to view the report
Development workflow
Daily work
git add <files>
git commit -m "your message" # pre-commit runs: ruff fix, format, whitespace
git push # pre-push hook runs: lint + typecheck + unit tests
If pre-commit fixes files, re-add them and commit again:
git add <files>
git commit -m "your message"
What CI does automatically (no action needed)
On every push to main or pull request:
- Ruff lint + format check
- Mypy type check
- Determinism lint
- Full test matrix (Python 3.11 / 3.12 / 3.13 on Ubuntu, macOS, Windows)
- Coverage report (must be ≥ 80%)
- Uploads
coverage.xmlandtest-results.xmlas artifacts
Releasing to PyPI
- Go to Actions → Release sebench to PyPI → Run workflow
- Enter the version number (e.g.
0.2.0) - Click Run workflow — everything else is automatic
The workflow will: bump pyproject.toml, commit + tag on main, run the full test suite, build the wheel, publish to PyPI, and create a GitHub Release with the build artifacts.
Prerequisite: configure PyPI Trusted Publishing for this repo at pypi.org (Settings → Publishing).
Docs
- User guide — run the demo, read the report, build a custom component
- Vision — what this is and why
- Architecture — layered view
- Visualization & reports — UI reference
- Roadmap — milestones
- ADRs — architectural decision records
License
MIT. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sebench-0.2.5.tar.gz.
File metadata
- Download URL: sebench-0.2.5.tar.gz
- Upload date:
- Size: 49.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a606739d3ed34f4929e8a869a74d498ae89a5edb28fd0a6b0bb9e2a49220a3a
|
|
| MD5 |
fd22dd0d694c91b12ef5a0a36bcd2d21
|
|
| BLAKE2b-256 |
cdc1c47b9b7997296297ebc2bbee6b5d97cf5ae4628681201f7200f2bc35659e
|
Provenance
The following attestation bundles were made for sebench-0.2.5.tar.gz:
Publisher:
release.yml on dn-scribe/sebench
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sebench-0.2.5.tar.gz -
Subject digest:
6a606739d3ed34f4929e8a869a74d498ae89a5edb28fd0a6b0bb9e2a49220a3a - Sigstore transparency entry: 1396525985
- Sigstore integration time:
-
Permalink:
dn-scribe/sebench@d0b26f422f0b0c63cbeebe44b52580b9c6f5baf1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dn-scribe
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d0b26f422f0b0c63cbeebe44b52580b9c6f5baf1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sebench-0.2.5-py3-none-any.whl.
File metadata
- Download URL: sebench-0.2.5-py3-none-any.whl
- Upload date:
- Size: 63.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beed295d4c1cac40194521efb60267dc8249da0c1709fa2730aac6a3bb834579
|
|
| MD5 |
eae5d12940510cda1a5ed2c485e6c24a
|
|
| BLAKE2b-256 |
5a33502480f7b846dcfb98dcec4ce155b7dddb432f1915e1533db1311131f824
|
Provenance
The following attestation bundles were made for sebench-0.2.5-py3-none-any.whl:
Publisher:
release.yml on dn-scribe/sebench
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sebench-0.2.5-py3-none-any.whl -
Subject digest:
beed295d4c1cac40194521efb60267dc8249da0c1709fa2730aac6a3bb834579 - Sigstore transparency entry: 1396526000
- Sigstore integration time:
-
Permalink:
dn-scribe/sebench@d0b26f422f0b0c63cbeebe44b52580b9c6f5baf1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dn-scribe
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d0b26f422f0b0c63cbeebe44b52580b9c6f5baf1 -
Trigger Event:
workflow_dispatch
-
Statement type: