Skip to main content

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)

Source distribution for pilflow 0.1.0
File Size Uploaded
pilflow-0.1.0.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pilflow 0.1.0
File Interpreter ABI Platform
pilflow-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page