The highlights of Rich 9.0.0 would be a new pager method which will pipe any console output in to the system 'pager'. See this tweet for an example. There's also a new Bar renderable you could use to display a chart in a table. See bars.py for an example of how to use it.
Note this is a major version release so there are some breaking changes to the API -- these are unlikely to impact many people, but please check the changelog below.
[9.0.0] - 2020-10-18
Fixed
Progress download column now displays decimal units
Added
Support for Python 3.9
Added legacy_windows to ConsoleOptions
Added ascii_only to ConsoleOptions
Added box.SQUARE_DOUBLE_HEAD
Added highlighting of EUI-48 and EUI-64 (MAC addresses)
Table with row_styles will extend background color between cells if the box has no vertical dividerhttps://github-redirect.dependabot.com/willmcgugan/rich/issues/383
Changed default of fit kwarg in render_group() from False to True
Renamed rich.bar to rich.progress_bar, and Bar class to ProgressBar, rich.bar is now the new solid bar class
Fixed
Fixed typo in Style.transparent_background method name.
Table with row_styles will extend background color between cells if the box has no vertical dividerhttps://github-redirect.dependabot.com/willmcgugan/rich/issues/383
Changed default of fit kwarg in render_group() from False to True
Renamed rich.bar to rich.progress_bar, and Bar class to ProgressBar, rich.bar is now the new solid bar class
Fixed
Fixed typo in Style.transparent_background method name.
[8.0.0] - 2020-10-03
### Added
Added Console.bell method
Added Set to types that Console.print will automatically pretty print
Added show_locals to Traceback
Added theme stack mechanism, see Console.push_theme and Console.pop_theme
Changed
Changed Style.empty to Style.null to better reflect what it does
Optimized combining styles involving a null style
Change error messages in Style.parse to read better
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on rich to permit the latest version.
Release notes
Sourced from rich's releases.
Changelog
Sourced from rich's changelog.
... (truncated)
Commits
5f03e3b
changelog6f3ede8
Merge pull request #391 from willmcgugan/min-width44a2784
black0aee98f
rule accepts Text now90b9bbc
blackeee48cd
simplify2a897aa
table styles2cfb923
more clamp tests7e1ed1a
better examplea619e58
minimum width functionalityDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)