Skip to main content

Pixel Palette

A Python package to extract dominant colors from an image and display them in RGB, Hex, and HSL formats.

Installation

Install the package using pip:

pip install pixelpalette

Usage

from pixelpalette import extract_colors

image_path = "you_image_path"
colors = extract_colors(image_path, n_colors=10)

for i, color in enumerate(colors):
    print(f"Color {i+1}:")
    print(f"  RGB: {color['RGB']}")
    print(f"  Hex: {color['Hex']}")
    print(f"  HSL: {color['HSL']}")

Outout

Color 1:
  RGB: rgb(255, 200, 100)
  Hex: #ffc864
  HSL: hsl(30, 100%, 70%)
...

Dependencies

  • numpy
  • matplotlib
  • scikit-learn

Metadata

Release files for pixelpalette 1.0.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 pixelpalette 1.0.0
File Size Uploaded Provenance Actions
pixelpalette-1.0.0.tar.gz 3.0 kB Without provenance Details for pixelpalette-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.2 kB

Release files / pixelpalette-1.0.0.tar.gz

Download URL pixelpalette-1.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
90a8a501c4ceefcd2e8e9764425ca197be0d8305e0de59ca554c1bacf8d23c51
BLAKE2b-256 checksum
How to use checksums
84b0e93a19b4acc666acc8080a93c6b343f73d76f587d193472e54db998b8b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / pixelpalette-1.0.0-py3-none-any.whl

Download URL pixelpalette-1.0.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
137000b6ce373b30c7b96a69561d14854ff56d29a62f64a4f1bdae75ac39afda
BLAKE2b-256 checksum
How to use checksums
186f199a540eb0667d9a3a748ad4ab76df5aa2bc9d2538f6574b619f3b27d81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Security for pixelpalette 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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