Skip to main content
sbmlode logo

sbmlode

PyPI Python versions 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.3.1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23550486

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

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

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.2
File Size Uploaded Provenance Actions
sbmlode-0.3.2.tar.gz 302.1 kB With provenance Details for sbmlode-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 435.5 kB

Release files / sbmlode-0.3.2.tar.gz

Download URL sbmlode-0.3.2.tar.gz
Size 302.1 kB
Tags Source
SHA-256 checksum
How to use checksums
51ae1c180be1c1aa1ef24380204e19e55691388b21841f5e888939ab03332744
BLAKE2b-256 checksum
How to use checksums
6e972149891168d7f9e0b19ff41dc7ff1ef43141b9ec01ff471e19f9c66d8782
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 10, 2026.

Transparency log

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

Download URL sbmlode-0.3.2-py3-none-any.whl
Size 133.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0855c3254af83c8e90d419d7349cbef94897e2b280a3c01fca4e6b8b18e175f5
BLAKE2b-256 checksum
How to use checksums
db3f72694867aff6027a45241085830a5303ed37477195045eb573831f44d59f
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 10, 2026.

Transparency log

Security for sbmlode 0.3.2

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.2.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 10, 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