Pyrometheus is a code generator for chemical mechanisms based on Cantera:
$ python3 -m pip install pyrometheus $ python3 -m pyrometheus --help usage: pyrometheus [-h] [--version] -l {python,cpp,fortran} -m MECH -o OUTPUT -n NAME [-p PHASE] Code generation for combustion thermochemistrybased on Cantera. options: -h, --help show this help message and exit --version show program's version number and exit -l {python,cpp,fortran}, --lang {python,cpp,fortran}, --language {python,cpp,fortran} Language to generate code for. -m MECH, --mech MECH, --mechanism MECH Path to the mechanism file. -o OUTPUT, --output OUTPUT Path to the output file. -n NAME, --name NAME, --namespace NAME Namespace to use for the generated code. -p PHASE, --phase PHASE Phase name to use for the generated code.
Links: