Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for hl.colours, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size hl.colours-0.1.4.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page