Skip to main content

CLI tool to extract a colour palette from an image using k-means clustering.

Project description

kcolours

Extracts a colour palette from an image in the terminal using k-means clustering.


Example

The Great Wave off Kanagawa, Katsushika Hokusa (1831)

Installation & Usage

Option 1: using uv (recommended)

Run without installing using uvx

uvx kcolours example.png

or install locally

uv tool install kcolours
kcolours example.png

Option 2: using pipx

pipx install kcolours
kcolours example.png

Option 3: using pip in a virtual environment

pip install kcolours
python -m kcolours example.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kcolours-1.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kcolours-1.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file kcolours-1.0.1.tar.gz.

File metadata

  • Download URL: kcolours-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for kcolours-1.0.1.tar.gz
Algorithm Hash digest
SHA256 eee2842b2b95ed9017ce28c30b41a2e9116b79459c01c41d5263b30289f65263
MD5 6427b1b801a7834be265b20e74ce3ce6
BLAKE2b-256 11b4b1286cf722a0dc6fa89dc764498c0a7c492622b69119f574fc115808252c

See more details on using hashes here.

File details

Details for the file kcolours-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: kcolours-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for kcolours-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 825cd484efe1d109b9d0b568dc006edce2d819fc2af8ac229fabda08c2f288c5
MD5 c2af953887671454932b628fa143309f
BLAKE2b-256 01e0d1637964cbd73e434686bc38ec08dfb4e2a6f88ad73437ea336c79f80769

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page