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

Uploaded Python 3

File details

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

File metadata

  • Download URL: kcolours-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 87d5fb7de138ee8a6406e0fb844e75d8e09877080a351956f2f160e9fa796c8f
MD5 9374e70c7c4576fe51f58e98c0e58d4c
BLAKE2b-256 906da24776224bb9803c0979e0f05428f7f2cc90a8fb45d86555820b6434335a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kcolours-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90dbbd1faf41d1c191d776b85fa86b4c1cc5dc770013cb42be99db06dc67daa9
MD5 2425f0b9a80efb2ed1b170ea18967462
BLAKE2b-256 724ffd63d7d567e877a1aaf312be440aedc976ae1056d55601b6ed438489f784

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