Skip to content

Releases: Textualize/rich

Emoji variants

12 Jul 18:23
2ea7e58
Compare
Choose a tag to compare

[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

05 Jul 14:43
Compare
Choose a tag to compare

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

18 Jun 19:47
e524643
Compare
Choose a tag to compare

The highlight of this release is a decorator to automatically create a Rich repr for any class.

Screen Shot 2021-06-18 at 17 04 52

Screen Shot 2021-06-18 at 17 04 19

[10.4.0] - 2021-06-18

Added

  • Added Style.meta
  • Added rich.repr.auto decorator

Fixed

  • Fixed error pretty printing classes with special rich_repr method

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