Releases: Textualize/rich
Rich Repr updates
This release fleshes out the new Rich Repr protocol
[10.3.0] - 2021-06-09
Added
- Added Console.size setter
- Added Console.width setter
- Added Console.height setter
- Added angular style Rich reprs
- Added an IPython extension. Load via
%load_ext rich
Changed
- Changed the logic for retrieving the calling frame in console logs to a faster one for the Python implementations that support it.
Fix console markup in status text
Fix markdown in layout
Expanded pretty printing
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.
[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
Improved Jupyter support
[10.1.0] - 2020-04-03
Fixed
- Fixed support for jupyter qtconsole and similar Jupyter environments
Fix for race condition in Progress
Update to render protocol
Some significant signature to render protocol, hence the major version bump. These are unlikely to impact many people unless you are implementing your own renderables.
Most of the work in this version was to aid development of adding more dynamic features to future versions.
See changelog for details...
[10.0.0] - 2021-03-27
Changed
- Made pydoc import lazy as at least one use found it slow to import #1104
- Modified string highlighting to not match in the middle of a word, so that apostrophes are not considered strings
- New way of encoding control codes in Segment
- New signature for Control class
- Changed Layout.split to use new Splitter class
- Improved layout.tree
- Changed default theme color for repr.number to cyan
__rich_measure__
signature changed to accept ConsoleOptions rather than max_width
Added
- Added
__rich_repr__
protocol method to Pretty - Added rich.region.Region
- Added ConsoleOptions.update_dimensions
- Added rich.console.ScreenUpdate
- Added Console.is_alt_screen
- Added Control.segment, Control.bell, Control.home, Control.move_to, Control.clear, Control.show_cursor, Control.alt_screen
- Added Console.update_screen and Console.update_screen_lines
- Added Layout.add_split, Layout.split_column, Layout.split_row, layout.refresh
- Added new Rich repr protocol
__rich_repr__
Fixed
- Fixed table style taking precedence over row style #1129
- Fixed incorrect measurement of Text with new lines and whitespace #1133
- Made type annotations consistent for various
total
keyword arguments inrich.progress
and rich.progress_bar
- Disabled Progress no longer displays itself when starting #1125
Pretty dataclass support
The highlight of this release is that pretty printing now supports dataclasses, which can now collapse just like other data structures. Here's an example:
[9.13.0] - 2021-03-06
Added
- Pretty printer now supports dataclasses
Fixed
Changed
- Added ws and wss to url highlighter
Fix for custom formatter in RichHandler
[9.12.4] - 2021-03-01
Fixed
- Fixed custom formatters with rich tracebacks in RichHandler #1079
Changed
- Allow highly compressed table cells to go to 0 width
- Optimization to remove empty styles in various places
Faster tables
A optimization to the Padding class. This is unlikely to impact anyone unless you are printing very large tables.
[9.12.3] - 2021-02-28
Changed
- Optimized Padding