PYPI PACKAGE AUDIT v0.29.0 Healthy Package

sbmlsim-core

Compile SBML models to WebAssembly and simulate them

PyPkgScore sbmlsim-core
Methodology & Criteria ♥ Donate
735 / 1000
Quick Install
pip install sbmlsim-core
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
200/200
4. Docs & SEO
155/200
5. CI Engineering
130/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
5235
Last 30 days
7099
Total (180 days)
7099
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 735 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Security & Supply Chain200 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem155 / 200 ▾
Structured README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality130 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — sbmlsim-core

PyPI Metadata v0.29.0
Show full original documentation (English README) ▾

sbmlsim-core

Compile SBML models to WebAssembly and simulate them. sbmlsim-core compiles an SBML model into a WebAssembly module (model.wasm with its description model.json) and simulates it with its engine (engine.wasm: CVODE and IDA of SUNDIALS with the sparse solver KLU), with the semantics of sbmlsim and bitwise the same results on every host. This package is its python host: the compiler and the engine in one extension, run on wasmtime, so a model compiled here runs unchanged in a browser with the JavaScript host of the npm package sbmlsim-core.

Install

pip install sbmlsim-core

One abi3 wheel per platform for python 3.14 or newer: linux (x86_64, aarch64, manylinux_2_28), macOS (arm64, x86_64) and windows (x86_64). There is no source distribution; a build from source is described in the repository.

Compile and simulate

The compiler reads SBML Level 3 (version 1 or 2) core, flat and without a required package but distrib, whose uncertainties of a fitted parameter annotate it and are ignored.

import sbmlsim_core

compiled = sbmlsim_core.compile_sbml(sbml_text)  # optimize=True, jacobian="auto"
compiled.wasm  # the bytes of model.wasm
compiled.description  # the dict of model.json (model/2)

# engine.wasm and mathlib.wasm, compiled once per runtime: share it
runtime = sbmlsim_core.Runtime(max_memory_bytes=None)
model = runtime.load(compiled.wasm, compiled.description)
instance = model.instance()  # one per thread
out = instance.simulate(request)  # request: a dict of simulation/1
out.columns, out.values  # names, float64 array (rows, columns)
# a batch on rayon threads, the results in the order of the requests
results = model.simulate_many(requests, threads=None)

model.wasm and model.json written from compiled.wasm and compiled.description are what the JavaScript host loads, so a model compiled in python is simulated in a page without a server. The request and its fields, the errors and the semantics are documented on the pages of sbmlsim-core.

sbmlsim_core.web.figure_script() is the script of a static report whose <figure data-figure="KEY"> elements hold an inline SVG and a child <script type="application/json" data-figure-spec="KEY"> with its figure/1 spec: the inline build plus the renderer (plot_wasm()) as base64, which makes the figures interactive (legend toggles, selection, read-out) when the page loads, with no network.

License

MIT for the code of sbmlsim-core. The extension embeds engine.wasm, which links SUNDIALS (BSD-3-Clause) and KLU and BTF of SuiteSparse (LGPL-2.1-or-later), so the wheel is under MIT AND BSD-3-Clause AND LGPL-2.1-or-later and carries LICENSE and THIRD_PARTY.md.