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:

cplor_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.1.tar.gz (291.6 kB view details)

Uploaded Source

Built Distribution

tcolorpy-0.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file tcolorpy-0.0.1.tar.gz.

File metadata

  • Download URL: tcolorpy-0.0.1.tar.gz
  • Upload date:
  • Size: 291.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tcolorpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 29be11202b2a2aa21cd0ec6ba5152d0d56ad5e484ab72e2c8648a88897338cf7
MD5 4e8de862d136f7da2d99df38ca90573c
BLAKE2b-256 65b8a1b08a106a13bab0a5cab0442393b9253c098d89d3b84ec7f0c2250685b4

See more details on using hashes here.

Provenance

File details

Details for the file tcolorpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tcolorpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tcolorpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2880ac53fd0eb61e3c8be11f74d9f6dc8a897f1d738c2f2c97f32303ab3f5c83
MD5 29023d1f0a4535b792f9b18372ad9d30
BLAKE2b-256 36101d04d72178a4838b34b27e478db44d895b70653b2a9fd376b42c9a2ce580

See more details on using hashes here.

Provenance

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