A Pillow-based image processing pipeline project.
Project description
Pilflow
A Pillow-based image processing pipeline project with a functional programming approach for image processing operations.
Features
- Modular and extensible image processing pipeline
- Functional programming approach with immutable operations
- Method chaining for clean and readable code
- Easy to extend with custom operations
- Comprehensive test suite
Python Version Compatibility
This project is developed and tested with Python 3.8.
Installation
pip install -e .
For development:
pip install -e ".[dev]"
Usage
For a quick start, see examples/example_usage.py.
from pilflow import from_file, Operation
# Load an image
pipeline = from_file('path/to/image.jpg')
# Apply operations
result = (pipeline
.decide_resolution() # Analyze resolution
.resize(width=800) # Resize to width 800px
.blur(radius=1.5)) # Apply blur
# Access the final image
final_image = result.img
# Access context data
print(result.context)
Testing
The project includes a comprehensive test suite. To run the tests:
python run_tests.py
Or with coverage reporting:
python run_tests.py --html
See tests/README.md for more details on testing.
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 pilflow-0.1.0.tar.gz.
File metadata
- Download URL: pilflow-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baeceafb38393373d004ab46b56d72c501c3277286369223b0956e8bff5a7393
|
|
| MD5 |
d0ee06b28f866cada037e31d51993990
|
|
| BLAKE2b-256 |
19e6c6a40afb547918202b8d5cffe853bc0501cbf52010b0588e2db14a5bef4c
|
File details
Details for the file pilflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pilflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2398bd9b54d94d17cd4bba9138030ab14cb45822ba0ddc809aac4a06cb0d19ae
|
|
| MD5 |
6c5f9227486505872cb6a04ffabfc2ef
|
|
| BLAKE2b-256 |
09d0d3f68614b48bf82b577b1aa3b5d5acc66cb2a41f6e170f0cbfe1d4244c1f
|