Skip to content

CoderN-P/pycolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycolor

Installation

Due to pycolor already being used, the actual package name is pycolor-codern

$ pip install pycolor-codern

About

Pycolor is a simple and easy to use api wrapper for The Colorapi

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.

About

A simple python package that provides detailed info about colors

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages