Releases: Textualize/rich
Releases · Textualize/rich
Emoji variants
[10.6.0] - 2021-07-12
Deprecated
- Added deprecation warning for tabulate_mapping which will be removed in v11.0.0
Added
- Added precision argument to filesize.decimal
- Added separator argument to filesize.decimal
- Added _rich_traceback_guard to Traceback
- Added emoji_variant to Console
- Added -emoji and -text variant selectors to emoji code
Fixed
- Fixed issue with adjoining color tags #1334
Changed
- Changed Console.size to use unproxied stdin and stdout
Mostly repr fixes
Some fixes, and a few methods to support Textual
[10.5.0] - 2021-05-07
Fixed
- Fixed Pandas objects not pretty printing #1305
- Fixed #1256
- Fixed typing with rich.repr.auto decorator
- Fixed repr error formatting #1326
Added
- Added new_line_start argument to Console.print
- Added Segment.divide method
- Added Segment.split_cells method
- Added segment.SegmentLines class
Auto Rich Repr
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