GitHub - luator/python-colorprinter: A simple Python module to print colored text to the terminal using ANSI escape codes. · GitHub
Skip to content

luator/python-colorprinter

Folders and files

Repository files navigation

Python Color Printer

This package provides a class to print colored output on the terminal.

Author: Felix Widmaier

Installation

To install the package use the setup.py:

python setup.py install

Usage

This is a simple example how to use the color printer:

from colorprinter import cprint
cprint.red().echo("This text is red")
cprint.blue().bold().echo("This text is blue and bold")

For more details type

import colorprinter
help(colorprinter.ColorPrinter)

About

A simple Python module to print colored text to the terminal using ANSI escape codes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages