Skip to main content

Color your output to terminal

Project description

ChromaTerm

Build status Language grade: Python Coverage status Documentation status PyPI version

ChromaTerm is a Python module and script used for coloring the output to terminals.

Installation

pip3 install chromaterm

Command Line Script

You can pipe a program into ct to have its output colored according to user-configurable rules. For instance, ssh | ct:

alt text

Check out the script's documentation for more details on usage.

API

You can color your module's output with ChromaTerm's API. Here's a simple example:

from chromaterm import Color

color = Color('bold')

# The string is bold-styled
color.print('Hello World!')

Have a look at the introduction for the API.

Help

If you've got any questions or suggestions, please open up an issue (always appreciated).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for chromaterm, version 0.6.5
Filename, size File type Python version Upload date Hashes
Filename, size chromaterm-0.6.5-py3-none-any.whl (17.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size chromaterm-0.6.5.tar.gz (16.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page