pyMARS
Python-based (chemical kinetic) Model Automatic Reduction Software (pyMARS) implements multiple techniques for reducing the size and complexity of detailed chemical kinetic models.
An installation guide, usage examples, theory details, and API docs are provided in the online documentation: https://Niemeyer-Research-Group.github.io/pyMARS/
pyMARS currently consists of four methods for model reduction:
- Directed relation graph (DRG)
- Directed relation graph with error propagation (DRGEP)
- Path flux analysis (PFA)
- Sensitivity analysis (SA)
Sensitivity analysis may be run following one of the first three methods, or directly on the starting model; however, its computational expense is high, and applying this method alone is not recommended.
Installation
pyMARS requires Python 3.10+ and Cantera 3.x.
Via pip (PyPI, recommended):
pip install nrg-pymars
Via conda:
conda install -c niemeyer-research-group -c conda-forge pymars
From GitHub (latest development version):
pip install git+https://github.com/Niemeyer-Research-Group/pyMARS.git
From a cloned repository:
git clone https://github.com/Niemeyer-Research-Group/pyMARS.git
cd pyMARS
pip install .
Note: On PyPI, pyMARS is distributed under the name
nrg-pymars, because thepymarsname belongs to an unrelated, active project. The import package and command-line tool remainpymars— install withpip install nrg-pymars, thenimport pymarsor runpymars.
Usage
For detailed usage examples, see the online documentation. Once installed, the list of options can be found with:
pymars --help
pyMARS requires models in the Cantera format. However, running pyMARS with a CHEMKIN file will convert it
into a Cantera file. pyMARS also provides the --convert option to convert a given model to/from
the CHEMKIN format.
Citation
Please refer to the CITATION file for information about citing pyMARS when used in a scholarly work.
If you use this package as part of a scholarly publication, please consider citing the appropriate theory/method papers in addition to the software itself.
License
pyMARS is released under the MIT license; see LICENSE for details.
Code of Conduct
To ensure an open and welcoming community, pyMARS adheres to a code of conduct adapted from the Contributor Covenant code of conduct.
Please adhere to this code of conduct in any interactions you have in the pyMARS community. It is strictly enforced on all official PyKED repositories, websites, and resources. If you encounter someone violating these terms, please let the project lead (@kyleniemeyer) know via email at kyle.niemeyer@gmail.com and we will address it as soon as possible.
Metadata
Release files for nrg-pymars 1.2.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 | |
|---|---|---|---|---|
| nrg_pymars-1.2.0.tar.gz | 28.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nrg_pymars-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.9 kB
Release files / nrg_pymars-1.2.0.tar.gz
| Download URL | nrg_pymars-1.2.0.tar.gz |
|---|---|
| Size | 28.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61c72f17f8067c525e6429c6926c16a35d20ef1a79d3b6ca3d33d40a57978774
|
|
BLAKE2b-256 checksum How to use checksums |
1d2fdee1bedb49fa984d1de241d8e2a4810f57bc322d380c7835e91a3d45c3ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 25, 2026.
Transparency logRelease files / nrg_pymars-1.2.0-py3-none-any.whl
| Download URL | nrg_pymars-1.2.0-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24a0e55450d229ece1ac23e0802e1d9f4ee04263693abb251c2b891df6d2004d
|
|
BLAKE2b-256 checksum How to use checksums |
0400d233157e60ffcccdd304279cd232d3cb920a030780718f3aa3b5f3004280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 25, 2026.
Transparency logSecurity for nrg-pymars 1.2.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nrg_pymars-1.2.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 Jun 25, 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.