This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A simple module to add ANSI colors and decorations to your strings.

Example Usage

You can choose one of the 8 basic ANSI colors: black, red, green, yellow, blue, magenta, cyan, white.

from colors import red, green, blue
print red('This is red')
print green('This is green')
print blue('This is blue')

Optionally you can specify a background color.

print red('red on blue', bg='blue')
print green('green on black', bg='black')

You can additionally specify one of the supported styles: bold, faint, italic, underline, blink, blink2, negative, concealed, crossed. Not all styles are supported by all terminals.

from colors import bold, underline
print bold('This is bold')
print underline('underline red on blue', fg='red', bg='blue')
print green('bold green on black', bg='black', style='bold')

You can also use more than one styles at once.

print red('This is very important', style='bold+underline')

xterm-256 colors are supported as well, to use them give an integer instead of a color name.

from colors import color
for i in range(256):
    print color('Color #%d' % i, fg=i)

License

colors is licensed under the ISC license.

Release History

Release History

1.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ansicolors-1.0.2.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Apr 18, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting