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.
Metadata
Release files for pilflow 0.1.0
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 |
|---|---|---|---|---|
| pilflow-0.1.0.tar.gz | 12.4 kB | Without provenance | Details for pilflow-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pilflow-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pilflow-0.1.0-py3-none-any.whl |
Total release size: 27.5 kB
Release files / pilflow-0.1.0.tar.gz
| Download URL | pilflow-0.1.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baeceafb38393373d004ab46b56d72c501c3277286369223b0956e8bff5a7393
|
|
BLAKE2b-256 checksum How to use checksums |
19e6c6a40afb547918202b8d5cffe853bc0501cbf52010b0588e2db14a5bef4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.20
|
Release files / pilflow-0.1.0-py3-none-any.whl
| Download URL | pilflow-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2398bd9b54d94d17cd4bba9138030ab14cb45822ba0ddc809aac4a06cb0d19ae
|
|
BLAKE2b-256 checksum How to use checksums |
09d0d3f68614b48bf82b577b1aa3b5d5acc66cb2a41f6e170f0cbfe1d4244c1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.20
|
Security for pilflow 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.