Skip to content

API overview

The public API should expose the parser and writer functions used by the CLI:

from ode2sbml import from_function, from_dict, from_sympy, to_sbml, to_petab

The lower-level modules are documented here because they are useful for testing, extension, and debugging.

Recommended import style

Use top-level imports for normal workflows. Use module-level imports only when testing internals or extending the converter.

Core modules

Module Main objects
ode2sbml.model ODEModel, Species, Parameter, RateRule, AssignmentRule, EventTrigger
ode2sbml.parser from_function, from_dict, from_sympy
ode2sbml.converters.sbml_writer model_to_sbml_doc, write_sbml, model_to_sbml_string
ode2sbml.converters.petab_writer write_petab
ode2sbml.converters.mathml_utils formula_to_astnode, sympy_to_astnode, astnode_to_sympy, formula_to_mathml_str
ode2sbml.validators.sbml_validator validate_sbml_doc, validate_sbml_file, validate_sbml_string
ode2sbml.annotations set_sbo_term, add_miriam_annotation, SBO constants