Skip to main content

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
clog-0.2.3.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None

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