Source

nattyprint /

Filename Size Date modified Message
728 B
211 B
10.2 KB
11.7 KB
----------------------------------------
nattyprint - a future pprint replacement
----------------------------------------

This library is meant to be a pprint replacement. Some highlights on the
differences:

 - support for displaying multiple collection entries in a single line
 
 - support for breaking long strings and byte sequences
 
 - pluggability
  
   - classes can implement __pprint__ and register themselves on the
     nattyprint.formatters list (a pattern very much like sys.path)

   - custom formatters can be implemented and registered in the same way

The formatters already implemented for builtin types are designed so they
can later be customized, inherited from, etc. to alter the formatting
behaviour.