Skip to main content
sbmlode logo

sbmlode

PyPI CI-CD Documentation DOI

An SBML model describes a system of ordinary differential equations (ODEs), but it is not written as one: the equations follow from the reactions, rules, events and units of the model. sbmlode derives this system once and writes it

  • as code which simulates the model: python (numpy and scipy), diffrax (python with JAX and diffrax, which jax.jit compiles, jax.vmap batches and jax.grad differentiates), julia (OrdinaryDiffEq.jl) and R (deSolve), verified against libroadrunner over the SBML test suite;
  • as documents which describe the model: typst, LaTeX and markdown;
  • as typed data for an application which lays out the equations itself, such as SBML4Humans, see Typed target.

sbmlode depends on python-libsbml and jinja2 only. It is the ODE export of sbmlutils 0.14 as a package of its own, which sbmlutils re-exports as sbmlutils.converters.ode.

Installation

pip install sbmlode               # the export
pip install "sbmlode[simulate]"   # with numpy, pandas and scipy, which the python code runs with
pip install "sbmlode[diffrax]"    # with jax and diffrax, which the diffrax code runs with

Quick start

from sbmlode import OdeSystem

system = OdeSystem.from_sbml("model.xml")

code: str = system.render("python")  # the code or document as a string
system.write("model.jl")  # the format from the suffix of the file
system.write("model.md", standalone=False)  # with the options of the format

The Guide describes the formats, their options, the supported SBML and the verification, the API reference the classes and functions.

How to cite

DOI

If you use sbmlode please cite the archived software on Zenodo:

König, M. (2026). sbmlode: ordinary differential equations of SBML models (Version 0.2.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23184677

@software{koenig_sbmlode,
  author    = {König, Matthias},
  title     = {sbmlode: ordinary differential equations of SBML models},
  year      = {2026},
  month     = oct,
  version   = {0.2.0},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.23184677},
  url       = {https://doi.org/10.5281/zenodo.23184677},
}

License

sbmlode is open source under the MIT license. Please open an issue for a question or a problem.

Metadata

Release files for sbmlode 0.3.1

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

Source distribution (sdist)

Source distribution for sbmlode 0.3.1
File Size Uploaded Provenance Actions
sbmlode-0.3.1.tar.gz 300.7 kB With provenance Details for sbmlode-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sbmlode 0.3.1
File Interpreter ABI Platform Actions
sbmlode-0.3.1-py3-none-any.whl Python 3 none any Details for sbmlode-0.3.1-py3-none-any.whl

Total release size: 433.5 kB

Release files / sbmlode-0.3.1.tar.gz

Download URL sbmlode-0.3.1.tar.gz
Size 300.7 kB
Tags Source
SHA-256 checksum
How to use checksums
49dee5a4e66db1decf0281a5ef2ee15d4072a43330ec9b97dd4ec7f14f8163b0
BLAKE2b-256 checksum
How to use checksums
7679f81d31f9b81671ac279f9dfa1cd8d675d37334325b2d042069deed05e446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 22, 2026.

Transparency log

Release files / sbmlode-0.3.1-py3-none-any.whl

Download URL sbmlode-0.3.1-py3-none-any.whl
Size 132.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a8f4399b27395393a09d5e41c17122fe22c79d17f3d61f4b559034cd06b2f3c
BLAKE2b-256 checksum
How to use checksums
4e6eb79e4036c8ccb163c46cd5a587da3912eb41292c333a710f74d6bdfc001c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 22, 2026.

Transparency log

Security for sbmlode 0.3.1

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 sbmlode-0.3.1.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 Oct 22, 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