--- id: python-libsbml version: "5.21.1" license: LGPL license_treatment: copyleft maintenance: active --- # python-libsbml — LibSBML Python API License: copyleft · Maintenance: active · Downloads: 143.5K/mo ## What it is and what it does python-libsbml is a Python wrapper around the libSBML C/C++ library, enabling programmatic access to Systems Biology Markup Language documents. SBML is a standard XML-based format for representing computational models in systems biology, used to exchange models of biological processes across tools and research groups. The package lets you load SBML files, inspect and modify model structure (species, reactions, parameters, compartments), validate against SBML specifications, and write modified models back to disk. The library is maintained as part of the broader libSBML project and has been in active development since 2014. It ships as pre-compiled wheels for modern Python versions on common platforms, avoiding the need to compile C/C++ code locally in most cases. There are no runtime Python dependencies; the package is self-contained once installed. Use it for: - Load and parse SBML model files to extract reaction networks and parameter values for analysis or simulation. - Programmatically construct or modify biological models in SBML format for automated model generation workflows. - Validate SBML documents against specification rules to catch structural or semantic errors before use. - Convert or translate between SBML levels or integrate SBML models into larger computational biology pipelines. - Inspect model metadata and annotations to extract biological context or cross-references embedded in SBML documents. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to read, write, and manipulate Systems Biology Markup Language (SBML) documents, supporting SBML Levels 1, 2, and 3. Yes, if you work with SBML models in systems biology or computational biology research. The package is actively maintained, has no known vulnerabilities, and offers stable wheels across major platforms and Python versions. The copyleft license is standard for research tools; verify compatibility with your project's licensing if proprietary integration is planned. Install friction is moderate but manageable via pre-built wheels. ## Install pip install python-libsbml uv add python-libsbml poetry add python-libsbml ## Installing python-libsbml Before you install: Medium install friction due to compiled C/C++ bindings; pre-built wheels available for Python 3.10–3.13 across Linux, macOS (Intel and ARM), and Windows. Last release 158 days ago with active maintenance status. License in practice: Licensed under LGPL (copyleft); derivative works and modifications must be distributed under compatible terms. Suitable for research and open-source projects; review licensing requirements if integrating into proprietary software. Quickstart: import libsbml document = libsbml.readSBML('model.xml') model = document.getModel() Requires a pre-built wheel matching your Python version and platform; source builds require C/C++ compiler and development headers. Verify before relying: - Whether python_support field being unspecified reflects actual support scope or metadata gap. - Availability of comprehensive documentation and examples for SBML Level 3 workflows. - Performance characteristics when handling large or complex SBML models. ## Package facts - License: LGPL (copyleft) - Python support: unspecified - Install friction: medium - Maintenance: active - Downloads: 143.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags SBML parser python, systems biology markup language, read write SBML files, SBML document manipulation, biological model format, sbml library python, systems-biology, xml-markup, bioinformatics [View on SkillFed](https://skillfed.io/packages/python-libsbml) · [View on PyPI](https://pypi.org/project/python-libsbml/)