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](, 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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page