Skip to main content

tcolopy is a Python library to apply true color for terminal text.

Project description

Summary

tcolopy is a Python library to apply true color for terminal text.

PyPI package version Supported Python versions Supported Python implementations Linux/macOS CI status Windows CI status Test coverage: coveralls https://codecov.io/gh/thombashi/tcolorpy/branch/master/graph/badge.svg

Usage

Library usage

Sample Code:
from tcolorpy import tcolor

print(tcolor("tcolopy example", color="#ee1177", styles=["bold", "italic", "underline"]))
Output:
oneline

CLI usage

You can also use tcolorpy via CLI:

$ python -m tcolorpy "tcolopy example" -c "#ee1177" -s bold,italic,underline

Output examples

Apply true color and styles to text:

true_color_and_styles

You can also specify by color names:

color_names

Installation

pip install tcolorpy

Dependencies

Python 3.5+ No external dependencies.

Project details


Download files

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

Source Distribution

tcolorpy-0.0.4.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

tcolorpy-0.0.4-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page