Skip to content

Releases: Textualize/rich

v10.13.0

07 Nov 16:10
Compare
Choose a tag to compare

This release is mostly bugfixes (details below). The minor version bump is because print_json grew a number of parameters to match json.dumps

[10.13.0] - 2021-11-07

Added

  • Added json.dumps parameters to print_json #1638

Fixed

  • Fixed an edge case bug when console module try to detect if they are in a tty at the end of a pytest run
  • Fixed a bug where logging handler raises an exception when running with pythonw (related to https://bugs.python.org/issue13807)
  • Fixed issue with TERM env vars that have more than one hyphen #1640
  • Fixed missing new line after progress bar when terminal is not interactive #1606
  • Fixed exception in IPython when disabling pprint with %pprint #1646
  • Fixed issue where values longer than the console width produced invalid JSON #1653
  • Fixes trailing comma when pretty printing dataclass with last field repr=False #1599

Changed

  • Markdown codeblocks now word-wrap #1515

Python3.10 support

06 Oct 13:09
Compare
Choose a tag to compare

[10.12.0] - 2021-10-06

Updated

  • Official Py3.10 release

Fixed

  • Fixed detection of custom repr when pretty printing dataclasses

v10.11.0

24 Sep 09:06
Compare
Choose a tag to compare

Added two new options to Tracebacks, to hide framework code, and guard against very long tracebacks.

Screen Shot 2021-09-24 at 09 42

Screen Shot 2021-09-23 at 21 29

[10.11.0] - 2021-09-24

Added

  • Added suppress parameter to tracebacks
  • Added max_frames parameter to tracebacks

v10.10.0: Merge pull request #1496 from willmcgugan/pretty-fix

18 Sep 09:41
23aa717
Compare
Choose a tag to compare

[10.10.0] - 2021-09-18

Added

  • Added stdin support to rich.json

Fixed

  • Fixed pretty printing of objects with fo magic with getattr #1492

Enhancements to print_json

29 Aug 14:57
Compare
Choose a tag to compare

This release highlights JSON keys with a different color

Screen Shot 2021-08-29 at 14 38

[10.9.0] - 2020-08-29

Added

  • Added data parameter to print_json method / function
  • Added an --indent parameter to python -m rich.json

Changed

  • Changed default indent of JSON to 2 (down from 4)
  • Changed highlighting of JSON keys to new style (bold blue)

Pretty print JSON

28 Aug 15:27
Compare
Choose a tag to compare

This release adds pretty printing of JSON

Screen Shot 2021-08-28 at 14 21

[10.8.0] - 2020-08-28

Added

  • Added Panel.subtitle
  • Added Panel.subtitle_align
  • Added rich.json.JSON
  • Added rich.print_json and Console.print_json

Fixed

  • Fixed a bug where calling rich.reconfigure within a pytest_configure hook would lead to a crash
  • Fixed highlight not being passed through options #1404

v10.7.0: Merge pull request #1387 from willmcgugan/10.7.0

05 Aug 20:19
52d159a
Compare
Choose a tag to compare

[10.7.0] - 2021-08-05

Added

  • Added Text.apply_meta
  • Added meta argument to Text.assemble
  • Added Style.from_meta
  • Added Style.on
  • Added Text.on

Changed

  • Changed RenderGroup to Group and render_group to group (old names remain for compatibility but will be deprecated in the future)
  • Changed rich.repr.RichReprResult to rich.repr.Result (old names remain for compatibility but will be deprecated in the future)
  • Changed meta serialization to use pickle rather than marshal to permit callables

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