Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

ansi color output defined by tags within the output

Project Description

The normal terminal color libraries provide an easy way to print text with colors and styles. _ansitagcolor_ provides a binding between a tag (e.g. error, warn, info) and a given style. Tags are registered at a term instance and text can be processed with term.cprint or replace the print with term.printr.

Author:  Alexander Weigl
License: MIT
Date:    2014-03-14
Version: 0.2

Getting Started

Install with pip:

pip install --user ansitagcolor

Run in python:

from __future__ import print_function
import ansitagcolor as ansi
t = ansi.term()
print = t.printr
t.register("error", style( foreground = ansi.Color16Table.White,
                           background = ansi.Color16Table.Red) )

print("{error Error Message!}")
Release History

Release History

This version
History Node

0.2.2-1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ansitagcolor-0.2.2-1.linux-x86_64.exe (66.8 kB) Copy SHA256 Checksum SHA256 any Windows Installer May 10, 2014
ansitagcolor-0.2.2-1.linux-x86_64.tar.gz (7.2 kB) Copy SHA256 Checksum SHA256 any Dumb Binary May 10, 2014
ansitagcolor-0.2.2-1.tar.gz (8.1 kB) Copy SHA256 Checksum SHA256 Source May 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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