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 hashes)

Uploaded Source

Built Distribution

tercol-0.1.5-py3-none-any.whl (5.6 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