Skip to main content

Enzax

Tests Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Supported Python versions: 3.12 and newer Documentation Status

Enzax is a library of automatically differentiable equations and solvers for modelling networks of enzyme-catalysed reactions, written in JAX.

Enzax provides straightforward, fast and interoperable access to the gradients of realistic metabolic network models, allowing you to incorporate these models in your MCMC and machine learning algorithms when you want to, for example, predict the effect of down-regulating an enzyme on the yield of a fermentation experiment.

Installation

pip install enzax

Usage

Find a kinetic model's steady state

from enzax.examples import methionine
from enzax.steady_state import get_steady_state
from jax import numpy as jnp

guess = jnp.full((len(model.balanced_species),), 0.01)

steady_state = get_steady_state(methionine.model, guess, methionine.parameters)

get_steady_state_hybrid takes the same arguments and tries a short Newton solve first, which skips the integration when the guess is already good.

Find a steady state's Jacobian with respect to all parameters

import jax
from enzax.examples.methionine import model, parameters
from enzax.parameters import get_parameter_position
from enzax.steady_state import get_steady_state
from jax import numpy as jnp

guess = jnp.full((len(model.balanced_species),), 0.01)

jacobian = jax.jacrev(get_steady_state, argnums=2)(model, guess, parameters)
# Each parameter is one flat array, so ask the model's labels which column
# belongs to GNMT1's turnover number.
pos = get_parameter_position(model.parameter_labelling, "log_kcat", "GNMT1")
jacobian["log_kcat"][:, pos]
Array([-3.83561719e-07, -9.66801513e-06,  3.38183091e-10,  3.15564888e-09,
        5.28588199e-08], dtype=float64)

Load a kinetic model from an sbml file

from enzax.sbml import load_libsbml_model_from_url, sbml_to_enzax

url = "https://raw.githubusercontent.com/dtu-qmcm/enzax/refs/heads/main/tests/data/exampleode.xml"

libsbml_model = load_libsbml_model_from_url(url)
# or to load an sbml file from your computer:
# libsbml_model = load_libsbml_model_from_file(path_to_file)

model, parameters = sbml_to_enzax(libsbml_model)

Metadata

Release files for enzax 0.7.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 enzax 0.7.0
File Size Uploaded Provenance
enzax-0.7.0.tar.gz 355.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 496.5 kB

Release files / enzax-0.7.0.tar.gz

Download URL enzax-0.7.0.tar.gz
Size 355.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d357bd52dbb95431c83f557466b8f7839849d00547bcf9cb49c1db6a25cf0ce6
BLAKE2b-256 checksum
How to use checksums
af7c6c2f1cc3278da55cfc309d4e6b3b37156b746a43903907fea00c2c38c3d6
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 Oct 24, 2026.

Transparency log

Release files / enzax-0.7.0-py3-none-any.whl

Download URL enzax-0.7.0-py3-none-any.whl
Size 141.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
550b0e6b1dacf5eaa0841784e665cc2a9d13fe7ad178a615802675f307f0f079
BLAKE2b-256 checksum
How to use checksums
d8a3b06a3d35af2e2f083316963e61c0a3cc91dec376ec910ab5f3b0347aef81
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 Oct 24, 2026.

Transparency log

Security for enzax 0.7.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.

Select from 2 files

Attestation for enzax-0.7.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 Oct 24, 2026.

Transparency log

A 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.

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