Pycolor uses thecolorapi to to get useful information about colors in a pythonic way.
Project description
pycolor
Installation
Due to pycolor already being used, the actual package name is pycolor-codern
$ pip install pycolor-codern
About
Pycolor uses thecolorapi to to get useful information about colors in a pythonic way.
Usage
from pycolor import Color
rgb = (1, 233, 123)
color = Color(rgb)
# Returns a color object
# Color(color_input=(1, 233, 123), input_type='rgb', hex='#01E97B', cmyk='100, 0, 47, 9', name='Spring Green', hsl='152, 99, 46', xyz='42, 69, 57', image='https://singlecolorimage.com/get/01E97B/400x100.png', hsv='152, 100, 91', rgb='1, 233, 123')
name = color.name
image_url = color.image
color_hex = color.hex
# etc.
More examples can be seen in /examples
Contributing
If you have any questions or concerns feel free to make a pull request or open an issue.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycolor_codern-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pycolor_codern-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9d954db953d20c2fb55ddaf4c803166d6e2b0226c6d7c6f1d9574079a6f5ad6
|
|
| MD5 |
7849ae1d64e09b537d94f14a6799d83f
|
|
| BLAKE2b-256 |
f88f086542acd34c94fa4ad6fe63ae782454c8714b974305a3af4c38392eeb51
|