libsbgnpy: python library for SBGN
libsbgnpy is a python library to work with the Systems Biology Graphical Notation (SBGN). It provides the python bindings of the SBGN-ML schema, generated with xsdata, and reads, writes, validates and renders SBGN documents.
from pathlib import Path
from libsbgnpy import read_sbgn_from_file, render_sbgn
sbgn = read_sbgn_from_file(Path("map.sbgn"))
render_sbgn(sbgn, Path("map.png"))
Installation
pip install libsbgnpy
Documentation
The documentation is at matthiaskoenig.github.io/libsbgnpy:
- Installation
- SBGN maps — the object model
- Reading and writing, notes and extensions, render information, validation, images
- API reference
- Contributing
Runnable examples are in examples/, the release notes in release-notes/.
How to cite
If you use libsbgnpy please cite the archived software on Zenodo, see CITATION.cff.
License
- Source Code: MIT
- Documentation: CC BY-SA 4.0
Funding
Matthias König (MK) was supported by the Federal Ministry of Education and Research (BMBF, Germany) within the research network Systems Medicine of the Liver (LiSyM, grant number 031L0054). MK is supported by the Federal Ministry of Education and Research (BMBF, Germany) within ATLAS by grant number 031L0304B and by the German Research Foundation (DFG) within the Research Unit Program FOR 5151 QuaLiPerF (Quantifying Liver Perfusion-Function Relationship in Complex Resection - A Systems Medicine Approach) by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA).
© 2016-2026 Matthias König
Metadata
Release files for libsbgnpy 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| libsbgnpy-0.6.0.tar.gz | 8.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libsbgnpy-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 MB
Release files / libsbgnpy-0.6.0.tar.gz
| Download URL | libsbgnpy-0.6.0.tar.gz |
|---|---|
| Size | 8.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f01109a26510c8b40315ec58e4088742e0b032251d2315b991f312016f833018
|
|
BLAKE2b-256 checksum How to use checksums |
6724453aa545f6905343c7b3a7dafa5e9ddad9df90bf229d30c895790e33ec67
|
| 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 Sep 7, 2026.
Transparency logRelease files / libsbgnpy-0.6.0-py3-none-any.whl
| Download URL | libsbgnpy-0.6.0-py3-none-any.whl |
|---|---|
| Size | 30.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62481a3e4d9fe64c96b12b860e73a7b71a6f6674e523970173b4d361a16dfb9f
|
|
BLAKE2b-256 checksum How to use checksums |
6bb067bb053990a1bc16373494de03cd2606e4cd3334db1ff2b1bed57f7d2688
|
| 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 Sep 7, 2026.
Transparency log