Colorama

0.4.6 · active · verified Sat Mar 28

Colorama is a Python library that simplifies printing colored text and styles to the terminal, ensuring cross-platform compatibility, especially on Windows. The current version is 0.4.6, released on October 25, 2022. The library has a stable release cadence, with updates addressing compatibility and minor feature enhancements.

Warnings

Install

Imports

Quickstart

Initialize Colorama with auto-reset and print colored and styled text.

from colorama import init, Fore, Back, Style

init(autoreset=True)

print(Fore.RED + 'This is red text')
print(Back.GREEN + 'This has a green background')
print(Style.BRIGHT + 'This is bright text')
print('Back to normal text')

view raw JSON →