libsbgnpy 0.7.1__tar.gz → 0.7.3__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.7.1 → libsbgnpy-0.7.3}/CITATION.cff +4 -4
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/PKG-INFO +16 -14
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/index.md +4 -4
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/installation.md +1 -1
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/pyproject.toml +23 -13
- libsbgnpy-0.7.3/release-notes/0.7.2.md +15 -0
- libsbgnpy-0.7.3/release-notes/0.7.3.md +21 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/scripts/generate_bindings.py +10 -1
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/__init__.py +1 -1
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/image.py +35 -2
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/io.py +38 -4
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schema/README.md +1 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_image.py +50 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_io.py +26 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/.gitignore +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/.ruff.toml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/LICENSE +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/README.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/README.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/console.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/image.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/index.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/io.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/log.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/render.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/sbgn.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/schematron.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/specification.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/api/validator.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/development.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/extensions.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/images/ethanol_example.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/images/favicon/favicon.ico +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/images/favicon/libsbgnpy-100x100.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/images/libsbgnpy.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/images/libsbgnpy_large.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/images/libsbgnpy_screenshot.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/images.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/io.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/maps.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/render.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/robots.txt +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/specifications.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/docs/validation.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/README.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/clone_marker.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/ethanol.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/extension.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/labels.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/notes.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/read.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/render.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/sbgn/adh.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/sbgn/adh_0.3.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/sbgn/glycolysis.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/sbgn/invalid.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/sbgn/neuronal_muscle_signalling_color.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/validate.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/examples/write.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.2.0.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.2.2.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.3.0.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.3.1.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.3.2.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.3.3.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.4.0.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.4.1.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.5.0.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.5.1.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.5.2.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.6.0.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.6.1.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.6.2.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.6.3.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.6.4.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.6.5.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.7.0.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/release-notes/0.7.1.md +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/scripts/llms_txt.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/scripts/specification_docs.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/console.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/log.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/py.typed +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/render.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/sbgn.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schema/LICENSE-libsbgn.txt +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schema/SBGN.xsd +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schema/render.xsd +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schema/sbgn_af.sch +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schema/sbgn_er.sch +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schema/sbgn_pd.sch +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/schematron.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/specification.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/src/libsbgnpy/validator.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/AF_Reference_Card.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/AF_Reference_Card.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/activity-nodes.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/activity-nodes.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/activity-nodes.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/auxiliary-units.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/auxiliary-units.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/auxiliary-units.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/compartment.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/compartment.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/compartment.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/delay.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/delay.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/delay.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/modulation.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/modulation.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/modulation.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/submap.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/submap.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/submap.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/submap_expanded.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/submap_expanded.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/submap_expanded.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/submaps_all-in-one.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/two_edges_between_two_activities.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/two_edges_between_two_activities.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/AF/two_edges_between_two_activities.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ER_Reference_Card.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ER_Reference_Card.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/OR gate.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/OR gate.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/OR gate.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/absolute inhibition.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/absolute inhibition.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/absolute inhibition.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/absolute stimulation.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/absolute stimulation.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/binary-no-outcome.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/binary-no-outcome.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/binary-no-outcome.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/binary-with-perturbation-and-phenotype.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/binary-with-perturbation-and-phenotype.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/binary-with-perturbation-and-phenotype.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/cis.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/cis.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/cis.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/delay.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/delay.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/delay.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/existence_variable.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/existence_variable.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/existence_variable.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/implicit_xor.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/implicit_xor.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/implicit_xor.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/invisible node.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/invisible node.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/invisible node.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/location.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/location.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/location.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/outcome-dual.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/outcome-dual.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/outcome-dual.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/outcome-simplified.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/outcome-simplified.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/outcome-simplified.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/phosphorylation.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/phosphorylation.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/phosphorylation.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-interaction.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-interaction.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-interaction.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-with-cardinality.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-with-cardinality.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-with-cardinality.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-with-perturbation-and-phenotype.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-with-perturbation-and-phenotype.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/ternary-with-perturbation-and-phenotype.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/trans.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/trans.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/ER/trans.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/PD_Reference_Card.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/PD_Reference_Card.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/activated_stat1alpha_induction_of_the_irf1_gene.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/activated_stat1alpha_induction_of_the_irf1_gene.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/adh.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/adh.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/adh.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/and.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/and.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/and.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/annotation.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/annotation.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/bool-expr-pd.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/bool-expr-pd.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/clone-marker.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/clone-marker.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/clone-marker.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/compartmentOrder1.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/compartmentOrder1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/compartmentOrder2.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/compartmentOrder2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/compartments.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/compartments.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/compartments.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/edgerouting.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/edgerouting.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/edgerouting.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/glycolysis.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/glycolysis.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/insulin-like_growth_factor_signaling.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/insulin-like_growth_factor_signaling.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/labeledCloneMarker.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/labeledCloneMarker.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/mapk_cascade.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/mapk_cascade.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/mixed_arcs.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/multimer.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/multimer.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/multimer.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/multimer2.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/multimer2.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/multimer2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/neuronal_muscle_signalling.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/neuronal_muscle_signalling.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/neuronal_muscle_signalling_color.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/neuronal_muscle_signalling_color.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/or-simple.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/or-simple.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/or-simple.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/protein_degradation.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/protein_degradation.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/protein_degradation.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/reversible-verticalpn.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/reversible-verticalpn.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/reversible-verticalpn.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/states.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/states.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/states.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/statesType2.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/statesType2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/statesType3.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/stoichiometry.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/stoichiometry.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/stoichiometry.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/submap.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/submap.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/submap.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/submap_expanded.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/submap_expanded.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/submap_expanded.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/submaps_MAPKcascade.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/utf8_test_case_with_byte_order_mark.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/utf8_test_case_with_byte_order_mark.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/utf8_test_case_with_byte_order_mark.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/utf8_test_case_without_byte_order_mark.gml +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/utf8_test_case_without_byte_order_mark.png +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/PD/utf8_test_case_without_byte_order_mark.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10101-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10101-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10102-fail-1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10102-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10102-fail-3.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10102-fail-4.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10102-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10103-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10103-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10104-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10104-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10109-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10109-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10110-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10111-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10111-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10112-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/AF/af10113-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10103-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10103-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10104-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10104-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10106-fail-1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10106-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10106-fail-3.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10106-fail-4.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10106-fail-5.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10106-fail-6.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10106-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10107-fail-1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10107-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10107-fail-3.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10107-fail-4.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10107-fail-5.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10107-fail-6.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10107-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10108-fail-1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10108-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10108-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10109-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10109-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10111-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er10111-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er20001-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/ER/er20001-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10101-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10101-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10102-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10102-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10103-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10103-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10104-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10104-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10105-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10105-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10106-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10106-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10107-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10107-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10108-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10108-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10109-fail-1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10109-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10109-fail-3.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10109-fail-4.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10109-fail-5.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10109-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10110-fail-1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10110-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10110-fail-3.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10110-fail-4.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10110-fail-5.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10110-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10111-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10111-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10111-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10112-fail-1.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10112-fail-2.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10112-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10124-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10124-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10125-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10126-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10126-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10127-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10127-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10128-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10128-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10131-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10131-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10132-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10132-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10140-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10140-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10141-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10141-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10142-fail.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/data/schematron/PD/pd10142-pass.sbgn +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_bindings.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_data.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_examples.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_extension.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_libsbgn.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_notes.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_schematron.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_specification.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_specification_docs.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tests/test_validator.py +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/tox.ini +0 -0
- {libsbgnpy-0.7.1 → libsbgnpy-0.7.3}/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.7.
|
|
12
|
-
date-released: "2026-
|
|
13
|
-
doi: "10.5281/zenodo.
|
|
11
|
+
version: "0.7.3"
|
|
12
|
+
date-released: "2026-11-02"
|
|
13
|
+
doi: "10.5281/zenodo.23876593"
|
|
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.23876593"
|
|
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.7.
|
|
3
|
+
Version: 0.7.3
|
|
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
|
|
@@ -24,25 +24,27 @@ Classifier: Programming Language :: Python :: 3.15
|
|
|
24
24
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
25
25
|
Classifier: Topic :: Scientific/Engineering
|
|
26
26
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
27
|
-
Requires-Python: >=3.11
|
|
28
|
-
Requires-Dist: certifi>=2026.
|
|
27
|
+
Requires-Python: >=3.11.5
|
|
28
|
+
Requires-Dist: certifi>=2026.11.20
|
|
29
29
|
Requires-Dist: lxml>=6.1.3
|
|
30
30
|
Requires-Dist: requests>=2.34.2
|
|
31
31
|
Requires-Dist: rich>=15.0.0
|
|
32
|
-
Requires-Dist: xsdata>=26.
|
|
32
|
+
Requires-Dist: xsdata>=26.11
|
|
33
33
|
Provides-Extra: dev
|
|
34
|
-
Requires-Dist: bump-my-version>=1.
|
|
35
|
-
Requires-Dist: mkdocstrings-python>=2.0.
|
|
36
|
-
Requires-Dist: pre-commit>=4.
|
|
34
|
+
Requires-Dist: bump-my-version>=1.8.1; extra == 'dev'
|
|
35
|
+
Requires-Dist: mkdocstrings-python>=2.0.11; extra == 'dev'
|
|
36
|
+
Requires-Dist: pre-commit>=4.7.0; extra == 'dev'
|
|
37
37
|
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
|
|
38
|
-
Requires-Dist: pytest>=9.
|
|
39
|
-
Requires-Dist: ruff>=0.
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
Requires-Dist: tox>=
|
|
42
|
-
Requires-Dist:
|
|
38
|
+
Requires-Dist: pytest>=9.2.0; extra == 'dev'
|
|
39
|
+
Requires-Dist: ruff>=0.17.6; extra == 'dev'
|
|
40
|
+
Requires-Dist: soupsieve>=4.1.3; extra == 'dev'
|
|
41
|
+
Requires-Dist: tox-uv>=1.37.9; extra == 'dev'
|
|
42
|
+
Requires-Dist: tox>=4.67.16; extra == 'dev'
|
|
43
|
+
Requires-Dist: ty>=0.0.111; extra == 'dev'
|
|
43
44
|
Requires-Dist: types-lxml>=2026.2.16; extra == 'dev'
|
|
44
|
-
Requires-Dist:
|
|
45
|
-
Requires-Dist:
|
|
45
|
+
Requires-Dist: wcmatch>=12.0.4; extra == 'dev'
|
|
46
|
+
Requires-Dist: xsdata[cli]>=26.11; extra == 'dev'
|
|
47
|
+
Requires-Dist: zensical>=0.1.3; extra == 'dev'
|
|
46
48
|
Description-Content-Type: text/markdown
|
|
47
49
|
|
|
48
50
|

