Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

pretty-print with color

Project description

Pretty-print things with color.

This utility allows you to wrap pprint with colors.

## Usage

Pass any data into clog and it’ll get pretty-printed.

>>> from clog import clog
>>> data = {'here': 'is some data'}
>>> clog(data)

You can also give it a title:

>>> clog(data, title="My Data")

Or change the color:

>>> clog(data, title="My Data", color="red")

## Colors

This library uses the ANSI color codes from [fabric](http://www.fabfile.org/), and it supports the following color strings:

  • blue
  • cyan
  • green
  • magenta
  • red
  • white
  • yellow

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 clog, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size clog-0.2.3.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page