Skip to main content

mxlpy-logo

MxlPy

pypi docs License Coverage Ruff security: bandit PyPI Downloads mxl-e2e

MxlPy (pronounced "em axe el pie") is a Python package for mechanistic learning (Mxl) - the combination of mechanistic modeling and machine learning to deliver explainable, data-informed solutions.

Documentation

You can find extensive documentation directly here on github

Installation

You can install mxlpy using pip: pip install mxlpy.

Due to their sizes, the machine learning packages are optional dependencies. You can install them using

# One of them respectively
pip install mxlpy[torch]
pip install mxlpy[tensorflow]
pip install mxlpy[keras]
pip install mxlpy[jax]
pip install mxlpy[sr]

# together
pip install mxlpy[torch, tensorflow, keras, jax, sr]

For the fast Native integrator, which compiles your model to machine code and solves it with compiled Radau, LSODA and CVODE solvers, install the native extra. It pulls in mxlpy-native (with llvmlite), which has wheels for Linux x86_64 and aarch64, macOS arm64 and Windows amd64 and arm64. On every other platform it installs a WASM backend (wasmtime) instead, which runs the same solvers without a compiler, a little slower.

pip install mxlpy[native]

# force the WASM backend
pip install mxlpy[native-wasm]

If something doesn't load, python -m mxlpy_native reports what's installed and how to fix each failure.

For the CVODE solver from the SUNDIALS suite, install the sundials extra, which uses the official sundials4py bindings. It has wheels for Linux x86_64, macOS and Windows x64; on other platforms (e.g. Linux aarch64) the extra installs nothing and mxlpy falls back to the Scipy integrator.

pip install mxlpy[sundials]

Alternatively, if you want access to the sundials solver suite via the assimulo package, we recommend setting up a virtual environment via pixi or mamba / conda using the conda-forge channel.

pixi init
pixi add python assimulo
pixi add --pypi mxlpy

How to cite

If you use this software in your scientific work, please cite this article:

Development setup

You have two choices here, using uv (pypi-only) or using pixi (conda-forge, including assimulo)

uv

  • Install uv as described in the docs.
  • Run uv sync --all-extras --all-groups to install dependencies locally

pixi

  • Install pixi as described in the docs
  • Run pixi install --frozen

LLMs

We support the llms.txt convention for making documentation available to large language models and the applications that make use of them. It is located at docs/llms.txt

Tool family 🏠

MxlPy is part of a larger family of tools that are designed with a similar set of abstractions. Check them out!

  • MxlBricks is built on top of MxlPy to build mechanistic models composed of pre-defined reactions (bricks)
  • MxlModels supplies flat, single-file versions of MxlBricks models for easy inspection
  • MxlWeb brings simulation of mechanistic models to the browser!
  • pysbml simplifies SBML models for import/export with MxlPy
  • Parameteriser looks up kinetic parameters from BRENDA and other databases

Metadata

Release files for mxlpy 0.73.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 mxlpy 0.73.0
File Size Uploaded Provenance Actions
mxlpy-0.73.0.tar.gz 5.9 MB With provenance Details for mxlpy-0.73.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.4 MB

Release files / mxlpy-0.73.0.tar.gz

Download URL mxlpy-0.73.0.tar.gz
Size 5.9 MB
Tags Source
SHA-256 checksum
How to use checksums
4ce1de073eebdec69e706e88e8cfe660ce83062f1e1a0964711132ce2f210235
BLAKE2b-256 checksum
How to use checksums
ce36f400748d920fbf0281142b5d7c5685a50f79c36d86d3e470d0b68f06d15c
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 20, 2026.

Transparency log

Release files / mxlpy-0.73.0-py3-none-any.whl

Download URL mxlpy-0.73.0-py3-none-any.whl
Size 561.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58a484cd722bac97dff053fd1344611291b9eb7c2394afa0de17e6397a2cbbc8
BLAKE2b-256 checksum
How to use checksums
d86ae3148d33d315b109d03dca848cb7ef32df72ad312441dd9947bbf98d5be0
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 20, 2026.

Transparency log

Security for mxlpy 0.73.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.

Select from 2 files

Attestation for mxlpy-0.73.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 20, 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.

Release history Release notifications | RSS feed

This release

0.73.0 This release

2 release files Full provenance

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