libsbgnpy 0.6.2__tar.gz → 0.6.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/CITATION.cff +4 -4
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/PKG-INFO +3 -1
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/development.md +16 -7
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/extensions.md +2 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/images.md +6 -2
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/index.md +4 -4
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/io.md +6 -2
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/render.md +1 -1
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/pyproject.toml +26 -1
- libsbgnpy-0.6.5/release-notes/0.6.3.md +10 -0
- libsbgnpy-0.6.5/release-notes/0.6.4.md +29 -0
- libsbgnpy-0.6.5/release-notes/0.6.5.md +31 -0
- libsbgnpy-0.6.5/scripts/generate_bindings.py +238 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/scripts/llms_txt.py +1 -1
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/__init__.py +3 -2
- libsbgnpy-0.6.5/src/libsbgnpy/image.py +164 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/io.py +252 -27
- libsbgnpy-0.6.5/src/libsbgnpy/py.typed +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/render.py +2 -11
- libsbgnpy-0.6.5/src/libsbgnpy/sbgn.py +898 -0
- libsbgnpy-0.6.5/src/libsbgnpy/schema/README.md +34 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/validator.py +7 -7
- libsbgnpy-0.6.5/tests/test_bindings.py +24 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/test_examples.py +6 -4
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/test_extension.py +24 -0
- libsbgnpy-0.6.5/tests/test_image.py +174 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/test_io.py +94 -1
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/test_notes.py +43 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/test_validator.py +29 -0
- libsbgnpy-0.6.5/tox.ini +24 -0
- libsbgnpy-0.6.2/.bumpversion.toml +0 -24
- libsbgnpy-0.6.2/.github/CODEOWNERS +0 -1
- libsbgnpy-0.6.2/.github/dependabot.yml +0 -29
- libsbgnpy-0.6.2/.github/pull_request_template.md +0 -12
- libsbgnpy-0.6.2/.github/rulesets/apply.sh +0 -43
- libsbgnpy-0.6.2/.github/rulesets/develop.json +0 -61
- libsbgnpy-0.6.2/.github/rulesets/main.json +0 -17
- libsbgnpy-0.6.2/.github/rulesets/tags.json +0 -16
- libsbgnpy-0.6.2/.github/workflows/ci-cd.yml +0 -125
- libsbgnpy-0.6.2/.github/workflows/docs.yml +0 -65
- libsbgnpy-0.6.2/.github/workflows/ruff.yml +0 -37
- libsbgnpy-0.6.2/.github/workflows/ty.yml +0 -38
- libsbgnpy-0.6.2/.pre-commit-config.yaml +0 -63
- libsbgnpy-0.6.2/.python-version +0 -1
- libsbgnpy-0.6.2/.zenodo.json +0 -22
- libsbgnpy-0.6.2/CLAUDE.md +0 -62
- libsbgnpy-0.6.2/presentations/HARMONY2025/custom.scss +0 -12
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/badges.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/ethanol_example_arcs.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/ethanol_example_glyphs.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/ethanol_example_render.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/github_screenshot.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/libsbgnpy.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/libsbgnpy_large.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/libsbgnpy_screenshot.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/sbgn_logo.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/images/toure_drosophila.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy.html +0 -829
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy.qmd +0 -264
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/clipboard/clipboard.min.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/quarto-html/light-border.css +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/quarto-html/popper.min.js +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/quarto-html/quarto-syntax-highlighting-b2bd955b7378b94aa8c2ba4fafa553c9.css +0 -205
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/quarto-html/tabby.min.js +0 -418
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/quarto-html/tippy.css +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/quarto-html/tippy.umd.min.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/highlight/highlight.esm.js +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/highlight/highlight.js +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/highlight/monokai.css +0 -71
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/highlight/plugin.js +0 -439
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/highlight/zenburn.css +0 -80
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/markdown/markdown.esm.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/markdown/markdown.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/markdown/plugin.js +0 -491
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/math/katex.js +0 -96
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/math/math.esm.js +0 -6
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/math/math.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/math/mathjax2.js +0 -89
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/math/mathjax3.js +0 -77
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/math/plugin.js +0 -15
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/notes/notes.esm.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/notes/notes.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/notes/plugin.js +0 -267
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/notes/speaker-view.html +0 -898
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/pdf-export/pdfexport.js +0 -115
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/pdf-export/plugin.yml +0 -2
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.css +0 -31
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.js +0 -351
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/quarto-line-highlight/plugin.yml +0 -4
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/quarto-support/footer.css +0 -110
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/quarto-support/plugin.yml +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/quarto-support/support.js +0 -419
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/README.md +0 -163
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/LICENSE.txt +0 -34
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/all.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/brands.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/fontawesome.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/regular.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/solid.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/svg-with-js.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/v4-shims.css +0 -2170
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/v4-shims.min.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.eot +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.svg +0 -1127
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.ttf +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.woff +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.woff2 +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.eot +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.svg +0 -467
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.ttf +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.woff +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.woff2 +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.eot +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.svg +0 -2231
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.ttf +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.woff +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.woff2 +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/blackboard.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-black.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-blue.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-green.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-orange.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-purple.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-red.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-yellow.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-blue.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-green.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-orange.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-purple.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-red.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-white.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-yellow.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/sponge.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/whiteboard.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/plugin.js +0 -1975
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/plugin.yml +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/style.css +0 -44
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/menu.css +0 -346
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/menu.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/plugin.yml +0 -9
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/quarto-menu.css +0 -68
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/quarto-menu.js +0 -46
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/search/plugin.js +0 -243
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/search/search.esm.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/search/search.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/zoom/plugin.js +0 -264
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/zoom/zoom.esm.js +0 -11
- libsbgnpy-0.6.2/presentations/HARMONY2025/libsbgnpy_files/libs/revealjs/plugin/zoom/zoom.js +0 -11
- libsbgnpy-0.6.2/presentations/HARMONY2025/styles.css +0 -9
- libsbgnpy-0.6.2/presentations/HARMONY2026/.gitignore +0 -2
- libsbgnpy-0.6.2/presentations/HARMONY2026/README.md +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/_extensions/grantmcdermott/clean/_extension.yml +0 -20
- libsbgnpy-0.6.2/presentations/HARMONY2026/_extensions/grantmcdermott/clean/clean.scss +0 -351
- libsbgnpy-0.6.2/presentations/HARMONY2026/_extensions/grantmcdermott/clean/mathjax-config.js +0 -18
- libsbgnpy-0.6.2/presentations/HARMONY2026/custom.scss +0 -12
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/badges.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/ethanol_example_arcs.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/ethanol_example_glyphs.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/ethanol_example_render.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/github_screenshot.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/headshot.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/libsbgnpy.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/libsbgnpy_large.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/libsbgnpy_screenshot.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/qr_livermetabolism.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/sbgn_logo.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/images/toure_drosophila.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy.bib +0 -123
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy.qmd +0 -293
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/clipboard/clipboard.min.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/quarto-html/light-border.css +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/quarto-html/popper.min.js +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/quarto-html/quarto-syntax-highlighting-ed96de9b727972fe78a7b5d16c58bf87.css +0 -236
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/quarto-html/tabby.min.js +0 -418
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/quarto-html/tippy.css +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/quarto-html/tippy.umd.min.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/highlight/highlight.esm.js +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/highlight/highlight.js +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/highlight/monokai.css +0 -71
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/highlight/plugin.js +0 -439
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/highlight/zenburn.css +0 -80
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/markdown/markdown.esm.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/markdown/markdown.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/markdown/plugin.js +0 -491
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/math/katex.js +0 -96
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/math/math.esm.js +0 -6
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/math/math.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/math/mathjax2.js +0 -89
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/math/mathjax3.js +0 -77
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/math/plugin.js +0 -15
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/notes/notes.esm.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/notes/notes.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/notes/plugin.js +0 -267
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/notes/speaker-view.html +0 -898
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/pdf-export/pdfexport.js +0 -115
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/pdf-export/plugin.yml +0 -2
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.css +0 -31
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/quarto-line-highlight/line-highlight.js +0 -351
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/quarto-line-highlight/plugin.yml +0 -4
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/quarto-support/footer.css +0 -110
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/quarto-support/plugin.yml +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/quarto-support/support.js +0 -419
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/README.md +0 -163
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/LICENSE.txt +0 -34
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/all.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/brands.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/fontawesome.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/regular.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/solid.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/svg-with-js.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/v4-shims.css +0 -2170
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/css/v4-shims.min.css +0 -5
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.eot +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.svg +0 -1127
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.ttf +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.woff +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-brands-400.woff2 +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.eot +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.svg +0 -467
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.ttf +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.woff +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-regular-400.woff2 +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.eot +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.svg +0 -2231
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.ttf +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.woff +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/font-awesome/webfonts/fa-solid-900.woff2 +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/blackboard.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-black.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-blue.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-green.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-orange.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-purple.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-red.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/boardmarker-yellow.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-blue.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-green.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-orange.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-purple.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-red.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-white.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/chalk-yellow.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/sponge.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/img/whiteboard.png +0 -0
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/plugin.js +0 -1975
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/plugin.yml +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-chalkboard/style.css +0 -44
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/menu.css +0 -346
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/menu.js +0 -1
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/plugin.yml +0 -9
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/quarto-menu.css +0 -68
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/reveal-menu/quarto-menu.js +0 -46
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/search/plugin.js +0 -243
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/search/search.esm.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/search/search.js +0 -7
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/zoom/plugin.js +0 -264
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/zoom/zoom.esm.js +0 -11
- libsbgnpy-0.6.2/presentations/HARMONY2026/libsbgnpy_files/libs/revealjs/plugin/zoom/zoom.js +0 -11
- libsbgnpy-0.6.2/presentations/HARMONY2026/mathjax-config.js +0 -18
- libsbgnpy-0.6.2/presentations/HARMONY2026/styles.css +0 -21
- libsbgnpy-0.6.2/src/libsbgnpy/image.py +0 -83
- libsbgnpy-0.6.2/src/libsbgnpy/sbgn.py +0 -1010
- libsbgnpy-0.6.2/src/libsbgnpy/schema/README.md +0 -35
- libsbgnpy-0.6.2/tests/test_image.py +0 -39
- libsbgnpy-0.6.2/tox.ini +0 -20
- libsbgnpy-0.6.2/uv.lock +0 -1600
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/.gitignore +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/.ruff.toml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/LICENSE +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/README.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/README.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/console.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/image.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/index.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/io.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/log.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/render.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/sbgn.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/api/validator.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/images/ethanol_example.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/images/favicon/favicon.ico +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/images/favicon/libsbgnpy-100x100.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/images/libsbgnpy.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/images/libsbgnpy_large.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/images/libsbgnpy_screenshot.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/installation.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/maps.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/robots.txt +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/docs/validation.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/README.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/clone_marker.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/ethanol.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/extension.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/labels.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/notes.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/read.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/render.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/sbgn/adh.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/sbgn/adh_0.3.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/sbgn/glycolysis.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/sbgn/invalid.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/sbgn/neuronal_muscle_signalling_color.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/validate.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/examples/write.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.2.0.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.2.2.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.3.0.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.3.1.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.3.2.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.3.3.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.4.0.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.4.1.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.5.0.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.5.1.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.5.2.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.6.0.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.6.1.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/release-notes/0.6.2.md +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/console.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/log.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/schema/SBGN.xsd +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/src/libsbgnpy/schema/render.xsd +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/AF_Reference_Card.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/AF_Reference_Card.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/activity-nodes.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/activity-nodes.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/activity-nodes.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/auxiliary-units.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/auxiliary-units.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/auxiliary-units.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/compartment.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/compartment.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/compartment.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/delay.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/delay.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/delay.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/modulation.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/modulation.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/modulation.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/submap.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/submap.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/submap.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/submap_expanded.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/submap_expanded.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/submap_expanded.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/submaps_all-in-one.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/two_edges_between_two_activities.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/two_edges_between_two_activities.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/AF/two_edges_between_two_activities.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ER_Reference_Card.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ER_Reference_Card.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/OR gate.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/OR gate.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/OR gate.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/absolute inhibition.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/absolute inhibition.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/absolute inhibition.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/absolute stimulation.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/absolute stimulation.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/binary-no-outcome.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/binary-no-outcome.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/binary-no-outcome.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/binary-with-perturbation-and-phenotype.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/binary-with-perturbation-and-phenotype.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/binary-with-perturbation-and-phenotype.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/cis.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/cis.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/cis.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/delay.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/delay.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/delay.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/existence_variable.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/existence_variable.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/existence_variable.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/implicit_xor.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/implicit_xor.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/implicit_xor.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/invisible node.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/invisible node.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/invisible node.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/location.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/location.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/location.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/outcome-dual.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/outcome-dual.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/outcome-dual.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/outcome-simplified.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/outcome-simplified.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/outcome-simplified.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/phosphorylation.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/phosphorylation.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/phosphorylation.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-interaction.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-interaction.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-interaction.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-with-cardinality.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-with-cardinality.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-with-cardinality.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-with-perturbation-and-phenotype.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-with-perturbation-and-phenotype.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/ternary-with-perturbation-and-phenotype.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/trans.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/trans.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/ER/trans.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/PD_Reference_Card.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/PD_Reference_Card.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/activated_stat1alpha_induction_of_the_irf1_gene.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/activated_stat1alpha_induction_of_the_irf1_gene.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/adh.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/adh.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/adh.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/and.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/and.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/and.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/annotation.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/annotation.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/bool-expr-pd.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/bool-expr-pd.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/clone-marker.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/clone-marker.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/clone-marker.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/compartmentOrder1.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/compartmentOrder1.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/compartmentOrder2.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/compartmentOrder2.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/compartments.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/compartments.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/compartments.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/edgerouting.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/edgerouting.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/edgerouting.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/glycolysis.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/glycolysis.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/insulin-like_growth_factor_signaling.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/insulin-like_growth_factor_signaling.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/labeledCloneMarker.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/labeledCloneMarker.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/mapk_cascade.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/mapk_cascade.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/mixed_arcs.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/multimer.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/multimer.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/multimer.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/multimer2.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/multimer2.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/multimer2.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/neuronal_muscle_signalling.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/neuronal_muscle_signalling.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/neuronal_muscle_signalling_color.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/neuronal_muscle_signalling_color.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/or-simple.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/or-simple.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/or-simple.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/protein_degradation.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/protein_degradation.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/protein_degradation.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/reversible-verticalpn.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/reversible-verticalpn.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/reversible-verticalpn.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/states.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/states.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/states.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/statesType2.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/statesType2.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/statesType3.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/stoichiometry.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/stoichiometry.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/stoichiometry.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/submap.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/submap.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/submap.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/submap_expanded.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/submap_expanded.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/submap_expanded.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/submaps_MAPKcascade.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/utf8_test_case_with_byte_order_mark.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/utf8_test_case_with_byte_order_mark.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/utf8_test_case_with_byte_order_mark.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/utf8_test_case_without_byte_order_mark.gml +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/utf8_test_case_without_byte_order_mark.png +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/data/PD/utf8_test_case_without_byte_order_mark.sbgn +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/test_data.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/tests/test_libsbgn.py +0 -0
- {libsbgnpy-0.6.2 → libsbgnpy-0.6.5}/zensical.toml +0 -0
|
@@ -8,15 +8,15 @@ authors:
|
|
|
8
8
|
given-names: "Matthias"
|
|
9
9
|
orcid: "https://orcid.org/0000-0003-1725-179X"
|
|
10
10
|
affiliation: "Humboldt-University Berlin, Faculty of Life Science, Institute for Biology, Biology, Berlin; University Lübeck; University Hospital Schleswig-Holstein, Campus Lübeck, First Department of Medicine, Germany"
|
|
11
|
-
version: "0.6.
|
|
12
|
-
date-released: "2026-09-
|
|
13
|
-
doi: "10.5281/zenodo.
|
|
11
|
+
version: "0.6.5"
|
|
12
|
+
date-released: "2026-09-23"
|
|
13
|
+
doi: "10.5281/zenodo.22918324"
|
|
14
14
|
identifiers:
|
|
15
15
|
- type: doi
|
|
16
16
|
value: "10.5281/zenodo.597155"
|
|
17
17
|
description: "The concept DOI of the software, which always resolves to the latest version."
|
|
18
18
|
- type: doi
|
|
19
|
-
value: "10.5281/zenodo.
|
|
19
|
+
value: "10.5281/zenodo.22918324"
|
|
20
20
|
description: "The DOI of the released version, which has to be updated with every release."
|
|
21
21
|
license: MIT
|
|
22
22
|
repository-code: "https://github.com/matthiaskoenig/libsbgnpy"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: libsbgnpy
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.5
|
|
4
4
|
Summary: libsbgnpy are python utilities for working with SBGN.
|
|
5
5
|
Project-URL: Homepage, https://matthiaskoenig.github.io/libsbgnpy
|
|
6
6
|
Project-URL: Documentation, https://matthiaskoenig.github.io/libsbgnpy
|
|
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
23
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
25
|
Classifier: Topic :: Scientific/Engineering
|
|
25
26
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
@@ -38,6 +39,7 @@ Requires-Dist: pytest>=9.1.1; extra == 'dev'
|
|
|
38
39
|
Requires-Dist: ruff>=0.16.6; extra == 'dev'
|
|
39
40
|
Requires-Dist: tox>=4.61.2; extra == 'dev'
|
|
40
41
|
Requires-Dist: ty>=0.0.78; extra == 'dev'
|
|
42
|
+
Requires-Dist: xsdata[cli]>=26.2; extra == 'dev'
|
|
41
43
|
Requires-Dist: zensical>=0.0.59; extra == 'dev'
|
|
42
44
|
Description-Content-Type: text/markdown
|
|
43
45
|
|
|
@@ -19,7 +19,7 @@ A pull request can only be merged once the four required checks are green:
|
|
|
19
19
|
|
|
20
20
|
| check | workflow | content |
|
|
21
21
|
| ------- | ------------- | -------------------------------------------------------------------- |
|
|
22
|
-
| `tests` | `ci-cd.yml` |
|
|
22
|
+
| `tests` | `ci-cd.yml` | python 3.11 to 3.15 on linux, python 3.15 on macos and windows |
|
|
23
23
|
| `ruff` | `ruff.yml` | `ruff check` and `ruff format --check` |
|
|
24
24
|
| `ty` | `ty.yml` | `tox r -e ty` |
|
|
25
25
|
| `docs` | `docs.yml` | the zensical build including the api reference and the agent files |
|
|
@@ -92,25 +92,30 @@ From now on every commit is checked with ruff (lint and format) and ty, i.e., th
|
|
|
92
92
|
|
|
93
93
|
The tests are written with pytest, tox runs them against every supported python version.
|
|
94
94
|
|
|
95
|
-
The tox environments are named after the interpreter (`py3.11` to `py3.
|
|
95
|
+
The tox environments are named after the interpreter (`py3.11` to `py3.15`, see `envlist` in `tox.ini`), a single one is run with
|
|
96
96
|
```bash
|
|
97
|
-
tox r -e py3.
|
|
97
|
+
tox r -e py3.15
|
|
98
98
|
```
|
|
99
99
|
and the complete matrix, including the `ty` environment, in parallel with
|
|
100
100
|
```bash
|
|
101
101
|
tox run-parallel
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
This needs the interpreters to be available, which uv installs with `uv python install 3.11 3.12 3.13 3.14`. Continuous integration runs the same environments as `uvx --with tox-uv tox -e py3.
|
|
104
|
+
This needs the interpreters to be available, which uv installs with `uv python install 3.11 3.12 3.13 3.14 3.15`. Continuous integration runs the same environments as `uvx --with tox-uv tox -e py3.15`.
|
|
105
|
+
|
|
106
|
+
Python 3.15 is tested using the available prerelease until its final release. The default development, documentation and release environments remain on Python 3.14.
|
|
105
107
|
|
|
106
108
|
To run the tests directly against the development environment use
|
|
107
109
|
|
|
108
110
|
```bash
|
|
109
|
-
pytest # the full suite
|
|
111
|
+
pytest # the full suite, without network
|
|
110
112
|
pytest tests/test_io.py # a single module
|
|
111
113
|
pytest tests/test_io.py::test_upconvert # a single test
|
|
114
|
+
pytest -m network # the tests querying the web service
|
|
112
115
|
```
|
|
113
116
|
|
|
117
|
+
The tests which query the rendering web service, i.e., `test_render_sbgn` and the `ethanol.py` example, are marked as `network` and deselected by default, so the suite and the CI do not depend on the availability of the service. The behavior of `render_sbgn` is tested against a local HTTP server.
|
|
118
|
+
|
|
114
119
|
`tests/data` holds the reference maps of the SBGN specifications, one directory per map language. `tests/test_data.py` reads, writes and validates every one of them, so a change to the bindings or to the io is checked against the whole corpus.
|
|
115
120
|
|
|
116
121
|
`tests/test_examples.py` runs every example of `examples/` in a temporary working directory, which keeps the examples of the documentation working. The tests of `tests/test_image.py` query the rendering web service and therefore require network access.
|
|
@@ -179,9 +184,13 @@ The `documentation` workflow runs both steps, so the files are regenerated with
|
|
|
179
184
|
|
|
180
185
|
## Regenerating the bindings { #regenerating-the-bindings }
|
|
181
186
|
|
|
182
|
-
`libsbgnpy.sbgn` and `libsbgnpy.render` are generated modules and should not be edited by hand. They are generated from the schemas in `src/libsbgnpy/schema/` with [xsdata](https://github.com/tefra/xsdata); the current schemas are published with [sbgn/libsbgn](https://github.com/sbgn/libsbgn) in the `resources` folder.
|
|
187
|
+
`libsbgnpy.sbgn` and `libsbgnpy.render` are generated modules and should not be edited by hand. They are generated from the schemas in `src/libsbgnpy/schema/` with [xsdata](https://github.com/tefra/xsdata); the current schemas are published with [sbgn/libsbgn](https://github.com/sbgn/libsbgn) in the `resources` folder. `scripts/generate_bindings.py` runs the generation, including every fix applied to the output of xsdata and the formatting:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
uv run python scripts/generate_bindings.py
|
|
191
|
+
```
|
|
183
192
|
|
|
184
|
-
|
|
193
|
+
`tests/test_bindings.py` checks that the committed modules are up to date with the schemas and the installed xsdata. The fixes are described in `src/libsbgnpy/schema/README.md`.
|
|
185
194
|
|
|
186
195
|
## Work in progress
|
|
187
196
|
|
|
@@ -74,6 +74,8 @@ for glyph in sbgn.map[0].glyph:
|
|
|
74
74
|
# <html:body xmlns:html="http://www.w3.org/1999/xhtml">The insulin receptor.</html:body>
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
Element-only content is indented with two spaces. Mixed content, i.e., text next to elements as in `<p>A <b>bold</b> word</p>`, is written as it is, since indenting it would change the text. Comments are dropped, the text around them is kept.
|
|
78
|
+
|
|
77
79
|
The counterpart is `element_from_string`, which parses XML into such an entry. It is applied automatically when a document is written, so it is only needed to work with the entries directly.
|
|
78
80
|
|
|
79
81
|
Render information stored in an extension is read back with `read_render_from_extension`, see [Render information](render.md).
|
|
@@ -21,9 +21,13 @@ curl -X POST -F file=@"map.sbgn" https://sbml.bioquant.uni-heidelberg.de/layout
|
|
|
21
21
|
|
|
22
22
|
## Requirements and errors
|
|
23
23
|
|
|
24
|
-
Rendering needs an internet connection. The service is queried with a timeout of 60 seconds, `requests` raises a `RequestException` if it cannot be reached or answers with an error.
|
|
24
|
+
Rendering needs an internet connection. The service is queried with a timeout of 60 seconds, `requests` raises a `RequestException` if it cannot be reached or answers with an error. If it answers with something else than an image, e.g., the html page of a proxy, or with an image larger than 50 MB, `render_sbgn` raises a `RenderError`, a subclass of `RequestException`. The image file is written atomically, so a failed rendering never leaves a partial file and an existing image stays as it is.
|
|
25
25
|
|
|
26
|
-
Only PNG is supported, and the image file has to end in `.png
|
|
26
|
+
Only PNG is supported, and the image file has to end in `.png` (in any case); anything else raises a `ValueError` before the request is made.
|
|
27
|
+
|
|
28
|
+
!!! warning "The service currently returns JPEG images"
|
|
29
|
+
|
|
30
|
+
The web service declares its answer as `image/png`, but currently sends a JPEG. `render_sbgn` writes the image as it is and logs a warning; most image viewers and browsers detect the actual format.
|
|
27
31
|
|
|
28
32
|
## The layout comes from the document
|
|
29
33
|
|
|
@@ -99,7 +99,7 @@ The documentation is published as markdown as well, following the [llms.txt conv
|
|
|
99
99
|
|
|
100
100
|
If you use `libsbgnpy` please cite the archived software on Zenodo. [10.5281/zenodo.597155](https://doi.org/10.5281/zenodo.597155) is the concept DOI, which always resolves to the latest version; the DOI below is the one of this release:
|
|
101
101
|
|
|
102
|
-
> König, M. (2026). *libsbgnpy: python library for SBGN* (Version 0.6.
|
|
102
|
+
> König, M. (2026). *libsbgnpy: python library for SBGN* (Version 0.6.3) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.22918324
|
|
103
103
|
|
|
104
104
|
```bibtex
|
|
105
105
|
@software{konig_libsbgnpy,
|
|
@@ -107,10 +107,10 @@ If you use `libsbgnpy` please cite the archived software on Zenodo. [10.5281/zen
|
|
|
107
107
|
title = {libsbgnpy: python library for SBGN},
|
|
108
108
|
year = {2026},
|
|
109
109
|
month = {9},
|
|
110
|
-
version = {0.6.
|
|
110
|
+
version = {0.6.3},
|
|
111
111
|
publisher = {Zenodo},
|
|
112
|
-
doi = {10.5281/zenodo.
|
|
113
|
-
url = {https://doi.org/10.5281/zenodo.
|
|
112
|
+
doi = {10.5281/zenodo.22918324},
|
|
113
|
+
url = {https://doi.org/10.5281/zenodo.22918324},
|
|
114
114
|
}
|
|
115
115
|
```
|
|
116
116
|
|
|
@@ -22,7 +22,7 @@ for arc in map.arc:
|
|
|
22
22
|
|
|
23
23
|
Reading does not validate the document against the schema, it only parses it. To check that a document follows the schema see [Validation](validation.md).
|
|
24
24
|
|
|
25
|
-
A file which is no well formed XML raises an `xsdata.exceptions.ParserError`, and the path of the file is logged:
|
|
25
|
+
A file which is no well formed XML, or whose root is no SBGN-ML `sbgn` element, raises an `xsdata.exceptions.ParserError`, and the path of the file is logged:
|
|
26
26
|
|
|
27
27
|
```python
|
|
28
28
|
from xsdata.exceptions import ParserError
|
|
@@ -33,9 +33,13 @@ except ParserError as err:
|
|
|
33
33
|
print(f"not an SBGN document: {err}")
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
A file is decoded with the encoding its XML declaration names, UTF-8 if it names none. A string passed to `read_sbgn_from_string` is already decoded, so an encoding in its declaration is ignored.
|
|
37
|
+
|
|
38
|
+
Documents are parsed as untrusted input: entities are not resolved and nothing is loaded from the network, so a document cannot read local files or reach other hosts through an external entity.
|
|
39
|
+
|
|
36
40
|
### Older SBGN-ML versions
|
|
37
41
|
|
|
38
|
-
The bindings are generated from the SBGN-ML 0.3 schema. Documents in the earlier namespaces `http://sbgn.org/libsbgn/0.1` and `http://sbgn.org/libsbgn/0.2` are upconverted while reading, i.e., they are read like a 0.3 document and written back as one. The conversion is `upconvert`, which is applied by the reader and by the validator:
|
|
42
|
+
The bindings are generated from the SBGN-ML 0.3 schema. Documents in the earlier namespaces `http://sbgn.org/libsbgn/0.1` and `http://sbgn.org/libsbgn/0.2` are upconverted while reading, i.e., they are read like a 0.3 document and written back as one. The conversion is `upconvert`, which is applied by the reader and by the validator. It changes only the names of the elements and attributes, text and attribute values which mention a namespace are left as they are:
|
|
39
43
|
|
|
40
44
|
```python
|
|
41
45
|
from libsbgnpy.io import upconvert
|
|
@@ -77,7 +77,7 @@ if render_info is not None:
|
|
|
77
77
|
# grey #969696
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
It returns `None` if the map carries no render information. To parse a `renderInformation` document which is not stored in an extension use `read_render_from_string`.
|
|
80
|
+
It returns `None` if the map carries no render information. Render information in the namespace of the earlier EML render extension (`http://projects.eml.org/bcb/sbml/render/level2`), as written by older tools, is upconverted; the attributes without counterpart in the SBML render extension, `z1`, `z2` and `spreadMethod` of a linear gradient, are dropped. To parse a `renderInformation` document which is not stored in an extension use `read_render_from_string`.
|
|
81
81
|
|
|
82
82
|
## Examples
|
|
83
83
|
|
|
@@ -24,6 +24,7 @@ classifiers = [
|
|
|
24
24
|
"Programming Language :: Python :: 3.12",
|
|
25
25
|
"Programming Language :: Python :: 3.13",
|
|
26
26
|
"Programming Language :: Python :: 3.14",
|
|
27
|
+
"Programming Language :: Python :: 3.15",
|
|
27
28
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
28
29
|
"Topic :: Scientific/Engineering",
|
|
29
30
|
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
@@ -54,6 +55,7 @@ dev = [
|
|
|
54
55
|
"zensical>=0.0.59",
|
|
55
56
|
"mkdocstrings-python>=2.0.8",
|
|
56
57
|
"lxml-stubs>=0.5.1",
|
|
58
|
+
"xsdata[cli]>=26.2",
|
|
57
59
|
]
|
|
58
60
|
|
|
59
61
|
[project.urls]
|
|
@@ -73,8 +75,31 @@ exclude = [
|
|
|
73
75
|
"src/libsbgnpy/oven",
|
|
74
76
|
]
|
|
75
77
|
|
|
78
|
+
[tool.hatch.build.targets.sdist]
|
|
79
|
+
# the source distribution holds what is needed to build, test and document the
|
|
80
|
+
# package; not the presentations, the CI configuration or the lock file
|
|
81
|
+
include = [
|
|
82
|
+
"/src",
|
|
83
|
+
"/tests",
|
|
84
|
+
"/examples",
|
|
85
|
+
"/docs",
|
|
86
|
+
"/scripts",
|
|
87
|
+
"/release-notes",
|
|
88
|
+
"/README.md",
|
|
89
|
+
"/LICENSE",
|
|
90
|
+
"/CITATION.cff",
|
|
91
|
+
"/zensical.toml",
|
|
92
|
+
"/tox.ini",
|
|
93
|
+
"/.ruff.toml",
|
|
94
|
+
]
|
|
95
|
+
|
|
76
96
|
[tool.pytest.ini_options]
|
|
77
97
|
testpaths = ["tests"]
|
|
98
|
+
# tests which query the rendering web service run with `pytest -m network`
|
|
99
|
+
addopts = ["-m", "not network"]
|
|
100
|
+
markers = [
|
|
101
|
+
"network: the test queries the rendering web service",
|
|
102
|
+
]
|
|
78
103
|
|
|
79
104
|
[tool.ty.environment]
|
|
80
105
|
# first-party modules live in the src layout; the checked python version is
|
|
@@ -82,7 +107,7 @@ testpaths = ["tests"]
|
|
|
82
107
|
root = ["./src"]
|
|
83
108
|
|
|
84
109
|
[tool.ty.src]
|
|
85
|
-
include = ["src", "tests", "examples"]
|
|
110
|
+
include = ["src", "tests", "examples", "scripts"]
|
|
86
111
|
|
|
87
112
|
[tool.ty.terminal]
|
|
88
113
|
# warnings are failures: keep the codebase free of any diagnostic
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Release notes for libsbgnpy 0.6.3
|
|
2
|
+
|
|
3
|
+
## Added
|
|
4
|
+
|
|
5
|
+
- Python 3.15 support, with test coverage on Linux, macOS and Windows.
|
|
6
|
+
|
|
7
|
+
## Development
|
|
8
|
+
|
|
9
|
+
- Extend the tox matrix and development instructions to Python 3.15, using the available prerelease until its final release.
|
|
10
|
+
- Update development dependencies: Ruff 0.16.8, tox 4.61.5, ty 0.0.81 and Zensical 0.0.62.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Release notes for libsbgnpy 0.6.4
|
|
2
|
+
|
|
3
|
+
## Fixed
|
|
4
|
+
|
|
5
|
+
- Text in mixed content, e.g., `<p>A <b>bold</b> word</p>` in XHTML notes, is no longer lost when a document is written or when `element_to_string` serializes a note; mixed content is no longer indented.
|
|
6
|
+
- A document whose root is no SBGN-ML `sbgn` element raises a `ParserError` instead of being read as an empty `Sbgn`; a document missing a required element raises a `ParserError` instead of a `TypeError`.
|
|
7
|
+
- Files are decoded with the encoding of their XML declaration (e.g., `ISO-8859-1`) in `read_sbgn_from_file` and `validate_xsd`; `read_sbgn_from_string` ignores the declared encoding of the already decoded string.
|
|
8
|
+
- `upconvert` only moves element and attribute names from the SBGN-ML 0.1 and 0.2 namespaces, text and attribute values mentioning a namespace are left as they are; the validation errors of upconverted documents keep the lines of the file.
|
|
9
|
+
- `read_render_from_extension` finds the render information by its qualified name, an entry merely mentioning `renderInformation` no longer raises; render information of the earlier EML render extension is upconverted, so the render information of `neuronal_muscle_signalling_color.sbgn` can be read.
|
|
10
|
+
- `render_sbgn` checks the answer of the web service and raises the new `RenderError` (a `requests.RequestException`) if it is no image, e.g., the html page of a proxy, or larger than 50 MB; the image is written atomically and the suffix is checked in any case.
|
|
11
|
+
|
|
12
|
+
## Changed
|
|
13
|
+
|
|
14
|
+
- Documents are parsed with an explicitly hardened parser (no entity resolution, no network access) by the new `parse_xml`; `upconvert_tree` upconverts a parsed tree. `upconvert` raises an `lxml.etree.XMLSyntaxError` for a string which is no XML.
|
|
15
|
+
- The package ships a `py.typed` marker, so type checkers use its annotations.
|
|
16
|
+
- The docstrings of `libsbgnpy.sbgn` are plain google style text instead of the namespace prefixed html of the schema.
|
|
17
|
+
|
|
18
|
+
## Known issues
|
|
19
|
+
|
|
20
|
+
- The rendering web service currently returns a JPEG although it declares a PNG. `render_sbgn` writes the image as it is and logs a warning.
|
|
21
|
+
|
|
22
|
+
## Development
|
|
23
|
+
|
|
24
|
+
- The bindings are regenerated with xsdata 26.2 by `scripts/generate_bindings.py`, which applies every fix to the generated code; `tests/test_bindings.py` fails if the committed bindings are outdated.
|
|
25
|
+
- The tests querying the rendering web service are marked as `network` and deselected by default (`pytest -m network`), `render_sbgn` is tested against a local HTTP server.
|
|
26
|
+
- The source distribution only contains what is needed to build, test and document the package (1.7 MB instead of 8.4 MB).
|
|
27
|
+
- The `ty` check of tox uses the versions of `uv.lock`; the release workflow checks that the tag equals the package version, builds with `uv build` and pins the PyPI publish action to a commit.
|
|
28
|
+
- The citation information carries the DOI of 0.6.3.
|
|
29
|
+
- Update development dependencies: ty 0.0.83, tox 4.64.1, Zensical 0.0.64 and mkdocstrings-python 2.0.9; the workflows use `setup-uv` 10.2.0.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Release notes for libsbgnpy 0.6.5
|
|
2
|
+
|
|
3
|
+
This release contains the changes of 0.6.4, which was tagged but not published: the release workflow pinned the PyPI publish action to a commit without a container image. 0.6.5 is the first release with these changes on PyPI.
|
|
4
|
+
|
|
5
|
+
## Fixed
|
|
6
|
+
|
|
7
|
+
- Text in mixed content, e.g., `<p>A <b>bold</b> word</p>` in XHTML notes, is no longer lost when a document is written or when `element_to_string` serializes a note; mixed content is no longer indented.
|
|
8
|
+
- A document whose root is no SBGN-ML `sbgn` element raises a `ParserError` instead of being read as an empty `Sbgn`; a document missing a required element raises a `ParserError` instead of a `TypeError`.
|
|
9
|
+
- Files are decoded with the encoding of their XML declaration (e.g., `ISO-8859-1`) in `read_sbgn_from_file` and `validate_xsd`; `read_sbgn_from_string` ignores the declared encoding of the already decoded string.
|
|
10
|
+
- `upconvert` only moves element and attribute names from the SBGN-ML 0.1 and 0.2 namespaces, text and attribute values mentioning a namespace are left as they are; the validation errors of upconverted documents keep the lines of the file.
|
|
11
|
+
- `read_render_from_extension` finds the render information by its qualified name, an entry merely mentioning `renderInformation` no longer raises; render information of the earlier EML render extension is upconverted, so the render information of `neuronal_muscle_signalling_color.sbgn` can be read.
|
|
12
|
+
- `render_sbgn` checks the answer of the web service and raises the new `RenderError` (a `requests.RequestException`) if it is no image, e.g., the html page of a proxy, or larger than 50 MB; the image is written atomically and the suffix is checked in any case.
|
|
13
|
+
|
|
14
|
+
## Changed
|
|
15
|
+
|
|
16
|
+
- Documents are parsed with an explicitly hardened parser (no entity resolution, no network access) by the new `parse_xml`; `upconvert_tree` upconverts a parsed tree. `upconvert` raises an `lxml.etree.XMLSyntaxError` for a string which is no XML.
|
|
17
|
+
- The package ships a `py.typed` marker, so type checkers use its annotations.
|
|
18
|
+
- The docstrings of `libsbgnpy.sbgn` are plain google style text instead of the namespace prefixed html of the schema.
|
|
19
|
+
|
|
20
|
+
## Known issues
|
|
21
|
+
|
|
22
|
+
- The rendering web service currently returns a JPEG although it declares a PNG. `render_sbgn` writes the image as it is and logs a warning.
|
|
23
|
+
|
|
24
|
+
## Development
|
|
25
|
+
|
|
26
|
+
- The bindings are regenerated with xsdata 26.2 by `scripts/generate_bindings.py`, which applies every fix to the generated code; `tests/test_bindings.py` fails if the committed bindings are outdated.
|
|
27
|
+
- The tests querying the rendering web service are marked as `network` and deselected by default (`pytest -m network`), `render_sbgn` is tested against a local HTTP server.
|
|
28
|
+
- The source distribution only contains what is needed to build, test and document the package (1.7 MB instead of 8.4 MB).
|
|
29
|
+
- The `ty` check of tox uses the versions of `uv.lock`; the release workflow checks that the tag equals the package version, builds with `uv build` and pins the PyPI publish action to a commit.
|
|
30
|
+
- The citation information carries the DOI of 0.6.3.
|
|
31
|
+
- Update development dependencies: ty 0.0.83, tox 4.64.1, Zensical 0.0.64 and mkdocstrings-python 2.0.9; the workflows use `setup-uv` 10.2.0.
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"""Generate the python bindings of the XML schemas with xsdata.
|
|
2
|
+
|
|
3
|
+
`libsbgnpy.sbgn` and `libsbgnpy.render` are generated from
|
|
4
|
+
`src/libsbgnpy/schema/SBGN.xsd` (which imports `render.xsd`) with
|
|
5
|
+
[xsdata](https://github.com/tefra/xsdata). This script is the single source of
|
|
6
|
+
truth for the generation, it applies every step which used to be done by hand:
|
|
7
|
+
|
|
8
|
+
1. the documentation of the schema is html (`<p>`, `<ul>`, `<li>`, `<a>`), it is
|
|
9
|
+
converted into plain text on a temporary copy of the schema, otherwise xsdata
|
|
10
|
+
copies the markup with namespace prefixes into the docstrings,
|
|
11
|
+
2. xsdata generates google style docstrings (the convention of the package),
|
|
12
|
+
3. the module docstrings are added,
|
|
13
|
+
4. in `render.py` the namespace of the attributes is commented out: the schema
|
|
14
|
+
declares them globally (`<xs:attribute ref="render:id"/>`), which makes them
|
|
15
|
+
namespace qualified, but documents written by the SBGN tools carry them
|
|
16
|
+
without a namespace,
|
|
17
|
+
5. `ruff format` and `ruff check --fix` bring the code on the style of the
|
|
18
|
+
package.
|
|
19
|
+
|
|
20
|
+
Regenerate the bindings after a change of the schemas or of xsdata:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
uv run python scripts/generate_bindings.py
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
`--check` generates into a temporary directory and fails if the committed
|
|
27
|
+
bindings differ, `tests/test_bindings.py` runs it.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
import argparse
|
|
31
|
+
import difflib
|
|
32
|
+
import re
|
|
33
|
+
import shutil
|
|
34
|
+
import subprocess
|
|
35
|
+
import sys
|
|
36
|
+
import tempfile
|
|
37
|
+
from pathlib import Path
|
|
38
|
+
|
|
39
|
+
from lxml import etree
|
|
40
|
+
|
|
41
|
+
REPO_DIR: Path = Path(__file__).parent.parent
|
|
42
|
+
PACKAGE_DIR: Path = REPO_DIR / "src" / "libsbgnpy"
|
|
43
|
+
SCHEMA_DIR: Path = PACKAGE_DIR / "schema"
|
|
44
|
+
SCHEMAS: tuple[str, ...] = ("SBGN.xsd", "render.xsd")
|
|
45
|
+
MODULES: tuple[str, ...] = ("sbgn.py", "render.py")
|
|
46
|
+
|
|
47
|
+
XSD_NS = "http://www.w3.org/2001/XMLSchema"
|
|
48
|
+
RENDER_NS = "http://www.sbml.org/sbml/level3/version1/render/version1"
|
|
49
|
+
|
|
50
|
+
MODULE_DOCSTRINGS: dict[str, str] = {
|
|
51
|
+
"sbgn.py": '''"""Python bindings of the SBGN-ML schema.
|
|
52
|
+
|
|
53
|
+
Generated from `libsbgnpy/schema/SBGN.xsd` with
|
|
54
|
+
[xsdata](https://github.com/tefra/xsdata) by `scripts/generate_bindings.py`, see
|
|
55
|
+
`libsbgnpy/schema/README.md`; do not edit by hand. The classes mirror the
|
|
56
|
+
schema, so the
|
|
57
|
+
[SBGN specifications](https://github.com/sbgn/sbgn/wiki/SBGN_Specifications)
|
|
58
|
+
are the reference for what an element means, and the docstrings are the
|
|
59
|
+
documentation of the schema.
|
|
60
|
+
|
|
61
|
+
An SBGN document is an `Sbgn` holding `Map` objects, a map holds `Glyph` and
|
|
62
|
+
`Arc` objects, and every element inherits from `Sbgnbase`, which carries the
|
|
63
|
+
`notes` and the `extension`. See the user guide for how they are used.
|
|
64
|
+
"""
|
|
65
|
+
''',
|
|
66
|
+
"render.py": '''"""Python bindings of the render extension used by SBGN-ML.
|
|
67
|
+
|
|
68
|
+
Generated from `libsbgnpy/schema/render.xsd` with
|
|
69
|
+
[xsdata](https://github.com/tefra/xsdata) by `scripts/generate_bindings.py`, see
|
|
70
|
+
`libsbgnpy/schema/README.md`; do not edit by hand.
|
|
71
|
+
|
|
72
|
+
Render information colours a map. It is not part of the SBGN-ML schema: a
|
|
73
|
+
`RenderInformation` document is stored as an extension of the map, using the
|
|
74
|
+
vocabulary of the
|
|
75
|
+
[SBML render extension](https://sbml.org/documents/specifications/level-3/version-1/render/).
|
|
76
|
+
"""
|
|
77
|
+
''',
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
# the namespace entry following `"type": "Attribute"` in the field metadata
|
|
81
|
+
ATTRIBUTE_NAMESPACE = re.compile(
|
|
82
|
+
r'(?P<type>"type": "Attribute",\n\s*)"namespace": "' + re.escape(RENDER_NS) + '"'
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def plain_text(documentation: etree._Element) -> str:
|
|
87
|
+
"""Convert the html of an `xsd:documentation` into plain text.
|
|
88
|
+
|
|
89
|
+
xsdata wraps the description of a docstring into a single paragraph, so the
|
|
90
|
+
structure of the html (paragraphs, lists) is dropped and only its text kept.
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
documentation: the `xsd:documentation` element.
|
|
94
|
+
|
|
95
|
+
Returns:
|
|
96
|
+
The text of the documentation, whitespace collapsed.
|
|
97
|
+
"""
|
|
98
|
+
text = etree.tostring(
|
|
99
|
+
documentation, method="text", encoding="unicode", with_tail=False
|
|
100
|
+
)
|
|
101
|
+
return " ".join(text.split())
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def prepare_schemas(target_dir: Path) -> Path:
|
|
105
|
+
"""Copy the schemas and convert their documentation into plain text.
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
target_dir: directory the schemas are written to.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
Path of the SBGN schema in the target directory.
|
|
112
|
+
"""
|
|
113
|
+
for name in SCHEMAS:
|
|
114
|
+
tree = etree.parse(SCHEMA_DIR / name)
|
|
115
|
+
for documentation in tree.iter(f"{{{XSD_NS}}}documentation"):
|
|
116
|
+
text = plain_text(documentation)
|
|
117
|
+
for child in list(documentation):
|
|
118
|
+
documentation.remove(child)
|
|
119
|
+
documentation.text = text
|
|
120
|
+
tree.write(target_dir / name, xml_declaration=True, encoding="UTF-8")
|
|
121
|
+
return target_dir / "SBGN.xsd"
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def postprocess(name: str, code: str) -> str:
|
|
125
|
+
"""Apply the fixes to a generated module.
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
name: file name of the module.
|
|
129
|
+
code: code generated by xsdata.
|
|
130
|
+
|
|
131
|
+
Returns:
|
|
132
|
+
The fixed code, not yet formatted.
|
|
133
|
+
"""
|
|
134
|
+
if name == "render.py":
|
|
135
|
+
code = ATTRIBUTE_NAMESPACE.sub(
|
|
136
|
+
r'\g<type># "namespace": "' + RENDER_NS + '"', code
|
|
137
|
+
)
|
|
138
|
+
return MODULE_DOCSTRINGS[name] + "\n" + code
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def generate(output_dir: Path) -> None:
|
|
142
|
+
"""Generate the formatted binding modules into a directory.
|
|
143
|
+
|
|
144
|
+
Args:
|
|
145
|
+
output_dir: directory the modules are written to.
|
|
146
|
+
"""
|
|
147
|
+
with tempfile.TemporaryDirectory() as tmp:
|
|
148
|
+
work_dir = Path(tmp)
|
|
149
|
+
schema_path = prepare_schemas(work_dir)
|
|
150
|
+
subprocess.run(
|
|
151
|
+
[
|
|
152
|
+
sys.executable,
|
|
153
|
+
"-m",
|
|
154
|
+
"xsdata",
|
|
155
|
+
"generate",
|
|
156
|
+
schema_path.name,
|
|
157
|
+
"--package",
|
|
158
|
+
"generated",
|
|
159
|
+
"--docstring-style",
|
|
160
|
+
"Google",
|
|
161
|
+
"--max-line-length",
|
|
162
|
+
"88",
|
|
163
|
+
],
|
|
164
|
+
cwd=work_dir,
|
|
165
|
+
check=True,
|
|
166
|
+
capture_output=True,
|
|
167
|
+
)
|
|
168
|
+
for name in MODULES:
|
|
169
|
+
code = (work_dir / "generated" / name).read_text(encoding="utf-8")
|
|
170
|
+
(output_dir / name).write_text(postprocess(name, code), encoding="utf-8")
|
|
171
|
+
|
|
172
|
+
paths = [str(output_dir / name) for name in MODULES]
|
|
173
|
+
# the configuration of the repository, also for files outside of it; its
|
|
174
|
+
# per-file-ignores do not match the temporary directory, so `D` is ignored here
|
|
175
|
+
config = ["--config", str(REPO_DIR / ".ruff.toml")]
|
|
176
|
+
ruff = [sys.executable, "-m", "ruff"]
|
|
177
|
+
subprocess.run(
|
|
178
|
+
[*ruff, "check", "--fix", "-q", "--ignore", "D", *config, *paths], check=True
|
|
179
|
+
)
|
|
180
|
+
subprocess.run([*ruff, "format", "-q", *config, *paths], check=True)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def check() -> bool:
|
|
184
|
+
"""Compare freshly generated bindings with the committed ones.
|
|
185
|
+
|
|
186
|
+
Returns:
|
|
187
|
+
True if the committed bindings are up to date.
|
|
188
|
+
"""
|
|
189
|
+
with tempfile.TemporaryDirectory() as tmp:
|
|
190
|
+
output_dir = Path(tmp)
|
|
191
|
+
generate(output_dir)
|
|
192
|
+
up_to_date = True
|
|
193
|
+
for name in MODULES:
|
|
194
|
+
committed = (PACKAGE_DIR / name).read_text(encoding="utf-8").splitlines()
|
|
195
|
+
generated = (output_dir / name).read_text(encoding="utf-8").splitlines()
|
|
196
|
+
diff = list(
|
|
197
|
+
difflib.unified_diff(
|
|
198
|
+
committed,
|
|
199
|
+
generated,
|
|
200
|
+
f"committed/{name}",
|
|
201
|
+
f"generated/{name}",
|
|
202
|
+
lineterm="",
|
|
203
|
+
)
|
|
204
|
+
)
|
|
205
|
+
if diff:
|
|
206
|
+
up_to_date = False
|
|
207
|
+
print("\n".join(diff[:50]))
|
|
208
|
+
return up_to_date
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
def main() -> int:
|
|
212
|
+
"""Run the generation, or the check with `--check`.
|
|
213
|
+
|
|
214
|
+
Returns:
|
|
215
|
+
The exit code.
|
|
216
|
+
"""
|
|
217
|
+
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
|
218
|
+
parser.add_argument(
|
|
219
|
+
"--check",
|
|
220
|
+
action="store_true",
|
|
221
|
+
help="fail if the committed bindings differ from freshly generated ones",
|
|
222
|
+
)
|
|
223
|
+
args = parser.parse_args()
|
|
224
|
+
if args.check:
|
|
225
|
+
if check():
|
|
226
|
+
return 0
|
|
227
|
+
print("bindings are outdated, run `python scripts/generate_bindings.py`")
|
|
228
|
+
return 1
|
|
229
|
+
|
|
230
|
+
with tempfile.TemporaryDirectory() as tmp:
|
|
231
|
+
generate(Path(tmp))
|
|
232
|
+
for name in MODULES:
|
|
233
|
+
shutil.copyfile(Path(tmp) / name, PACKAGE_DIR / name)
|
|
234
|
+
return 0
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
if __name__ == "__main__":
|
|
238
|
+
sys.exit(main())
|
|
@@ -129,7 +129,7 @@ def members(obj: ModuleType | type, module: str) -> list[tuple[str, Any]]:
|
|
|
129
129
|
module: name of the module the members must be defined in.
|
|
130
130
|
|
|
131
131
|
Returns:
|
|
132
|
-
The members as `(name, member)
|
|
132
|
+
The members as `(name, member)`, sorted by name.
|
|
133
133
|
"""
|
|
134
134
|
items: list[tuple[str, Any]] = []
|
|
135
135
|
for name, member in inspect.getmembers(obj):
|
|
@@ -7,7 +7,7 @@ the functions to read, write, validate and render SBGN documents.
|
|
|
7
7
|
|
|
8
8
|
import logging
|
|
9
9
|
|
|
10
|
-
from libsbgnpy.image import render_sbgn
|
|
10
|
+
from libsbgnpy.image import RenderError, render_sbgn
|
|
11
11
|
from libsbgnpy.io import (
|
|
12
12
|
element_from_string,
|
|
13
13
|
element_to_string,
|
|
@@ -51,7 +51,7 @@ from libsbgnpy.sbgn import (
|
|
|
51
51
|
from libsbgnpy.validator import validate_xsd
|
|
52
52
|
|
|
53
53
|
__author__ = "Matthias Koenig"
|
|
54
|
-
__version__ = "0.6.
|
|
54
|
+
__version__ = "0.6.5"
|
|
55
55
|
|
|
56
56
|
# the package does not configure logging, see `libsbgnpy.log`
|
|
57
57
|
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
|
@@ -78,6 +78,7 @@ __all__ = [
|
|
|
78
78
|
"MapVersion",
|
|
79
79
|
"Point",
|
|
80
80
|
"Port",
|
|
81
|
+
"RenderError",
|
|
81
82
|
"RenderInformation",
|
|
82
83
|
"Sbgn",
|
|
83
84
|
"Sbgnbase",
|