Color your output to terminal
Project description
ChromaTerm
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
:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chromaterm-0.6.2.tar.gz
(16.2 kB
view hashes)
Built Distribution
chromaterm-0.6.2-py3-none-any.whl
(17.7 kB
view hashes)
Close
Hashes for chromaterm-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8adebf1b94eec9d85e9c583a22ec5aa88fd053b21796a644e1402a1f8396eafc |
|
MD5 | 0be957ecb371577e30f5d51d41a2af15 |
|
BLAKE2b-256 | 7b6bdf5e1a2629448cac56a59509c5522210ef519f03dae1a0e2c85d2715d21f |