Rich is a Python library for rich text and beautiful formatting in the terminal.
MIT License
Bot releases are hidden (Show)
Reverted a fix for https://github.com/willmcgugan/rich/issues/1530
On reflection, I think the fix might introduce the possibility for a deadlock -- although none was reported.
Mostly fixes for edge cases. Added a rich_cast function to rich.protocol, which is unlikely to be used outside of Rich itself.
__rich__
to work recursivelyThis release is mostly bugfixes (details below). The minor version bump is because print_json
grew a number of parameters to match json.dumps
Published by willmcgugan about 3 years ago
rich.json
Published by willmcgugan about 3 years ago
This release highlights JSON keys with a different color
Published by willmcgugan about 3 years ago
This release adds pretty printing of JSON
rich.reconfigure
within a pytest_configure
hook would lead to a crashRenderGroup
to Group
and render_group
to group
(old names remain for compatibility but will be deprecated in the future)rich.repr.RichReprResult
to rich.repr.Result
(old names remain for compatibility but will be deprecated in the future)Published by willmcgugan over 3 years ago
Published by willmcgugan over 3 years ago
Some fixes, and a few methods to support Textual
Published by willmcgugan over 3 years ago
The highlight of this release is a decorator to automatically create a Rich repr for any class.
Published by willmcgugan over 3 years ago
This release fleshes out the new Rich Repr protocol
%load_ext rich
Published by willmcgugan over 3 years ago
Published by willmcgugan over 3 years ago
Published by willmcgugan over 3 years ago
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.
Published by willmcgugan over 3 years ago
Published by willmcgugan over 3 years ago
Published by willmcgugan over 3 years ago
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...
__rich_measure__
signature changed to accept ConsoleOptions rather than max_width__rich_repr__
protocol method to Pretty__rich_repr__
total
keyword arguments in rich.progress
and rich.progress_bar