Skip to content

Releases: Textualize/rich

Rich Repr updates

09 Jun 17:58
2002463
Compare
Choose a tag to compare

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

19 May 16:16
a81230b
Compare
Choose a tag to compare

[10.2.2] - 2021-05-19

Fixed

  • Fixed status not rendering console markup #1244

Fix markdown in layout

17 May 21:32
690507d
Compare
Choose a tag to compare

[10.2.1] - 2021-05-17

Fixed

  • Fixed panel in Markdown exploding #1234

Expanded pretty printing

12 May 17:22
Compare
Choose a tag to compare

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

Improved Jupyter support

03 Apr 09:53
e34eadb
Compare
Choose a tag to compare

[10.1.0] - 2020-04-03

Fixed

  • Fixed support for jupyter qtconsole and similar Jupyter environments

Fix for race condition in Progress

30 Mar 17:22
11c305e
Compare
Choose a tag to compare

[10.0.1] - 2021-03-30

Fixed

  • Fixed race condition that duplicated lines in progress #1144

Update to render protocol

27 Mar 15:47
b9e0014
Compare
Choose a tag to compare

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 in rich.progress and rich.progress_bar
  • Disabled Progress no longer displays itself when starting #1125

Pretty dataclass support

06 Mar 15:34
c3d0e35
Compare
Choose a tag to compare

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:

Screen Shot 2021-03-03 at 17 10 30

[9.13.0] - 2021-03-06

Added

  • Pretty printer now supports dataclasses

Fixed

  • Fixed Syntax background #1088
  • Fix for double tracebacks when no formatter #1079

Changed

  • Added ws and wss to url highlighter

Fix for custom formatter in RichHandler

01 Mar 22:37
15623c5
Compare
Choose a tag to compare

[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

28 Feb 10:43
ea2ed33
Compare
Choose a tag to compare

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