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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorify-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file colorify-1.0.0.tar.gz.

File metadata

  • Download URL: colorify-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for colorify-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6b630fb6d57418c64783cd54bc616b6bdcb0b56491d56806da4c0d08c4f64ef4
MD5 ce5c294dff517ef2508c4fa976b69c52
BLAKE2b-256 a3f2ff754770f6ea72706483d96412c8884b9cd48ce2b9b4bec906cdb8050d33

See more details on using hashes here.

File details

Details for the file colorify-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: colorify-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for colorify-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5259f9ced315ae17b0046e847d3f27c64639e3c6ba049e8098d86df52c3c6d
MD5 342c1d6edb9a528b5867ea66b6298b1a
BLAKE2b-256 3d1ca3b12d2d90f99efee0dc05207ca29341f3b12ae9f265859f2cf19d7be191

See more details on using hashes here.

Supported by

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