Python Package
The StateMint Python package is an implementation based on SymPy which allows this code to be easily combined with simulation and analysis code, or integrated into other systems.
It requires Python 3.10 or later.
The package provides a Solve function which takes the input variables, state variable elemental equations, non-state variable elemental equations, constraint equations, and output variables and returns a Python object with multiple forms of the solution.
These outputs can be further analyzed with SymPy or converted to Numpy objects for easy simulation or numerical analysis.
The full documentation for the code is available on readthedocs.io.
An example Jupyter notebook (also available on binder) is included with the package.
Because this package is available on PyPI the latest release can be easily installed by running pip install StateMint.
Run the tests with pip install -e ".[test]" and pytest in this directory.
tests/test_notes_examples.py checks every worked model in the System Dynamics notes.
The Pyodide workflow runs tests/test_suite.py in Pyodide using Chromium on
Ubuntu. To run locally:
pip install -e ".[browser-test]"
python -m playwright install --with-deps chromium
python tests/browser/run_suite.py
The runner downloads Pyodide 314.0.7, SymPy, and NumPy from the CDN and runs the checked-out Python sources, so it requires internet access.
Metadata
Release files for StateMint 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| statemint-3.0.0.tar.gz | 32.8 kB | With provenance | Details for statemint-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| statemint-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for statemint-3.0.0-py3-none-any.whl |
Total release size: 48.3 kB
Release files / statemint-3.0.0.tar.gz
| Download URL | statemint-3.0.0.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e75b9e02b24b28f26c0cf0b8570f0e73c3db105d0bd410ace9dbe53aa9cc251
|
|
BLAKE2b-256 checksum How to use checksums |
1a3487912e3dfa0572125d5574f4ad4d5c5918a21abd1ad02134ac80304f75c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / statemint-3.0.0-py3-none-any.whl
| Download URL | statemint-3.0.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5427c0d55abc3c4f859abec6cb7f1741ee877329faf19fd5de1f1512b1f85ae8
|
|
BLAKE2b-256 checksum How to use checksums |
db7f30d0fc0a67810bef7ecd773c0f9df7a40e724f05b4c2dce4cba88bd80bf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for StateMint 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for statemint-3.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.