Skip to main content

Pycolor uses thecolorapi to to get useful information about colors in a pythonic way.

Project description

pycolor

Installation

pip install pycolor

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 Distribution

pycolor-codern-1.0.0.tar.gz (3.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.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycolor-codern-1.0.0.tar.gz
  • Upload date:
  • Size: 3.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.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pycolor-codern-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ac10c371fec094ae29211cf1eee71aee99ddbd16581340adfb15714f9e95a98e
MD5 168267a75fd83fafadb2ada383041d6d
BLAKE2b-256 b2456e912d080380a67b02e803922f8c2895bd8dc5b29dbf5688b75db8547811

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycolor_codern-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e672d01b7d8ed1c12e3e360bc14444b007b00e13270c5811252bb6c49cc8f490
MD5 d2f3c1732b509d686b5a3652aebc9b9e
BLAKE2b-256 306967b20bc0774f03697b334d7363ff9af82cb96c827b84a854e74f894eb187

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