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.2.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.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kcolours-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 84dae0c72fb7b86c973528d57dd0861e4abc6061cfbda31c2f99e2432099c891
MD5 54883e9c36e52e256530256aa64c5da5
BLAKE2b-256 e08b660dd21f1f097abd643239cc6e9cc3121526fdb5ee8b928c9889f04a7355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kcolours-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c8e4593924cc6f757939e659431f918d340a361b06ddcf7f9c68e5fc725a589
MD5 1adef7e6c37f038158edb5f83a094a9d
BLAKE2b-256 6ec1b0ed3372df1a9a9833ebd1fc7065724b77b3eda3b786d87724f42106ffbe

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