Skip to main content

🌈 cie-utils

Advanced image processing in Python using the CIELAB color space.

CI PyPI Docs License: MIT Python pre-commit


cie-utils is a Python library for image preprocessing and color analysis using the perceptually uniform CIELAB color space.


✨ Features

✅ RGB ➡️ LAB / Lch conversion
✅ CLAHE, PCA, false color filters
✅ Background removal via pixel std deviation
✅ Cluster-based segmentation: KMeans, GaussianMixture, Agglomerative
✅ Histogram, PDF, and scatter plot visualization
✅ CSV export of processed image stats
✅ Clean and modular structure for reuse


📦 Installation

From PyPI

pip install cie-utils

From GitHub

pip install git+https://github.com/jarh1992/cie-utils.git

From local source (for development)

# Using Poetry (recommended for development)
poetry install

# Or using pip
pip install .

🧪 Example Usage

from cie-utils import normalize_img, rgb2lab

lab_img = rgb2lab(normalize_img(img, ref_img))

🧰 Development & Code Style

This project uses Poetry for dependency management:

  • 🖤 black for code formatting
  • 🔠 isort for import sorting
  • 🧼 flake8 for linting
  • ✅ pytest for testing
  • 🧪 pre-commit hooks enabled in .pre-commit-config.yaml

To install dev dependencies:

poetry install
poetry run pre-commit install

Run tests:

poetry run pytest

📚 Documentation

Documentation is automatically generated with Sphinx and hosted via GitHub Pages:

👉 https://jarh1992.github.io/cie-utils/

Documentation is automatically rebuilt and deployed on every release.


🚀 Release Process

Releases are automated via GitHub Actions. To create a new release:

./release_workflow.sh [patch|minor|major]

This will:

  1. Bump the version in pyproject.toml
  2. Commit and push a version tag
  3. GitHub Actions automatically:
    • Runs tests on Python 3.11 and 3.12
    • Publishes the package to PyPI
    • Deploys updated documentation to GitHub Pages

📝 License

MIT License. See LICENSE for details.

Metadata

Release files for cie-utils 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cie-utils 1.0.3
File Size Uploaded Provenance Actions
cie_utils-1.0.3.tar.gz 24.8 kB Without provenance Details for cie_utils-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cie-utils 1.0.3
File Interpreter ABI Platform Actions
cie_utils-1.0.3-py3-none-any.whl Python 3 none any Details for cie_utils-1.0.3-py3-none-any.whl

Total release size: 48.8 kB

Release files / cie_utils-1.0.3.tar.gz

Download URL cie_utils-1.0.3.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
91b56d3468514e04bf1b3495dc75eb984d6ec2afdaacbdc566e06da69dcbbc85
BLAKE2b-256 checksum
How to use checksums
a182cdd1631a83c8c0fd981dc46fd012618369b1a95e8c07552a73da36d64213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.0 CPython/3.12.13 Linux/6.17.0-1010-azure

Release files / cie_utils-1.0.3-py3-none-any.whl

Download URL cie_utils-1.0.3-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31713cf13a2440273da690f3ae57b37a1b72974ad3fbe0e2b8a683efa9f98182
BLAKE2b-256 checksum
How to use checksums
ffb97f8a8e65d7b52908f1a0bbb08c0301d379549e4cb67927680ab6b657aca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.0 CPython/3.12.13 Linux/6.17.0-1010-azure

Security for cie-utils 1.0.3

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.

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