coolered

A better dslackw/colored


Keywords
development, color, terminal, text, codes, ascii, colored, coolered, color-terminal
License
MIT
Install
pip install coolered==0.1.0

Documentation

Coolered

A better dslackw/colored

I read the readme of dslackw/colored for Python, and thought it was too complicated. This will be an interface so simple you memorize it immediately.

Example

# Colors
color('red', 'This is red')
color('blue', 'This is blue')
color('yellow', 'This is yellow')

# Backgrounds
color('red', "This is red with a blue background", bg='blue')
color('blue', "This is blue with a yellow background", bg='yellow')

# That's it

Color reference

Run

$ coolered -b

to see a list of basic (-b) colors. Run

$ coolered -l

to see a complete list (-l) of colors

Usage in python

from coolered import color

# Do shit
color('red', "Oh fuck, something bad happened")
# Do more shit
color('green', "Something good happened")
# Do more shit
color('yellow', "Warning: something happened")

Installation

pip install coolered

Uninstallation

pip uninstall coolered