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.5.tar.gz
(16.8 kB
view hashes)
Built Distribution
chromaterm-0.6.5-py3-none-any.whl
(17.8 kB
view hashes)
Close
Hashes for chromaterm-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9bc9ddf5bf5a69e88f5bc684c18eeca4089744032378d6ffc2eaba64bcbaca5 |
|
MD5 | cca12578d2769d74737fe9a48c8496ad |
|
BLAKE2b-256 | 29370875c61d56cd5fa47a2339e02ce4de447c357ae9b214a631e5a730b9ce1e |