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 or 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.

Installation

Install python3 :

apt install python3

Install pip :

apt install python3-pip

Install the library :

pip install colorify

How to use?

Use in command line

library usages:

colorify -h

Or,

colorify --help

Output output0 ____________

Example commands

colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"
colorify "Random Colored text"

Output output1 ____________ output2

1. First output is generated from light themed terminal
2. Sencond output is generated from dark themed terminal 

Example commands:

# text color = green
colorify -tc green Success
# text color = black , background color = green
colorify -tc black -bc green Succes))

colorify -tc red Error
colorify -tc white -bc red Error

colorify -tc orange Alert
colorify -tc black -bc orange Alert

colorify -tc blue Info
colorify -tc white -bc blue Info

Or,

# text color = green
colorify --text-color green Success
# text color = black , background color = green
colorify --text-color black --background-color green Succes))

colorify --text-color red Error
colorify --text-color white --background-color red Error

colorify --text-color orange Alert
colorify --text-color black --background-color orange Alert

colorify --text-color blue Info
colorify --text-color white --background-color blue Info

Output output1 ____________ output

1. First output is generated from light themed terminal
2. Sencond output is generated from dark themed terminal 

Use in python script

Example code:

from colorify import *

# initializing COLORIFY
init_colorify()

#this will generate text in random color each time
for i in range(10):
    print(colorify("Random Colored text"))

Output output3 ____________ output4

1. First output is generated from light themed terminal
2. Sencond output is generated from dark themed terminal 

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

In command line:

colorify [-h] [-tc TEXT_COLOR] [-bc BACKGROUND_COLOR] [-l] [-v] text

List all color:

colorify -l

Or,

colorify -cl

Or,

colorify --color-list

In python script:

print(colorify("Your text", C.TEXT_COLOR , C.BACKGROUND_COLOR))

List all color:

from colorify import *

# initializing COLORIFY
init_colorify()
#this will print the list of all available color
printAllColor()

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.1.0.tar.gz (6.7 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.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colorify-1.1.0.tar.gz
  • Upload date:
  • Size: 6.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 294b9679382dd81f9b730601754d3f20f33d9bdfb3629aaf4f7b5c9479479c99
MD5 3e587df9e1807b6d4a8a678b77f8c0c3
BLAKE2b-256 7b74d03ea8a80e24a25696dd2879b74c7ae3d9afc2011fa1ffd5aa9699c97ae6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: colorify-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00cdf103c2393bebcade1f94a36f91702d3f5d9f23c5c6d2f00c994e51c198fc
MD5 5dc94a1f25e5ddf5ae1fd9a6ef3e4d94
BLAKE2b-256 18fa428d521e8cedc89f962e62f44bb0840d931b2c103d84b7bfc90f4143d64a

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