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.
Source Distribution
clog-0.2.2.tar.gz
(3.0 kB
view details)
File details
Details for the file clog-0.2.2.tar.gz
.
File metadata
- Download URL: clog-0.2.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c75a623cab8913c19d927d92fdcaf8a5de66a92509eb0334988401a9c9decb2 |
|
MD5 | e445a986211b64286119e726fc3ca9c8 |
|
BLAKE2b-256 | 3c9c90d529cff81e17a40ab03d766ef0412d8cb1bf3fda80eb1598f4afee7ee4 |