Skip to main content

Bring life into your project by adding wonderful colors

Project description

logo

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

output1 ____________ 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:

color_palette

More colors:

color_palettecolor_palettecolor_palettecolor_palettecolor_palettecolor_palettecolor_palettecolor_palettecolor_palettecolor_palettecolor_palette

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.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

colorify-1.0.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page