This is an easy to use Python library which allows you to make your terminal outputs more colorful and therefore easier to read and understand.

It currently only works with Python3

The creator and maintainer is Jannik Ramrath (jramrath)




If you’ve found a bug or a typo, feel free to open an Issue on GitHub. Already have a solution? Make a Pull request and I’ll take a look at your changes. Please make sure a similar Issue/Pull request doesn’t already exist.


This library is hosted on You can install it with pip:

pip install textColor


To use this library, you first have to import it:

from textColor import tc

To print colored text do the following:

print("GREEN"))           # 'GREEN' will be green
print("RED"))             # 'RED' will be red
print("BLUE"))            # 'BLUE' will be blue
print("YELLOW"))          # 'YELLOW' will be yellow

You can also use special ‘pre-fixes’:

print(tc.input("Name: "))          # will output '[?] Name: '  while '[?]' is yellow
print("Info"))             # will output '[-] Info'    while '[-]' is blue
print(tc.error("ERROR"))           # will output '[!] ERROR'   while '[!]' is red
print(tc.output("Success"))        # will output '[>] Success' while '[>]' is green


This library was published under the GNU General Public License. For more information take a look at the LICENSE file.


View Github