skip to navigation
skip to content

Not Logged In

rprint 1.0.0

Resursivly pretty print objects.

This rather simple python module pretty-prints objects or lists recursively. Useful in development/debug when you can’t be bothered to write to_strings for each of your classes (or simple, can’t).

Unlink pprint, this module will recurse into objects’ attributes and print them, insted of simply using the `__str__` function.

This package is compatible with python2 or python3 (aka: python). Tested on 2.7.7 and 3.4.1.

Installation

`easy_install rprint` or `pip install rprint`

Usage

from rprint import to_string s = to_string(some_fancy_object_or_list)

print(s)

Copyright (c) 2014, Hugo Osvaldo Barrera <hugo@barrera.io>

 
File Type Py Version Uploaded on Size
rprint-1.0.0.linux-x86_64.tar.gz (md5)
built for Linux-3.14.5-1-ARCH-x86_64-with-glibc2.3.4
"dumb" binary any 2014-06-08 3KB
rprint-1.0.0.tar.gz (md5) Source 2014-06-08 2KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 31 downloads in the last week
  • 125 downloads in the last month