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 get useful information about colors in a pythonic way.

Usage

from pycolor import Color

rgb = (1, 233, 123)
color = Color('Rgb', 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 Distribution

pycolor-codern-1.1.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.

pycolor_codern-1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pycolor-codern-1.1.tar.gz.

File metadata

  • Download URL: pycolor-codern-1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • 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.9.10

File hashes

Hashes for pycolor-codern-1.1.tar.gz
Algorithm Hash digest
SHA256 0eeb2c36472e07a57555d0502eeaffc2047b77e55e97bfef582a27802428f97a
MD5 4dc6d2a3b6cc267002c9feeb232ddef0
BLAKE2b-256 002186ad1dfe37922711a9485b304ce8fbfc1e37fac62aec624b78764c9b15eb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pycolor_codern-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 deb8402c32d490e077219697edaa4788151397117a6cfb6b60b32784246558e5
MD5 d6092e9370ba126334aa6815681167e3
BLAKE2b-256 1dd5070c8cce20486ea184f2e409bb3478e2bc86de057a5515ee72a6f49d89d7

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