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, mxn_fit_* for least-squares fits, mxn_adjoint_* for 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.6.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.6.0
File Size Uploaded Provenance Actions
mxlpy_native-0.6.0.tar.gz 310.3 kB With provenance Details for mxlpy_native-0.6.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mxlpy-native 0.6.0
File Actions
mxlpy_native-0.6.0-cp312-abi3-win_arm64.whl CPython 3.12 abi3 Windows ARM64 Details for mxlpy_native-0.6.0-cp312-abi3-win_arm64.whl
mxlpy_native-0.6.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for mxlpy_native-0.6.0-cp312-abi3-win_amd64.whl
mxlpy_native-0.6.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.6.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
mxlpy_native-0.6.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.6.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
mxlpy_native-0.6.0-cp312-abi3-macosx_12_0_arm64.whl CPython 3.12 abi3 macOS 12.0+ ARM64 Details for mxlpy_native-0.6.0-cp312-abi3-macosx_12_0_arm64.whl

Total release size: 2.0 MB

Release files / mxlpy_native-0.6.0.tar.gz

Download URL mxlpy_native-0.6.0.tar.gz
Size 310.3 kB
Tags Source
SHA-256 checksum
How to use checksums
04c507b3bca97399cde3f57fbe750dedeefc7e255eceb7c945633fb9c7ec8001
BLAKE2b-256 checksum
How to use checksums
15fdfa00a91c533bc8bd8e7c817122b12f15cbcd882b7450e25cb33f13fd683e
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 23, 2026.

Transparency log

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

Download URL mxlpy_native-0.6.0-cp312-abi3-win_arm64.whl
Size 117.4 kB
Tags CPython 3.12 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
675440df3a2f37d6cfad7f6147376968a73a16cfa7f0e518699d7b0d1cca9eab
BLAKE2b-256 checksum
How to use checksums
e43b2fce245fc4876882df6f9fd637a020a7e3743c5dba8ce218c50c593b7243
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 23, 2026.

Transparency log

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

Download URL mxlpy_native-0.6.0-cp312-abi3-win_amd64.whl
Size 143.5 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
aacfbea582b8be40677f9f859612e4e0f2a965532bb1b54ef1869e22458e8c68
BLAKE2b-256 checksum
How to use checksums
3f95a53e3f7383481295e968bcff7e57f00fc98bb7498400be9515bdbc1487ba
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 23, 2026.

Transparency log

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

Download URL mxlpy_native-0.6.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 610.9 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
c5253b1b390090966fda378f8df67de2c475263b4d7b5165f85a38782ce4defe
BLAKE2b-256 checksum
How to use checksums
43c8944caed890e0d39231eafd2305b22503cdeb62672c56b23c4113a57a23f6
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 23, 2026.

Transparency log

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

Download URL mxlpy_native-0.6.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 595.0 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
4a2550254b1e2a1bc2d79405d9c996b3e24f9d59a3c18902775563144a68d7d8
BLAKE2b-256 checksum
How to use checksums
f19f35b7fc10252373fb73ae7a6b1f0e27ec5732c1822689a401061b0abfb122
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 23, 2026.

Transparency log

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

Download URL mxlpy_native-0.6.0-cp312-abi3-macosx_12_0_arm64.whl
Size 231.9 kB
Tags CPython 3.12 abi3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
2bd070ecf936babc2f7012769034fb19023eb674e32e63f12d770793bbba4542
BLAKE2b-256 checksum
How to use checksums
4932cac93816fbd2d0d3e1307f3613dd3a1743bd0d8167d7e2c13ec350e79726
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 23, 2026.

Transparency log

Security for mxlpy-native 0.6.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.6.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 23, 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