Skip to main content

A simple way to add colours to terminal output in Python.

Project description

hl.colours add colours to terminal output.

Installation

Automatic installation:

pip install hl.colours

hl.colours is listed in PyPI and can be installed with pip or easy_install.

Manual installation: Download the latest source from PyPI.

tar xvzf hl.colours-$VERSION.tar.gz
cd hl.colours-$VERSION
sudo python setup.py install

The hl.colours source code is hosted on GitHub.

Usage Example

Usage:

import hl.colours as k

for color in ['red', 'yellow', 'bblue', 'byellow']:
    print getattr(k, color)(color)

print k.yellow('This is yellow.')
print k.bred('This is stronger red.')

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

hl.colours-0.1.4.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file hl.colours-0.1.4.tar.gz.

File metadata

  • Download URL: hl.colours-0.1.4.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hl.colours-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c3434d8ecb30f64228b7a61dbb4613f5c0e50b2c9c008c525f20fba6fca11eed
MD5 3615aed62de03724f595bb0c25812604
BLAKE2b-256 7f1487ad867b711a4c5bd0bd16febde6e9dc095c864a9a6c35ff31a44b5724ba

See more details on using hashes here.

Supported by

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