Metadata-Version: 2.4
Name: blowing-bubbles
Version: 0.2.0
Summary: Equivalent-circuit fitting of electrochemical impedance spectra (EIS).
Keywords: electrochemistry,impedance spectroscopy,EIS,equivalent circuit,CPE,fitting
Author: Oliver Mohr
Author-email: Oliver Mohr <oliver@mohr.dk>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Chemistry
Requires-Dist: matplotlib>=3.4
Requires-Dist: numpy>=1.20
Requires-Dist: pandas>=1.3
Requires-Dist: scipy>=1.7
Requires-Dist: streamlit>=1.66.1
Requires-Dist: tool>=0.8.0
Requires-Python: >=3.13
Project-URL: Repository, https://github.com/LePies/BlowingBubbles
Project-URL: Issues, https://github.com/LePies/BlowingBubbles/issues
Project-URL: Changelog, https://github.com/LePies/BlowingBubbles/blob/main/CHANGELOG.md
Project-URL: Documentation, https://github.com/LePies/BlowingBubbles/tree/main/docs
Description-Content-Type: text/markdown

<p align="center">
  <img src="src/blowing_bubbles/ui/assets/icon.svg" width="140" alt="BlowingBubbles icon">
</p>

# BlowingBubbles

<p align="center">
  <img src="https://img.shields.io/badge/python-3.14%2B-blue" alt="Python 3.14+">
  <img src="https://img.shields.io/badge/license-MIT-green" alt="License: MIT">
  <img src="https://img.shields.io/badge/docs-no_finished_builds-red" alt="Docs: no finished builds">
</p>

Python tools for electrochemical impedance spectroscopy (EIS): load spectra, evaluate
the R–CPE equivalent circuit, and fit branch parameters.

## Installation

```bash
pip install blowing-bubbles
```

## License

Released under the [MIT License](LICENSE): free use, modification, and redistribution.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for the development setup (uv, ruff, ty,
deptry, pytest). To report a security issue, see [SECURITY.md](SECURITY.md).

## Citation (published scientific work)

If you use BlowingBubbles in **published** scientific work (papers, theses, preprints,
citable reports), please cite the entry in [`CITATION.bib`](CITATION.bib) or
[`CITATION.cff`](CITATION.cff). Private or internal use does not require a citation.
See [`ACADEMIC_CITATION.md`](ACADEMIC_CITATION.md).

## Interactive UI

An optional Streamlit UI (single-spectrum fitting, batch folder fitting, and a
live-tune mode) is included. Install the extra group and launch it:

```bash
uv sync --group ui
streamlit run src/blowing_bubbles/ui/app.py   # or: python -m blowing_bubbles.ui
```

### Windows desktop app

The same UI can be packaged as a standalone desktop app (native window via
Edge WebView2, no browser chrome):

```bash
uv sync --group desktop
uv run pyinstaller desktop.spec --clean
# produces dist/BlowingBubbles/ with the launcher BlowingBubbles.exe inside
# (onedir build: starts much faster than onefile; ship the whole folder)
```

The exe needs the WebView2 runtime on the target machine (preinstalled on
Windows 11; a bootstrapper is available for Windows 10).

## Documentation

The documentation is built with [Sphinx](https://www.sphinx-doc.org/). The
Sphinx dependencies are in the `docs` dependency group, which `uv sync`
installs by default. From the project root:

```bash
uv sync
uv run sphinx-build -W -b html docs/source docs/build/html
```

Then open `docs/build/html/index.html` in a browser.

The build also runs the scripts in `examples/` to generate the example gallery.
That takes a few minutes the first time; after that, only changed examples are
re-run. To re-read all source files, add `-E`; to start completely fresh, delete
`docs/build/`. See `docs/source/getting_started.rst` for more details.