|
|
@@ -102,7 +102,7 @@ The documentation is published as markdown as well, following the [llms.txt conv
|
|
|
102
102
|
|
|
103
103
|
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:
|
|
104
104
|
|
|
105
|
-
> König, M. (2026). *libsbgnpy: python library for SBGN* (Version 0.7.
|
|
105
|
+
> König, M. (2026). *libsbgnpy: python library for SBGN* (Version 0.7.2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23876593
|
|
106
106
|
|
|
107
107
|
```bibtex
|
|
108
108
|
@software{konig_libsbgnpy,
|
|
@@ -110,10 +110,10 @@ If you use `libsbgnpy` please cite the archived software on Zenodo. [10.5281/zen
|
|
|
110
110
|
title = {libsbgnpy: python library for SBGN},
|
|
111
111
|
year = {2026},
|
|
112
112
|
month = {10},
|
|
113
|
-
version = {0.7.
|
|
113
|
+
version = {0.7.2},
|
|
114
114
|
publisher = {Zenodo},
|
|
115
|
-
doi = {10.5281/zenodo.
|
|
116
|
-
url = {https://doi.org/10.5281/zenodo.
|
|
115
|
+
doi = {10.5281/zenodo.23876593},
|
|
116
|
+
url = {https://doi.org/10.5281/zenodo.23876593},
|
|
117
117
|
}
|
|
118
118
|
```
|
|
119
119
|
|
|
@@ -7,7 +7,7 @@ name = "libsbgnpy"
|
|
|
7
7
|
dynamic = ["version"]
|
|
8
8
|
description = "libsbgnpy are python utilities for working with SBGN."
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.11"
|
|
10
|
+
requires-python = ">=3.11.5"
|
|
11
11
|
license = "MIT"
|
|
12
12
|
license-files = ["LICENSE"]
|
|
13
13
|
authors = [
|
|
@@ -38,27 +38,30 @@ keywords = [
|
|
|
38
38
|
]
|
|
39
39
|
dependencies = [
|
|
40
40
|
# the CA bundle of requests, without the emSign roots of GHSA-6q48-6c7w-9gw2
|
|
41
|
-
"certifi>=2026.
|
|
41
|
+
"certifi>=2026.11.20",
|
|
42
42
|
"lxml>=6.1.3",
|
|
43
43
|
"requests>=2.34.2",
|
|
44
44
|
"rich>=15.0.0",
|
|
45
|
-
"xsdata>=26.
|
|
45
|
+
"xsdata>=26.11",
|
|
46
46
|
]
|
|
47
47
|
|
|
48
48
|
[project.optional-dependencies]
|
|
49
49
|
dev = [
|
|
50
|
-
"bump-my-version>=1.
|
|
51
|
-
"ruff>=0.
|
|
52
|
-
"pre-commit>=4.
|
|
53
|
-
"ty>=0.0.
|
|
54
|
-
"tox>=4.
|
|
55
|
-
"pytest>=9.
|
|
50
|
+
"bump-my-version>=1.8.1",
|
|
51
|
+
"ruff>=0.17.6",
|
|
52
|
+
"pre-commit>=4.7.0",
|
|
53
|
+
"ty>=0.0.111",
|
|
54
|
+
"tox>=4.67.16",
|
|
55
|
+
"pytest>=9.2.0",
|
|
56
56
|
"pytest-cov>=7.1.0",
|
|
57
|
-
"zensical>=0.
|
|
58
|
-
"mkdocstrings-python>=2.0.
|
|
59
|
-
"xsdata[cli]>=26.
|
|
57
|
+
"zensical>=0.1.3",
|
|
58
|
+
"mkdocstrings-python>=2.0.11",
|
|
59
|
+
"xsdata[cli]>=26.11",
|
|
60
|
+
# Security floors for transitive CSS and filename pattern parsers.
|
|
61
|
+
"soupsieve>=4.1.3",
|
|
62
|
+
"wcmatch>=12.0.4",
|
|
60
63
|
"types-lxml>=2026.2.16",
|
|
61
|
-
"tox-uv>=1.
|
|
64
|
+
"tox-uv>=1.37.9",
|
|
62
65
|
]
|
|
63
66
|
|
|
64
67
|
[project.urls]
|
|
@@ -115,3 +118,10 @@ include = ["src", "tests", "examples", "scripts"]
|
|
|
115
118
|
[tool.ty.terminal]
|
|
116
119
|
# warnings are failures: keep the codebase free of any diagnostic
|
|
117
120
|
error-on-warning = true
|
|
121
|
+
|
|
122
|
+
[[tool.ty.overrides]]
|
|
123
|
+
# the bindings generated by xsdata declare their XML names in a nested `Meta`
|
|
124
|
+
# class, which a subclass replaces by a class of its own; the generated `Meta`
|
|
125
|
+
# classes are no subclasses of each other and are only read by xsdata
|
|
126
|
+
include = ["src/libsbgnpy/sbgn.py", "src/libsbgnpy/render.py"]
|
|
127
|
+
rules = { incompatible-attribute-override = "ignore" }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Release notes for libsbgnpy 0.7.2
|
|
2
|
+
|
|
3
|
+
This is a maintenance release: the dependencies are updated, the package itself is unchanged.
|
|
4
|
+
|
|
5
|
+
## Security
|
|
6
|
+
|
|
7
|
+
- The lock of the development environment uses filelock 4.2.1 instead of 3.32.5 ([GHSA-v4x8-3wr5-3wq8](https://github.com/advisories/GHSA-v4x8-3wr5-3wq8), [GHSA-9vhv-jxww-xfm5](https://github.com/advisories/GHSA-9vhv-jxww-xfm5)) and virtualenv 21.15.1 instead of 21.7.13 (fixed in 21.14.9, e.g. [GHSA-394h-qwmc-48pf](https://github.com/advisories/GHSA-394h-qwmc-48pf), [GHSA-6w3r-xr62-4xcp](https://github.com/advisories/GHSA-6w3r-xr62-4xcp), [GHSA-c978-59m8-c77v](https://github.com/advisories/GHSA-c978-59m8-c77v), [GHSA-vxj4-q4g9-crj7](https://github.com/advisories/GHSA-vxj4-q4g9-crj7)) (#118). Both are tools of the development environment and do not reach an installation of libsbgnpy.
|
|
8
|
+
|
|
9
|
+
## Development
|
|
10
|
+
|
|
11
|
+
- The lock uses certifi 2026.10.23 and xsdata 26.10, with which the generated bindings are unchanged (#120).
|
|
12
|
+
- Update development dependencies: ruff 0.17.3, ty 0.0.95, tox 4.67.4, tox-uv 1.37.2, pre-commit 4.7.0, pytest 9.2.0, Zensical 0.0.73, mkdocstrings-python 2.0.10 and bump-my-version 1.6.7 (#120); the pre-commit hooks run the locked ruff and ty (#122).
|
|
13
|
+
- ty ignores the nested `Meta` classes of the generated bindings, which ty 0.0.94 reports as invalid overrides of `Sbgnbase.Meta` (#121).
|
|
14
|
+
- The workflows use astral-sh/setup-uv 10.3.3 and pypa/gh-action-pypi-publish 1.14.3 (#119).
|
|
15
|
+
- The citation information carries the DOI of 0.7.1 (#117).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Release notes for libsbgnpy 0.7.3
|
|
2
|
+
|
|
3
|
+
## Security
|
|
4
|
+
|
|
5
|
+
- Reject redirects from the rendering web service. HTTP 307 and 308 responses could forward an uploaded SBGN document to another origin. Redirect responses could also be read before the image size limit was enforced. Rendering now raises `RenderError` for redirect responses and leaves any existing image unchanged.
|
|
6
|
+
- Add regression tests for HTTP 301, 302, 303, 307 and 308 responses, including responses which claim to contain a valid image.
|
|
7
|
+
- Update Soup Sieve from 2.10 to 4.1.3, fixing denial of service in selector matching and parsing ([GHSA-mmhr-3c5m-f64f](https://github.com/advisories/GHSA-mmhr-3c5m-f64f), [GHSA-7g44-g9rc-x53w](https://github.com/advisories/GHSA-7g44-g9rc-x53w), [GHSA-6655-6qjp-jx7x](https://github.com/advisories/GHSA-6655-6qjp-jx7x)). Update wcmatch to 12.0.4, which includes the filename matching denial of service fix in 11.2 ([GHSA-53pm-wgxf-c6qf](https://github.com/advisories/GHSA-53pm-wgxf-c6qf)). Both are development dependencies; explicit version floors prevent a fresh development installation from selecting vulnerable versions.
|
|
8
|
+
- Parse standalone render XML with the same strict parser as SBGN documents. Malformed XML raises `ParserError`, entity content is ignored and an encoding declaration cannot corrupt an already decoded string.
|
|
9
|
+
- Restrict XML model lookup to libsbgnpy bindings as defense in depth, excluding unrelated dataclasses loaded by an application.
|
|
10
|
+
- Pin workflow actions to immutable commits and update checkout to 7.0.1, setup-uv to 10.4.0 and deploy-pages to 5.0.1. Release branch synchronization supplies credentials only to its push instead of storing them in the checkout.
|
|
11
|
+
|
|
12
|
+
## Compatibility
|
|
13
|
+
|
|
14
|
+
- Python 3.11.5 or newer is required. This preserves the Python 3.11 to 3.15 support range while allowing every locked environment to use the patched Soup Sieve releases, which require at least Python 3.11.5.
|
|
15
|
+
|
|
16
|
+
## Dependencies and development
|
|
17
|
+
|
|
18
|
+
- Update runtime dependency floors to certifi 2026.11.20 and xsdata 26.11, and refresh the complete dependency lock.
|
|
19
|
+
- Update development tools, including bump-my-version 1.8.1, Ruff 0.17.6, ty 0.0.111, tox 4.67.16, tox-uv 1.37.9, Zensical 0.1.3 and mkdocstrings-python 2.0.11. Pre-commit uses the updated Ruff and ty versions.
|
|
20
|
+
- Use ty's renamed `incompatible-attribute-override` rule for the generated bindings.
|
|
21
|
+
- Preserve the public `Enum` behavior when generating bindings with xsdata 26.11, which otherwise changes their base class to `StrEnum`.
|
|
@@ -14,7 +14,9 @@ truth for the generation, it applies every step which used to be done by hand:
|
|
|
14
14
|
declares them globally (`<xs:attribute ref="render:id"/>`), which makes them
|
|
15
15
|
namespace qualified, but documents written by the SBGN tools carry them
|
|
16
16
|
without a namespace,
|
|
17
|
-
5.
|
|
17
|
+
5. string enums generated by xsdata 26.11 use the existing `Enum` base to
|
|
18
|
+
preserve the public API,
|
|
19
|
+
6. `ruff format` and `ruff check --fix` bring the code on the style of the
|
|
18
20
|
package.
|
|
19
21
|
|
|
20
22
|
Regenerate the bindings after a change of the schemas or of xsdata:
|
|
@@ -135,6 +137,13 @@ def postprocess(name: str, code: str) -> str:
|
|
|
135
137
|
code = ATTRIBUTE_NAMESPACE.sub(
|
|
136
138
|
r'\g<type># "namespace": "' + RENDER_NS + '"', code
|
|
137
139
|
)
|
|
140
|
+
if name == "sbgn.py":
|
|
141
|
+
# xsdata 26.11 defaults to StrEnum. Keep the public enum comparison,
|
|
142
|
+
# hashing and string conversion behavior of the existing bindings.
|
|
143
|
+
code = code.replace("from enum import StrEnum\n", "from enum import Enum\n")
|
|
144
|
+
code = re.sub(
|
|
145
|
+
r"^(class \w+)\(StrEnum\):", r"\1(Enum):", code, flags=re.MULTILINE
|
|
146
|
+
)
|
|
138
147
|
return MODULE_DOCSTRINGS[name] + "\n" + code
|
|
139
148
|
|
|
140
149
|
|
|
@@ -60,7 +60,7 @@ from libsbgnpy.specification import (
|
|
|
60
60
|
from libsbgnpy.validator import validate, validate_xsd
|
|
61
61
|
|
|
62
62
|
__author__ = "Matthias Koenig"
|
|
63
|
-
__version__ = "0.7.
|
|
63
|
+
__version__ = "0.7.3"
|
|
64
64
|
|
|
65
65
|
# the package does not configure logging, see `libsbgnpy.log`
|
|
66
66
|
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
|
@@ -67,6 +67,8 @@ def render_sbgn(sbgn: Sbgn, image_file: Path, file_format: str = "png") -> None:
|
|
|
67
67
|
is. The service currently returns a JPEG although it declares a PNG; the
|
|
68
68
|
JPEG is written as it is and a warning is logged.
|
|
69
69
|
|
|
70
|
+
Redirects are rejected so that the document is only sent to `RENDER_URL`.
|
|
71
|
+
|
|
70
72
|
Args:
|
|
71
73
|
sbgn: SBGN document
|
|
72
74
|
image_file: path of the image to create, ending in `.<file_format>`
|
|
@@ -75,8 +77,8 @@ def render_sbgn(sbgn: Sbgn, image_file: Path, file_format: str = "png") -> None:
|
|
|
75
77
|
|
|
76
78
|
Raises:
|
|
77
79
|
ValueError: if the format is not supported or the file has another suffix
|
|
78
|
-
RenderError: if the web service answers with something else
|
|
79
|
-
image, or with an image larger than `RENDER_MAX_BYTES`
|
|
80
|
+
RenderError: if the web service redirects, answers with something else
|
|
81
|
+
than an image, or with an image larger than `RENDER_MAX_BYTES`
|
|
80
82
|
requests.RequestException: if the web service cannot be reached or fails;
|
|
81
83
|
`RenderError` is a subclass
|
|
82
84
|
"""
|
|
@@ -97,6 +99,8 @@ def render_sbgn(sbgn: Sbgn, image_file: Path, file_format: str = "png") -> None:
|
|
|
97
99
|
files={"file": ("render.sbgn", xml_bytes, "application/xml")},
|
|
98
100
|
timeout=RENDER_TIMEOUT,
|
|
99
101
|
stream=True,
|
|
102
|
+
allow_redirects=False,
|
|
103
|
+
hooks={"response": _reject_redirect},
|
|
100
104
|
) as response:
|
|
101
105
|
response.raise_for_status()
|
|
102
106
|
content_type = response.headers.get("Content-Type", "")
|
|
@@ -119,6 +123,35 @@ def render_sbgn(sbgn: Sbgn, image_file: Path, file_format: str = "png") -> None:
|
|
|
119
123
|
logger.info("SBGN rendered: %s", image_file)
|
|
120
124
|
|
|
121
125
|
|
|
126
|
+
def _reject_redirect(
|
|
127
|
+
response: requests.Response, *args: object, **kwargs: object
|
|
128
|
+
) -> requests.Response:
|
|
129
|
+
"""Reject redirects before Requests reads their bodies.
|
|
130
|
+
|
|
131
|
+
Requests consumes a redirect body even with `allow_redirects=False` to
|
|
132
|
+
prepare the next request. A response hook runs before that happens, keeping
|
|
133
|
+
the body outside the image size limit from being read into memory. The
|
|
134
|
+
response must be closed here because the caller has not received it yet.
|
|
135
|
+
|
|
136
|
+
Args:
|
|
137
|
+
response: response from the rendering web service
|
|
138
|
+
args: positional arguments supplied by Requests
|
|
139
|
+
kwargs: request options supplied by Requests
|
|
140
|
+
|
|
141
|
+
Returns:
|
|
142
|
+
The response if it does not redirect.
|
|
143
|
+
|
|
144
|
+
Raises:
|
|
145
|
+
RenderError: if the web service redirects
|
|
146
|
+
"""
|
|
147
|
+
if 300 <= response.status_code < 400:
|
|
148
|
+
response.close()
|
|
149
|
+
raise RenderError(
|
|
150
|
+
"The rendering web service redirected the request.", response=response
|
|
151
|
+
)
|
|
152
|
+
return response
|
|
153
|
+
|
|
154
|
+
|
|
122
155
|
def _read_limited(response: requests.Response) -> bytes:
|
|
123
156
|
"""Read the body of a streamed response up to `RENDER_MAX_BYTES`.
|
|
124
157
|
|
|
@@ -57,6 +57,11 @@ RENDER_NAMESPACES_OLD = ("http://projects.eml.org/bcb/sbml/render/level2",)
|
|
|
57
57
|
RENDER_ATTRIBUTES_OLD = {"linearGradient": ("z1", "z2", "spreadMethod")}
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
def _binding_context() -> XmlContext:
|
|
61
|
+
"""Restrict XML-selected model types to the library's bindings."""
|
|
62
|
+
return XmlContext(models_package="libsbgnpy.")
|
|
63
|
+
|
|
64
|
+
|
|
60
65
|
def _xml_parser(encoding: str | None = None) -> etree.XMLParser:
|
|
61
66
|
"""Create the lxml parser for untrusted documents.
|
|
62
67
|
|
|
@@ -218,7 +223,9 @@ def _read_sbgn(source: str | bytes) -> Sbgn:
|
|
|
218
223
|
# a value outside of an enumeration is kept as a string, xsdata warns
|
|
219
224
|
warnings.simplefilter("always", ConverterWarning)
|
|
220
225
|
try:
|
|
221
|
-
sbgn = XmlParser(
|
|
226
|
+
sbgn = XmlParser(
|
|
227
|
+
context=_binding_context(), handler=LxmlEventHandler
|
|
228
|
+
).parse(root, Sbgn)
|
|
222
229
|
except TypeError as err:
|
|
223
230
|
# a required element or attribute is missing, the dataclass rejects it
|
|
224
231
|
raise ParserError(f"The document is no valid SBGN-ML: {err}") from err
|
|
@@ -315,24 +322,51 @@ def read_render_from_string(xml_str: str) -> RenderInformation:
|
|
|
315
322
|
Render information is stored in the `extension` of an SBGN element, see
|
|
316
323
|
`libsbgnpy.render`.
|
|
317
324
|
|
|
325
|
+
The string is already decoded, so any encoding declared in it is ignored.
|
|
326
|
+
|
|
318
327
|
Args:
|
|
319
328
|
xml_str: `renderInformation` document
|
|
320
329
|
|
|
321
330
|
Returns:
|
|
322
331
|
The render information.
|
|
323
332
|
|
|
333
|
+
Raises:
|
|
334
|
+
xsdata.exceptions.ParserError: if the content is no render information
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
root = parse_xml(xml_str)
|
|
338
|
+
except etree.XMLSyntaxError as err:
|
|
339
|
+
raise ParserError(str(err)) from err
|
|
340
|
+
return _bind_render(root)
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
def _bind_render(root: etree._Element) -> RenderInformation:
|
|
344
|
+
"""Bind parsed render XML to its data model.
|
|
345
|
+
|
|
346
|
+
Args:
|
|
347
|
+
root: root element of the render information
|
|
348
|
+
|
|
349
|
+
Returns:
|
|
350
|
+
The render information.
|
|
351
|
+
|
|
324
352
|
Raises:
|
|
325
353
|
xsdata.exceptions.ParserError: if the content is no render information
|
|
326
354
|
"""
|
|
327
355
|
parser = XmlParser(
|
|
328
|
-
context=
|
|
356
|
+
context=_binding_context(),
|
|
357
|
+
handler=LxmlEventHandler,
|
|
329
358
|
config=ParserConfig(
|
|
330
359
|
fail_on_converter_warnings=False,
|
|
331
360
|
fail_on_unknown_attributes=True,
|
|
332
361
|
fail_on_unknown_properties=True,
|
|
333
362
|
),
|
|
334
363
|
)
|
|
335
|
-
|
|
364
|
+
try:
|
|
365
|
+
return parser.parse(root, RenderInformation)
|
|
366
|
+
except TypeError as err:
|
|
367
|
+
raise ParserError(
|
|
368
|
+
f"The document is no valid render information: {err}"
|
|
369
|
+
) from err
|
|
336
370
|
|
|
337
371
|
|
|
338
372
|
def write_render_to_string(render_info: RenderInformation) -> str:
|
|
@@ -567,7 +601,7 @@ def read_render_from_extension(
|
|
|
567
601
|
if etree.QName(root).namespace in RENDER_NAMESPACES_OLD:
|
|
568
602
|
root = _upconvert_render(root)
|
|
569
603
|
if root.tag == qname:
|
|
570
|
-
return
|
|
604
|
+
return _bind_render(root)
|
|
571
605
|
return None
|
|
572
606
|
|
|
573
607
|
|
|
@@ -35,6 +35,7 @@ The script is the single source of truth for the generation, `xsdata[cli]` is a
|
|
|
35
35
|
)
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
- string enums generated by xsdata 26.11 keep the existing `Enum` base, preserving comparison, hashing and string conversion of the public API
|
|
38
39
|
- `ruff check --fix` and `ruff format` with the configuration of the repository
|
|
39
40
|
|
|
40
41
|
### Open points
|
|
@@ -8,10 +8,12 @@ local HTTP server; `test_render_sbgn` queries the real service, it is marked as
|
|
|
8
8
|
import threading
|
|
9
9
|
from collections.abc import Iterator
|
|
10
10
|
from http.server import BaseHTTPRequestHandler, HTTPServer
|
|
11
|
+
from io import BytesIO
|
|
11
12
|
from pathlib import Path
|
|
12
13
|
|
|
13
14
|
import pytest
|
|
14
15
|
import requests
|
|
16
|
+
from requests.adapters import BaseAdapter
|
|
15
17
|
|
|
16
18
|
from libsbgnpy import Sbgn, read_sbgn_from_file, render_sbgn
|
|
17
19
|
from libsbgnpy import image as image_module
|
|
@@ -147,6 +149,54 @@ def test_render_sbgn_server_error(tmp_path: Path, sbgn: Sbgn, service: Service)
|
|
|
147
149
|
assert not (tmp_path / "test.png").exists()
|
|
148
150
|
|
|
149
151
|
|
|
152
|
+
@pytest.mark.parametrize("status", [301, 302, 303, 307, 308])
|
|
153
|
+
def test_render_sbgn_rejects_redirects(
|
|
154
|
+
tmp_path: Path, sbgn: Sbgn, monkeypatch: pytest.MonkeyPatch, status: int
|
|
155
|
+
) -> None:
|
|
156
|
+
"""A redirect cannot forward the document or replace an existing image."""
|
|
157
|
+
requests_sent: list[requests.PreparedRequest] = []
|
|
158
|
+
|
|
159
|
+
class RedirectBody(BytesIO):
|
|
160
|
+
def read(self, *args: object, **kwargs: object) -> bytes:
|
|
161
|
+
"""Fail if Requests consumes a redirect body before it is rejected."""
|
|
162
|
+
raise AssertionError("The redirect body must not be read.")
|
|
163
|
+
|
|
164
|
+
class RedirectAdapter(BaseAdapter):
|
|
165
|
+
def send(
|
|
166
|
+
self, request: requests.PreparedRequest, *args: object, **kwargs: object
|
|
167
|
+
) -> requests.Response:
|
|
168
|
+
"""Redirect the initial upload to an unrelated origin."""
|
|
169
|
+
requests_sent.append(request)
|
|
170
|
+
assert request.url is not None
|
|
171
|
+
response = requests.Response()
|
|
172
|
+
response.request = request
|
|
173
|
+
response.url = request.url
|
|
174
|
+
response.status_code = status if len(requests_sent) == 1 else 200
|
|
175
|
+
response.headers["Content-Type"] = "image/png"
|
|
176
|
+
response.headers["Location"] = "https://untrusted.example/upload"
|
|
177
|
+
response.raw = RedirectBody(PNG)
|
|
178
|
+
return response
|
|
179
|
+
|
|
180
|
+
def close(self) -> None:
|
|
181
|
+
"""Close the in-memory transport, which holds no connections."""
|
|
182
|
+
|
|
183
|
+
adapter = RedirectAdapter()
|
|
184
|
+
monkeypatch.setattr(requests.Session, "get_adapter", lambda self, url: adapter)
|
|
185
|
+
f_png = tmp_path / "test.png"
|
|
186
|
+
f_png.write_bytes(b"previous")
|
|
187
|
+
|
|
188
|
+
with pytest.raises(RenderError, match="redirected") as error:
|
|
189
|
+
render_sbgn(sbgn, f_png)
|
|
190
|
+
|
|
191
|
+
assert error.value.response is not None
|
|
192
|
+
assert error.value.response.status_code == status
|
|
193
|
+
assert error.value.response.raw.closed
|
|
194
|
+
assert len(requests_sent) == 1
|
|
195
|
+
assert requests_sent[0].url == image_module.RENDER_URL
|
|
196
|
+
assert f_png.read_bytes() == b"previous"
|
|
197
|
+
assert [f.name for f in tmp_path.iterdir()] == ["test.png"]
|
|
198
|
+
|
|
199
|
+
|
|
150
200
|
def test_render_sbgn_unsupported_format(tmp_path: Path, sbgn: Sbgn) -> None:
|
|
151
201
|
"""An unsupported image format is reported."""
|
|
152
202
|
with pytest.raises(ValueError, match="Unsupported image format"):
|
|
@@ -148,6 +148,32 @@ def test_read_render_from_string() -> None:
|
|
|
148
148
|
assert len(render_info.list_of_styles.style) == 2
|
|
149
149
|
|
|
150
150
|
|
|
151
|
+
def test_read_render_from_string_rejects_incomplete_xml() -> None:
|
|
152
|
+
"""An incomplete XML document raises a `ParserError`."""
|
|
153
|
+
xml_str = RENDER_XML.rstrip().removesuffix("</renderInformation>")
|
|
154
|
+
with pytest.raises(ParserError, match="Premature end"):
|
|
155
|
+
read_render_from_string(xml_str)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def test_read_render_from_string_ignores_declared_encoding() -> None:
|
|
159
|
+
"""An already decoded string keeps Unicode regardless of its declaration."""
|
|
160
|
+
xml_str = '<?xml version="1.0" encoding="ISO-8859-1"?>' + RENDER_XML.replace(
|
|
161
|
+
'programName="libsbgnpy"', 'programName="König"'
|
|
162
|
+
)
|
|
163
|
+
assert read_render_from_string(xml_str).program_name == "König"
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def test_read_render_from_string_does_not_expand_entities() -> None:
|
|
167
|
+
"""An inline entity does not add a color definition to render information."""
|
|
168
|
+
dtd = """<!DOCTYPE renderInformation [
|
|
169
|
+
<!ENTITY extraColor '<colorDefinition id="extra" value="#000000"/>'>
|
|
170
|
+
]>"""
|
|
171
|
+
xml_str = dtd + RENDER_XML.replace(
|
|
172
|
+
"</listOfColorDefinitions>", "&extraColor;</listOfColorDefinitions>"
|
|
173
|
+
)
|
|
174
|
+
assert read_render_from_string(xml_str) == read_render_from_string(RENDER_XML)
|
|
175
|
+
|
|
176
|
+
|
|
151
177
|
def test_render_roundtrip() -> None:
|
|
152
178
|
"""Render information survives the round trip."""
|
|
153
179
|
render_info = read_render_from_string(RENDER_XML)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|