Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

ColorMe

Python 3 colored output, Simple script to color your python output in your projects, this script tested in Windows 10, Linux

Usages

copy this repo and put pycolor.py file in your project folder(current working directory) then

frompycolorimportColorMe

Simply define your color

# for color onlyColorMe.red('Hello World')
ColorMe.yellow('Hello World')
# color with backgroundColorMe.red('Hello World', bg='yellow')
# color, background and style (bold)ColorMe.yellow('Hello World', bg='yellow', dec='bold')
# for labels(see below table to look all supported labels)ColorMe.warning('Hello World')
# many more.....

Try them one by one

# print("I love", ColorMe.red("Panda"))# print("I love", ColorMe.red("Panda", dec="bold"))# print("I love", ColorMe.red("Panda", dec="bold, underline"))# print("I love", ColorMe.red("Panda", dec="bold, underline, reversed"))# print("I love", ColorMe.black("Panda", bg="purple"))# print("I love", ColorMe.black("Panda", bg="purple", dec="bold"))# print("I love", ColorMe.black("Panda", bg="purple", dec="bold, underline"))# print("I love", ColorMe.red("Panda", bg="black", dec="bold, underline, reversed"))# print("Name with label", ColorMe.warning(" Panda"))# print("Name with label & color", ColorMe.info(ColorMe.green(" Panda")))# print("I love", ColorMe.success(ColorMe.red(" Panda", dec="bold")))

Above code output from Windows cmd

Alt text

Supported colors and styles

Background(bg)Foreground(fg)Style(dec)Label(lab)
blackblackboldwarning
redredunderlineinfo
greengreenreversedsuccess
yellowyellowquestion
bluebluerunning
purplepurple
cyancyan
whitewhite

About

Python 3 colored output in command prompt

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages