Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycolor_codern-1.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycolor_codern-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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

Hashes for pycolor_codern-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f095c207a4d3d3c480de362f02294c409121e629aaf73f27d47115fea144f9b
MD5 8ccb5bb238f1899db4e89481d31c8b23
BLAKE2b-256 0dc408f241817b4fd0314cd95c6b7cb0b0cd3b34297e96ec36329fdaeef3f785

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