--- id: pybammsolvers version: "0.9.0" license: unclear license_treatment: unclear maintenance: active --- # pybammsolvers — Python interface for the IDAKLU solver License: unclear · Maintenance: active · Downloads: 119.3K/mo ## What it is and what it does pybammsolvers is a Python wrapper around the IDAKLU solver, a C/C++ implementation of implicit differential equation solvers built on SUNDIALS and SuiteSparse. It is designed for solving stiff ordinary differential equations, particularly those arising in battery electrochemistry and electrochemical modeling. The package bundles SUNDIALS and SuiteSparse as git submodules and compiles them during installation, so it carries medium install friction on platforms without precompiled wheels. The package depends on casadi and numpy at runtime. It is actively maintained and supports Python 3.10 through 3.13 with precompiled wheels for common platforms. Local builds are possible but require a C/C++ toolchain and build dependencies (cmake, ninja, pybind11). The project includes unit tests, integration tests, and performance benchmarks. Use it for: - Solving stiff differential equations in battery electrochemistry simulations within PyBaMM. - Benchmarking solver performance against released PyBaMM versions. - Developing or testing new solver implementations on unsupported architectures via local builds. - Integrating IDAKLU into custom electrochemical modeling workflows that require implicit ODE solvers. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. pybammsolvers provides a Python interface to the IDAKLU solver, a C/C++ differential equation solver used in battery modeling applications. Yes, if you are using PyBaMM or developing electrochemical models that require a robust implicit ODE solver. The package is actively maintained, has no known vulnerabilities, and offers precompiled wheels for modern Python versions on common platforms. Install friction is moderate but manageable for most developers; local builds require a C/C++ toolchain but are well-documented. The unclear license treatment warrants verification before use in proprietary projects. ## Install pip install pybammsolvers uv add pybammsolvers poetry add pybammsolvers ## Installing pybammsolvers Before you install: Medium install friction: precompiled wheels are available for Python 3.10–3.13 on macOS (Intel and ARM), Linux (x86_64 and aarch64), and Windows, but local builds require cmake, ninja, pybind11, and system libraries (SUNDIALS, SuiteSparse). Active maintenance with a release 24 days ago. Quickstart: pip install pybammsolvers import pybammsolvers # Use within PyBaMM or via casadi/numpy for ODE integration Requires Python 3.10–3.13; local builds need cmake, ninja, pybind11, and system C/C++ compiler plus SUNDIALS/SuiteSparse libraries. Verify before relying: - Whether pybammsolvers can be used standalone or is intended primarily as a PyBaMM dependency. - Performance characteristics or solver stability guarantees compared to other ODE solvers. - Documentation availability and completeness for the Python API. ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 119.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags IDAKLU solver python, differential equation solver battery, PyBaMM solver interface, numerical ODE solver, SUNDIALS python wrapper, ode-solver, battery-modeling, compiled-extension [View on SkillFed](https://skillfed.io/packages/pybammsolvers) · [View on PyPI](https://pypi.org/project/pybammsolvers/)