Skip to content

Releases: Textualize/rich

Merge pull request #1729 from willmcgugan/v10.15.1

29 Nov 18:00
3db6396
Compare
Choose a tag to compare

Reverted a fix for #1530

On reflection, I think the fix might introduce the possibility for a deadlock -- although none was reported.

[10.15.1] - 2021-11-29

Changed

  • Reverted thread-safety fix for Live that introduced deadlock potential

Merge pull request #1723 from willmcgugan/v10.15.0

28 Nov 16:37
ad6e3de
Compare
Choose a tag to compare

[10.15.0] - 2021-11-28

Added

  • Added dynamic_progress.py to examples
  • Added ConsoleOptions.update_height
  • Fixed Padding not respecting height
  • Added Text.from_ansi method

Changed

  • Some optimizations for simple strings (with only single cell widths)

Fixed

  • Fixed issue with progress bar not rendering markup #1721
  • Fixed race condition when exiting Live #1530

v10.14.0

16 Nov 15:15
Compare
Choose a tag to compare

Mostly fixes for edge cases. Added a rich_cast function to rich.protocol, which is unlikely to be used outside of Rich itself.

[10.14.0] - 2021-11-16

Fixed

  • Fixed progress speed not updating when total doesn't change
  • Fixed superfluous new line in Status #1662
  • Fixed Windows legacy width again
  • Fixed infinite loop in set_cell_size #1682

Added

  • Added file protocol to URL highlighter #1681
  • Added rich.protocol.rich_cast

Changed

  • Allowed __rich__ to work recursively
  • Allowed Text classes to work with sep in print #1689

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