Bring life into your project by adding wonderful colors
Project description
Colorify
Did you find it difficult to read your output in the terminal while running a python script? Here comes colorify. It will provide you a huge range of color to choose from to print any text in the terminal with color.
How to use?
Install the library :
pip install colorify
Example code:
from colorify import *
# initializing COLORIFY
init_colorify()
# text color = green
print(colorify("Sucess", C.green))
# text color = black , background color = green
print(colorify("Sucess", C.black, C.green))
print(colorify("Error ", C.red))
print(colorify("Error ", C.white, C.red))
print(colorify("Alert ", C.orange))
print(colorify("Alert ", C.black, C.orange))
print(colorify("Info ", C.blue))
print(colorify("Info ", C.white, C.blue))
Output
____________
1. First output is generated from light themed terminal
2. Sencond output is generated from dark themed terminal
Color options
print(colorify("Your text", C.color_name , C.color_name))
Basic colors:
More colors:
Need more colors?
#use your own RGB color
print(colorify("Your text", (r,g,b) , (r,g,b)))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colorify-1.0.1.tar.gz
(4.0 kB
view hashes)