Skip to main content

Tool to color code python output

Project description

# PyColors2

This is a set of color methods and a dictionary that help you wrap text output in colors. This tool was originally forked from the Fabric fabric.colors library and upgraded with utilities from the original pycolors tool in pypi.

Maintainer: Chris Gilmer at FF0000

## Methods

Using the methods is easy. To make red text:

from colors import *
print(red('This will be red text'))

To mix text simply:

from colors import *
print(red('This will be red text') + green('and this will be green text.'))

## Dictionary

Similarly the dictionary can be used:

from colors import *
print('%(red)sThis will be red text %(green)sand this will be green text.%(normal)s' % COLORS)

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

pycolors2-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

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