Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.6%) to scientific vocabulary
Keywords
Repository
SBML MathML <-> SymPy
Basic Info
- Host: GitHub
- Owner: dweindl
- License: bsd-3-clause
- Language: Python
- Default Branch: main
- Homepage: https://sbmlmath.readthedocs.io/
- Size: 141 KB
Statistics
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 4
- Releases: 8
Topics
Metadata Files
README.md
sbmlmath — a Python library for handling SBML MathML
sbmlmath is a Python library for interconverting SymPy
expressions and SBML-MathML.
SBML uses a subset of MathML that this library
aims to support. This is not (intended to be) a general MathML parser.
Main functionality:
- sympy -> SBML MathML
- SBML MathML -> sympy
- in particular for cases where
sympy.sympify(libsbml.formulaToL3String(...))won't do the job (mind, e.g., the differences in operator precedence between sympy/Python and libsbml L3 formulas!) - retaining unit annotations and other
<ci>attributes
- in particular for cases where
NOTE: This is under development and the API is to be considered unstable
Python support policy: sbmlmath follows NEP 29.
Usage
```python from sbmlmath import SBMLMathMLPrinter, SBMLMathMLParser import sympy as sp
sympyexpr = sp.sympify("A ** B + exp(C) * D") mathml = SBMLMathMLPrinter().doprint(sympyexpr) print(mathml)
cycledsympy = SBMLMathMLParser().parsestr(mathml) print(cycledsympy) assert sympyexpr == cycled_sympy ```
Documentation
Under construction at sbmlmath.readthedocs.io.
Installation
Releases from PyPI:
bash
pip install sbmlmath
The latest development version from GitHub:
bash
pip install git+https://github.com/dweindl/sbmlmath.git#egg=sbmlmath
Owner
- Name: Daniel Weindl
- Login: dweindl
- Kind: user
- Company: @ICB-DCM @ICBmunich
- Website: https://backup.helmholtz-munich.de/icb/institute/staff/staff/ma/5122/Dr.-Weindl/index.html
- Twitter: dweindl
- Repositories: 3
- Profile: https://github.com/dweindl
PostDoc at Helmholtz Munich ORCID 0000-0001-9963-6057
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: sbmlmath
type: software
authors:
- given-names: Daniel
family-names: Weindl
email: sci@danielweindl.de
orcid: 'https://orcid.org/0000-0001-9963-6057'
repository-code: 'https://github.com/dweindl/sbmlmath/'
url: 'https://sbmlmath.readthedocs.io/'
abstract: >-
sbmlmath is a Python package for the interconversion of
SBML MathML and sympy expressions.
keywords:
- SBML
- SymPy
- math expressions
- Python
license: BSD-3-Clause
doi: 10.5281/zenodo.14814669
GitHub Events
Total
- Create event: 4
- Release event: 2
- Issues event: 8
- Watch event: 1
- Delete event: 1
- Issue comment event: 3
- Push event: 22
- Pull request event: 3
- Fork event: 1
Last Year
- Create event: 4
- Release event: 2
- Issues event: 8
- Watch event: 1
- Delete event: 1
- Issue comment event: 3
- Push event: 22
- Pull request event: 3
- Fork event: 1
Packages
- Total packages: 1
-
Total downloads:
- pypi 3,913 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 8
- Total maintainers: 1
pypi.org: sbmlmath
SBML Math <-> SymPy
- Homepage: https://github.com/dweindl/sbmlmath
- Documentation: https://sbmlmath.readthedocs.io/
- License: other
-
Latest release: 0.4.0
published 11 months ago
Rankings
Maintainers (1)
Dependencies
- actions/cache v3 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish release/v1 composite
- lxml >=4.6.4
- pint *
- python-libsbml *
- sympy *