Skip to main content

mxlpy-native

The compiled Radau, LSODA and CVODE solvers and the Levenberg-Marquardt fit loop behind MxlPy's Native integrator, plus llvmlite, which compiles models to machine code for them. Install it through MxlPy rather than on its own:

pip install "mxlpy[native]"

Solvers and licences

Solver Origin Licence
RADAU5 E. Hairer and G. Wanner, via f2c c/vendor/HAIRER-LICENCE.txt
LSODA SciPy's C translation of ODEPACK c/vendor/SCIPY-LICENCE.txt
DOP853, DOPRI5 (used by the fit loop's solver layer) E. Hairer and G. Wanner, via f2c c/vendor/HAIRER-LICENCE.txt
Fit loop: lmder with forward sensitivities over time courses and steady states mxl-solvers' fit drivers and cminpack LICENSE, c/vendor/minpack/COPYRIGHT.txt
CVODE (BDF and Adams) SUNDIALS v7.9.0, © Lawrence Livermore National Security and the SUNDIALS contributors c/vendor/SUNDIALS-LICENCE.txt (BSD-3-Clause), c/vendor/SUNDIALS-NOTICE.txt

All of them are vendored from mxl-solvers, whose README lists the papers to cite for SUNDIALS. The licence files ship in every wheel.

Platforms

Wheels are published for Linux (x86_64, aarch64; glibc 2.28+), macOS (arm64, 12+) and Windows (amd64, arm64), the platforms llvmlite has wheels for. On anything else, mxlpy[native] installs the WASM backend (wasmtime) instead, which runs the same solvers without a compiler, a little slower.

If pip has to build from the sdist anyway, it needs a C11 compiler (GCC 8+, Clang 7+ or MSVC 2019 16.8+), and nothing else: no Fortran, BLAS/LAPACK or Python headers. The build says what to install if the compiler is missing or fails.

Troubleshooting

python -m mxlpy_native

prints the installed version, the solver ABI, and whether the compiled solvers and llvmlite load, with a fix for each failure.

Development

uv sync           # builds the extension in place
uv run pytest

c/vendor/ is copied from mxl-solvers by its scripts/vendor.sh. vendor/VENDORED records the commit and file hashes, which tests/test_vendor.py checks. Fix solvers there, not here. c/mxn_solvers.c is the glue MxlPy calls (mxn_radau / mxn_lsoda / mxn_cvode for simulations, optionally with the model's analytic Jacobian, mxn_fit_* for least-squares fits, mxn_adjoint_* for continuous and mxn_da_* for discrete adjoint gradients), compiled unchanged into the wheel and into MxlPy's solvers.wasm (scripts/build_native_wasm.sh in MxlPy).

When an exported function's signature or meaning changes, bump MXN_ABI_VERSION in c/mxn_solvers.c, ABI_VERSION in src/mxlpy_native/__init__.py and the ABI MxlPy expects, then release both. MxlPy refuses a mismatched pair with an upgrade hint instead of crashing.

Releasing

Bump version in pyproject.toml and publish a GitHub release v<version>. The release workflow builds the wheels with cibuildwheel plus an sdist and uploads them to PyPI via trusted publishing.

Metadata

Release files for mxlpy-native 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 mxlpy-native 0.7.0
File Size Uploaded Provenance Actions
mxlpy_native-0.7.0.tar.gz 331.0 kB With provenance Details for mxlpy_native-0.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mxlpy-native 0.7.0
File Actions
mxlpy_native-0.7.0-cp312-abi3-win_arm64.whl CPython 3.12 abi3 Windows ARM64 Details for mxlpy_native-0.7.0-cp312-abi3-win_arm64.whl
mxlpy_native-0.7.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for mxlpy_native-0.7.0-cp312-abi3-win_amd64.whl
mxlpy_native-0.7.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for mxlpy_native-0.7.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
mxlpy_native-0.7.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details for mxlpy_native-0.7.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
mxlpy_native-0.7.0-cp312-abi3-macosx_12_0_arm64.whl CPython 3.12 abi3 macOS 12.0+ ARM64 Details for mxlpy_native-0.7.0-cp312-abi3-macosx_12_0_arm64.whl

Total release size: 2.2 MB

Release files / mxlpy_native-0.7.0.tar.gz

Download URL mxlpy_native-0.7.0.tar.gz
Size 331.0 kB
Tags Source
SHA-256 checksum
How to use checksums
37e4ca5e275fc18d098d8be3e580485fab3ee9673ac02e99c3ec275757a04075
BLAKE2b-256 checksum
How to use checksums
ee075692a815b0bba289661471db96c038e71b128bbd67406381d58fd77cc2c8
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 27, 2026.

Transparency log

Release files / mxlpy_native-0.7.0-cp312-abi3-win_arm64.whl

Download URL mxlpy_native-0.7.0-cp312-abi3-win_arm64.whl
Size 137.5 kB
Tags CPython 3.12 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
e0f4d1a471b9ed70955861b6dd1fa6d5c2dfc710819f1be87133e953df58af04
BLAKE2b-256 checksum
How to use checksums
1b1f0685d978259c1e4be49c305586ac8a6681a09ad198cb7df7d9ac585c6d48
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 27, 2026.

Transparency log

Release files / mxlpy_native-0.7.0-cp312-abi3-win_amd64.whl

Download URL mxlpy_native-0.7.0-cp312-abi3-win_amd64.whl
Size 169.2 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5dbfc0b98514e4301eb60c4b429ce67a76d30c8874494adba00e3e240495a7ed
BLAKE2b-256 checksum
How to use checksums
f9e9190eaabaeabc3680ee82ea7b8f64d5466962d2901ca25f18066a7dab49a8
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 27, 2026.

Transparency log

Release files / mxlpy_native-0.7.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL mxlpy_native-0.7.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 683.4 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
1afb0d31f419ca12c7aca011b2e833e755accc6127c39c4a6b524c356f8e51a7
BLAKE2b-256 checksum
How to use checksums
032149948b5f4d0d23bc597473c1f9ccb0fcb0e925f04c19be1a02e14f9ea101
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 27, 2026.

Transparency log

Release files / mxlpy_native-0.7.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL mxlpy_native-0.7.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 666.6 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
f16bde0b01f43f2800628cc4ffac6a71b88434a7c3e20138041a0e8b9db19c83
BLAKE2b-256 checksum
How to use checksums
86c6ac12e9c0341a066fb1747c002f93f1b7b9f1f7cdb5a04b1bf50508ba124c
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 27, 2026.

Transparency log

Release files / mxlpy_native-0.7.0-cp312-abi3-macosx_12_0_arm64.whl

Download URL mxlpy_native-0.7.0-cp312-abi3-macosx_12_0_arm64.whl
Size 254.1 kB
Tags CPython 3.12 abi3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
8250c5fc1b0e8d9d5376f5fd5af284abbdbff8326a0100ec0dae5deb2bc28959
BLAKE2b-256 checksum
How to use checksums
7c8b163a3adc94352586a70be4c44ad37b0ffca97934eed43cd0f47644699a05
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 27, 2026.

Transparency log

Security for mxlpy-native 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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for mxlpy_native-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 Nov 27, 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