nleis.py
Second-harmonic nonlinear electrochemical impedance spectroscopy (2nd-NLEIS), a special form of nonlinear electrochemical impedance spectroscopy (NLEIS), is emerging as a powerful complementary technique to traditional electrochemical impedance spectroscopy (EIS). It retains the experimental simplicity of EIS while providing additional physical insights. However, its adoption and application have been limited by the lack of open-source, user-friendly software.
nleis.py aims to address this gap by providing a Python toolbox that is designed to work with and extend the capabilities of impedance.py. Key features include:
- Nonlinear equivalent circuit modeling (nECM)
- Simultaneous analysis of EIS and 2nd-NLEIS data
This repository contains the most recent version of nleis.py. As of today, nleis.py supports the latest version of impedance.py (v1.7.1).
Installation
The nleis.py is avaliable in a standalone version now. You can install it directly with pip.
pip install nleis
See Getting started with nleis.py for instructions on how to get most of this toolbox.
In the near future, you will be able to access all the funcationality for nleis.py from impedance.py.
Dependencies
nleis.py requires the same dependencies as impedance.py plus the latest version of impedance.py:
- Python (>=3.8,<=3.13)
- SciPy (>=1.0)
- NumPy (>=1.14)
- Matplotlib (>=3.0)
- Altair (>=3.0)
- impedance(>=1.7.1)
- pandas (>= 2.0.2)
Examples and Documentation
The detailed documentation can be found at nleispy.readthedocs.io.
Contributing to nleis.py
The nleis.py project welcomes all kinds of contributions, including bug fixes, feature requests, code reviews, new features, examples, documentation improvements, and community engagement. For any changes involving the repository, please refer to the detailed guidance in the CONTRIBUTING.md. If you encounter any issues or have suggestions, feel free to submit an issue to let us know.
We are also excited to see contributions that expand the capabilities of nleis.py. Potential future features include:
- EIS and 2nd-NLEIS data processing from the time domain
- Data validation for 2nd-NLEIS (Available with v0.3 and later)
Citing nleis.py
If you use nleis.py in your work, please consider citing our JOSS paper as:
@article{Ji2025,
doi = {10.21105/joss.07424},
url = {https://doi.org/10.21105/joss.07424},
year = {2025}, publisher = {The Open Journal},
volume = {10},
number = {105},
pages = {7424},
author = {Yuefan Ji and Matthew D. Murbach and Daniel T. Schwartz},
title = {nleis.py: A Nonlinear Electrochemical Impedance Analysis Toolbox},
journal = {Journal of Open Source Software}
}
Credits
This work adopted and built the nleis.py based on impedance.py (Murbach, M., Gerwe, B., Dawson-Elli, N., & Tsui, L. (2020). impedance.py: A Python package for electrochemical impedance analysis. Journal of Open Source Software, 5. https://doi.org/10.21105/joss.02349)
Contributors :battery:
Yuefan Ji 🎨 💻 📖 ⚠️ 👀 |
Matt Murbach 💻 👀 |
Dan Schwartz 📖 👀 |
Jake Anderson 💻 👀 |
Metadata
Release files for nleis 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nleis-0.3.tar.gz | 37.3 MB | With provenance | Details for nleis-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nleis-0.3-py3-none-any.whl | Python 3 | none | any | Details for nleis-0.3-py3-none-any.whl |
Total release size: 74.7 MB
Release files / nleis-0.3.tar.gz
| Download URL | nleis-0.3.tar.gz |
|---|---|
| Size | 37.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d58a5a3bf7a6c3c2eeb8f8dc9610c0c644b9078e0ee54ccfee51e3a88e0ea3ca
|
|
BLAKE2b-256 checksum How to use checksums |
e11a4775b321d54aa1a68fd2fd1633721399d34f61d04f33fd6b4500413b5fd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 16, 2025.
Transparency logRelease files / nleis-0.3-py3-none-any.whl
| Download URL | nleis-0.3-py3-none-any.whl |
|---|---|
| Size | 37.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0677f05d0a72ec6a88c589fe0654a57e726cf5211fc4687814d94b2c0b1bd32
|
|
BLAKE2b-256 checksum How to use checksums |
dbbdd053df75fe67c895c78045035948b38981058215b7ab46d35ced89c5b0cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 16, 2025.
Transparency logSecurity for nleis 0.3
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 2 files in this release have been uploaded with provenance metadata.
Attestation for nleis-0.3.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 16, 2025.
Transparency logA 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.