Skip to content

llamicron/coolered

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coolered

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

About

A better "colored" python package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published