Skip to main content

micki

A modular, extensible, robust object-oriented microkinetic modeling package written in Python.

At a glance:

from micki import Model, reactions_from_strings
from micki.db import read_from_db
from micki.utils import bar_to_molar

# species (energies, frequencies, sites) from an ASE database
sp = read_from_db('species.json', eref=['slab', 'co_g', 'o2_g'])

# reactions as strings: 'reactants <-> transition state -> products';
# '*' is the empty site
reactions = reactions_from_strings(sp, {
    'co_ads': ('co_g + * -> co', {'method': 'STICK'}),
    'o2_ads': 'o2_g + 2* <-> o-o -> 2 o',
    'co_ox': 'co + o <-> o-co -> co2_g + 2*',
})

T = 500.
model = Model(T, Asite=7e-20)
model.add_reactions(reactions)
model.set_fixed(['co_g', 'o2_g', 'co2_g'])
model.set_initial_conditions({'co_g': bar_to_molar(0.1, T),
                              'o2_g': bar_to_molar(0.2, T)})
t, U, r = model.find_steady_state()   # coverages U, rates r

Documentation:

See the documentation: a user guide, a complete reference of all classes and options, sensitivity analysis, CatMap conventions and a water-gas shift example (script: examples/wgs.py). The theory is described in E. D. Hermes, A. N. Janes, J. R. Schmidt, J. Chem. Phys. 151, 014112 (2019), https://doi.org/10.1063/1.5109116; please cite it if you use Micki.

DEPENDENCIES (installed automatically, see below):

  • Python >= 3.12
  • sundials4py (the official SUNDIALS Python interface; >= 7.9, beta)
  • numpy >= 2.0
  • sympy
  • ase

No compiler, SUNDIALS build or LAPACK library is needed: sundials4py ships prebuilt wheels that include SUNDIALS.

Earlier versions that generate Fortran and compile it with f2py are kept on branches: fortran-sundials7 (SUNDIALS 7 Fortran 2003 interface) and sundials4 (SUNDIALS 4.X FCMIX interface).

#in an environment with Python >= 3.12 (e.g. a venv or a conda environment)
pip install micki

This installs Micki and all of its dependencies and is probably the simplest option for most users.

Installation with conda (for development):

#fetch Micki and create a conda environment with all dependencies
git clone https://github.com/jrschmidt2/micki.git
cd micki
conda env create -f environment.yml
conda activate micki

Python, numpy, sympy and ase come from conda-forge. sundials4py and Micki itself are not on conda-forge, so environment.yml installs them with pip inside the environment (Micki in editable mode from the clone, so changes take effect immediately).

Testing:

Run the test suite (about 15 seconds; includes a water-gas shift regression test) from the repository root:
python -m unittest discover -s tests -v

Comparing with CatMap:

micki.set_conventions('catmap') switches Micki's defaults to CatMap's conventions (gas reference state, barrier clipping, transition-state interactions, masses), and individual options are available too. Tests compare Micki with CatMap's own solutions of several models (agreement ~1e-13). See CatMap conventions.

Releasing:

Releases are published to PyPI automatically by GitHub Actions (.github/workflows/publish.yml, PyPI trusted publishing):

  1. Set the new version in pyproject.toml and commit it.
  2. Create a GitHub release with tag v<version> (e.g. v2.0.0).

Publishing the release runs the tests, builds the package and uploads it to PyPI. The workflow refuses to publish if the tag does not match the version. To check the build and tests without publishing, start the workflow by hand ("Run workflow" under Actions -> Publish to PyPI).

Metadata

Release files for micki 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for micki 2.2.0
File Size Uploaded
micki-2.2.0.tar.gz 62.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for micki 2.2.0
File Interpreter ABI Platform
micki-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 112.6 kB

Release files / micki-2.2.0.tar.gz

Download URL micki-2.2.0.tar.gz
Size 62.5 kB
Tags Source
SHA-256 checksum
How to use checksums
db3c267eda2dc221ba6fd35e7a79505176bd4a330e56019e7a87de918d408054
BLAKE2b-256 checksum
How to use checksums
f3952453934452e9c1258fb5d9877fa333b69d688fb91da8878c2f00aead5be1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release files / micki-2.2.0-py3-none-any.whl

Download URL micki-2.2.0-py3-none-any.whl
Size 50.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1c7e024294716709d9e07515662fe7c2dd9c20c0600d12450839045009bb3bc
BLAKE2b-256 checksum
How to use checksums
67bdebfa10f08885ad257226a5aea069873afc813d626cb837da5840d12adb42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page