color_palette_at
color_palette_at is a Python library that returns a list of most often occuring colors in the given image.
You can define number of colors and color values format that will be returned.
Currently supported formats:
hex
Installation
Use the package manager pip to install color_palette_at:
pip install color_palette_at
Usage
from color_palette_at import ColorPalette
print(ColorPalette('path/to/an/image.jpg', 5, 'hex'))
# Expected result:
# ['#e0bb1e', '#c79121', '#b37027', '#ba6432', '#851f16']
Tests
You will need a pytest library to run tests. After installation of said module, run this command in a directory where the color_palette_at library is located:
pytest
To run all the tests.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for color-palette-at 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| color_palette_at-0.1.8.tar.gz | 4.7 kB | Without provenance | Details for color_palette_at-0.1.8.tar.gz |
Release files / color_palette_at-0.1.8.tar.gz
| Download URL | color_palette_at-0.1.8.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a83a1fae0bbc1f233ab80b8fd520d570c8bdf7d13585bb27d8fe1907a841993d
|
|
BLAKE2b-256 checksum How to use checksums |
e866a075be6c02e01f9dfb8c3134f015db7893f4ac33b3747490e60f72164fd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9
|
Security for color-palette-at 0.1.8
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.