Python version support: CPython 2.6, 2.7, 3.2, 3.3, 3.4 and PyPy.
ansicolor
is a library that makes it easy to use ansi color markup in command line programs.
$ pip install ansicolor
Read the documentation on Read the Docs!
Take a look at the demos
to see what's possible.
$ python -m ansicolor.demos --color
$ python -m ansicolor.demos --highlight
$ python -m ansicolor.demos --diff