If we have terminal based application, sometime it’s useful to coloring out its output.. for easier to read, et bien sûr because it will be more beautiful :^) After searching around how to coloring out terminal output of python applications, voila Python termcolor module. OK… just pip-ing it,

pip install termcolor

Installation run smoothly. I tested some example given on its site, and.. what a surprise! it can also blinking out the terminal output.

from termcolor import colored
print colored('Hello, World!', 'red', attrs=['reverse', 'blink'])
print colored('Hello, World!', 'green', 'on_red')
red_on_cyan = lambda x: colored(x, 'red', 'on_cyan')
print red_on_cyan('Hello, World!')
print red_on_cyan('Hello, Universe!')

and the result:

Another great module..