Skip to main content

TerCol is a library that colors your text.

Project description

Code style: black

TerCol

TerCol is a small, pure Python library that allows you to color and style text output. TerCol has no dependencies and only requires Python 3.7 or newer. It also supports true color.

Usage

import tercol

print(tercol.red('Red text'))
print(tercol.blue('Blue text'))
print(tercol.rgb(255, 215, 0, 'Gold text using RGB'))
print(tercol.hexa(0xffd700, 'Gold text using HEX'))
print(tercol.hsv(51, 100, 100, 'Gold text using HSV'))
print(tercol.rainbowtext('Rainbow text'))

Requirements

TerCol only requires Python 3.7 or newer. No additional dependencies are needed.

Pros

  • Small size
  • Pure Python
  • No dependencies
  • Simple automatic reset handling
  • IDE-autocomplete friendly
  • True color support

Cons

  • Limited support of nested styles
  • Only supports Python 3.7+

License

TerCol is licensed under the MIT license. See the LICENSE file for more info.

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

tercol-0.1.5.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

tercol-0.1.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file tercol-0.1.5.tar.gz.

File metadata

  • Download URL: tercol-0.1.5.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for tercol-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a79dd6544cb5eb7e5980255468b8365990a442c1d98581cc5e630e6c7aabde06
MD5 34167ffc59d90d827722eb6536e529b3
BLAKE2b-256 8f2f2430b7065678476c0b6ea86580d453272720a9762194e0273eea982e6845

See more details on using hashes here.

File details

Details for the file tercol-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: tercol-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for tercol-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b5180cd4d29d77d0ed893f023cd18fbca09584cce8f32fa17467e29d493294c9
MD5 164520e05502e8477b5bb95409b40b63
BLAKE2b-256 a4ae9e3a8500b09d8ce27501d04e96c6113203312fbe6d1957ca439bfcde041b

See more details on using hashes here.

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