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 fits), 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.5.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.5.0
File Size Uploaded Provenance Actions
mxlpy_native-0.5.0.tar.gz 298.6 kB With provenance Details for mxlpy_native-0.5.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.9 MB

Release files / mxlpy_native-0.5.0.tar.gz

Download URL mxlpy_native-0.5.0.tar.gz
Size 298.6 kB
Tags Source
SHA-256 checksum
How to use checksums
91551be143e287bef66f28a94898dea73f92297a7e1f1724ab02a35fd06ff909
BLAKE2b-256 checksum
How to use checksums
f0568a763d887eefac652ddbe27c31e729db427c43f16fdba355a08cd34f8dce
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_native-0.5.0-cp312-abi3-win_arm64.whl

Download URL mxlpy_native-0.5.0-cp312-abi3-win_arm64.whl
Size 112.5 kB
Tags CPython 3.12 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
9c30b904dc62b3fa90254bde3037c351e97e29abf2f705738b41aeeb57f2aa2d
BLAKE2b-256 checksum
How to use checksums
2920f2d26d8d12f19fba278173b3ce4fab464738dd8738a2bb406206d9940604
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_native-0.5.0-cp312-abi3-win_amd64.whl

Download URL mxlpy_native-0.5.0-cp312-abi3-win_amd64.whl
Size 133.7 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
048b5b188309a09a5b20fa11a6887ef96b621abb8c44e7c20ab212a9ef110b37
BLAKE2b-256 checksum
How to use checksums
4b6e1afc88b46b9be869d95eb709fca0fc5e1941403b7dd0c2b5da1fce88fd23
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_native-0.5.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL mxlpy_native-0.5.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 585.0 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
a415e1db6c13ca1fc07efda5ce1cee478bdd15ba2e43c56ef99e36ad8ac43cb4
BLAKE2b-256 checksum
How to use checksums
b014b7343e667d1964f1c4fb4164ed5a045869a2ea712113296801fb07bb87bc
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_native-0.5.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL mxlpy_native-0.5.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 569.4 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
2ef6f8673bbc3c4795a09e656672dfc67fd19bb05188c1e02228e34d406030ff
BLAKE2b-256 checksum
How to use checksums
412a5ed56553ea51e479d745c738d47733056b9fe67774602acdf569265343e9
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_native-0.5.0-cp312-abi3-macosx_12_0_arm64.whl

Download URL mxlpy_native-0.5.0-cp312-abi3-macosx_12_0_arm64.whl
Size 224.0 kB
Tags CPython 3.12 abi3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
023c7f339ef1b8136951b9fb9ddfe8182f0d9fac34b34c4faa13cf89476bca3b
BLAKE2b-256 checksum
How to use checksums
ab993c6e2ad71671710888443ddc68f6147ebb6d3b0892111e8bc8689e83a9cd
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-native 0.5.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.5.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.

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