Skip to content

Simple and lightweight package for coloring text in the CLI

License

Notifications You must be signed in to change notification settings

AlexBrin/termcolors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

termcolors

Simple and lightweight package for coloring text in the CLI

Usage

import termcolors

print(termcolors.text.red + "Red text " + termcolors.background.pink + " on pink bg" + termcolors.reset)
# or
print(termcolors.colorize("{{text_red}}Red text {{bg_pink}}on pink bg"))

Colors

Color reset resets all previous color settings

Name Text Background
black + +
red + +
green + +
yellow + +
blue + +
purple + +
sky + +
gray + +
corral + +
light_green + +
light_yellow + +
pink + +
cyan + +

example

Install

Run:

pip install git+https://github.com/AlexBrin/termcolors

About

Simple and lightweight package for coloring text in the CLI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages