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

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.0
File Size Uploaded
sbmlode-0.3.0.tar.gz 299.6 kB Details

Built distribution (wheel)

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

Total release size: 432.3 kB

Release files / sbmlode-0.3.0.tar.gz

Download URL sbmlode-0.3.0.tar.gz
Size 299.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5ff00d0d05d9cf9e4bf0795e854f388375a78ed3524cde84e8bf4e5cbcdc3c6
BLAKE2b-256 checksum
How to use checksums
30ad707c8f53b9dfd731259495197fbd6722ce5189951794d22761f388c34283
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 6, 2026.

Transparency log

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

Download URL sbmlode-0.3.0-py3-none-any.whl
Size 132.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3128841a157424e9aa62cadc3c45a7f7e55adf9abf3755ffacad04d229258553
BLAKE2b-256 checksum
How to use checksums
1775a37111ff2fb84b261f649756804d366f0a34eddc90ca14a5955e011af1cb
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 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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