Releases: Textualize/rich
Releases · Textualize/rich
v10.13.0
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
[10.12.0] - 2021-10-06
Updated
- Official Py3.10 release
Fixed
- Fixed detection of custom repr when pretty printing dataclasses
v10.11.0
v10.10.0: Merge pull request #1496 from willmcgugan/pretty-fix
[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
This release highlights JSON keys with a different color
[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
This release adds pretty printing of JSON
[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 apytest_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
[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
toGroup
andrender_group
togroup
(old names remain for compatibility but will be deprecated in the future) - Changed
rich.repr.RichReprResult
torich.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
[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