Library to create flexible interactive image processing pipelines and automatically add a graphical user interface without knowing anything about GUI coding!
Project description
interactive_pipe
Turn plain python processing functions into an interactive GUI app — without writing a single line of GUI code.
pip install interactive-pipe
- Develop an algorithm while debugging visually with plots, checking robustness and continuity to parameter changes.
- Magically create a graphical interface to demonstrate a concept or tune your algorithm.
- Keep your algorithm library untouched: interactivity is added by decoration, not by rewriting.
- The same pipeline runs headless for batch processing and tests.
Quick taste
from interactive_pipe import interactive, interactive_pipeline
import numpy as np
@interactive(coeff=(1.0, [0.5, 2.0], "exposure"), bias=(0.0, [-0.2, 0.2]))
def exposure(img, coeff=1.0, bias=0.0):
return img * coeff + bias
@interactive(blend_coeff=(0.5, [0.0, 1.0]))
def blend(img0, img1, blend_coeff=0.5):
return (1 - blend_coeff) * img0 + blend_coeff * img1
@interactive_pipeline(gui="qt") # or "mpl", "nb" (Jupyter/Colab), "gradio"
def pipe(img):
exposed = exposure(img)
blended = blend(img, exposed)
return exposed, blended
pipe(np.array([0.0, 0.5, 0.8]) * np.ones((256, 512, 3)))
Calling pipe(...) opens a window with sliders for every declared parameter. 🎉
Backends
| PyQt / PySide | Matplotlib | Jupyter / Colab | Gradio |
|---|---|---|---|
gui="qt" |
gui="mpl" |
gui="nb" |
gui="gradio" |
Plus headless mode (gui=None) for batch processing. Full feature matrix in the backends docs.
Learn more
- 📖 Documentation — quickstart, guides, API reference
- 🤖 Agent-friendly docs: llms.txt / llms-full.txt
- 🎓 Interactive tutorial on Hugging Face
- 🗒️ Examples gallery — 17 demo scripts, Colab notebooks, a Raspberry Pi jukebox
- 📋 Changelog
- 🤝 Contributing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file interactive_pipe-0.9.1.tar.gz.
File metadata
- Download URL: interactive_pipe-0.9.1.tar.gz
- Upload date:
- Size: 128.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c4e7cf18ee490ad435183fd8e15db3f7d03b206bef53947766a1c120ee65bdd
|
|
| MD5 |
7527a5759caed20b69b6c192465cd609
|
|
| BLAKE2b-256 |
73761ae63254ec99245a9ee0bd19c9144a9feb8622186a05d7c99e7a808e6309
|
File details
Details for the file interactive_pipe-0.9.1-py3-none-any.whl.
File metadata
- Download URL: interactive_pipe-0.9.1-py3-none-any.whl
- Upload date:
- Size: 111.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62de75d70aaac4514b8c8ab0ad26a6d9675308b179cf777863c666111ff21d53
|
|
| MD5 |
f2f63cc5ae05a78ca8998342981fd6e2
|
|
| BLAKE2b-256 |
5902009d1ede4abca75f8101c1e8878204af9d8707cd82dc86c4720f043cc6b2
|