Skip to content

Expanded pretty printing

Compare
Choose a tag to compare
@willmcgugan willmcgugan released this 12 May 17:22
· 2217 commits to master since this release

This version has some enhancements to pretty printing. Rich will now pretty print objects created with attrs (https://www.attrs.org/en/stable/). Additionally, there is expanded support for UserList, UserDict, and mappingproxy -- less common containers in Python.

Screen Shot 2021-05-12 at 18 17 45

[10.2.0] - 2021-05-12

Added

  • Added syntax for call, i.e. "Foo(bar)"
  • Added Console.measure as a convenient alias for Measurement.get
  • Added support for pretty printing attrs objects
  • Added mappingproxy to pretty print
  • Added UserDict and UserList support to pretty printer

Changed

  • Changed colorama init to set strip=False
  • Changed highlighter for False, True, None to not match in the middle of a word. i.e. NoneType is no longer highlighted as None

Fixed

  • Fixed initial