Rich is a Python library for rich text and beautiful formatting in the terminal.
MIT License
Bot releases are hidden (Show)
Published by willmcgugan about 2 years ago
NOTE: 12.6.0 may be the last version to support Python3.6. The next version will be 13.0.0, and will be Python3.7+
FORCE_COLOR
env var https://github.com/Textualize/rich/pull/2449
max_depth
argument to be passed to the install()
hook https://github.com/Textualize/rich/issues/2486
None
as name in __rich_repr__
for tuple positional args https://github.com/Textualize/rich/pull/2379
font_aspect_ratio
parameter in SVG export https://github.com/Textualize/rich/pull/2539/files
Table.add_section
method. https://github.com/Textualize/rich/pull/2544
mode
property on file wrapper breaking uploads via requests
https://github.com/Textualize/rich/pull/2495
ensure_ascii
https://github.com/Textualize/rich/pull/2538
Layout
class https://github.com/Textualize/rich/pull/2540
JUPYTER_COLUMNS
and JUPYTER_LINES
to control width and height of console in JupyterBox
style, MARKDOWN
, for rendering tables ready to copy into markdown filesinspect
will prefix coroutine functions with async def
Style.__add__
will no longer return NotImplemented
inspect
when docstrings contain some special control codes https://github.com/Textualize/rich/pull/2294
show_header=False
https://github.com/Textualize/rich/pull/2330
Capture
contexts and Console(record=True)
https://github.com/Textualize/rich/pull/2343
Segment.split_and_crop_lines
Published by willmcgugan over 2 years ago
Published by willmcgugan over 2 years ago
A fix and further enhancements to the SVG export.
Default color scheme is now dimmed Monokai, and there is a keyline around the terminal so it looks distinct against a dark background.
Published by willmcgugan over 2 years ago
This release has a major change to the SVG export. It is now a simpler design, and will render outside of a browser.
padding
to Syntax constructor https://github.com/Textualize/rich/pull/2247
_rich_traceback_omit = True
in their local scope https://github.com/Textualize/rich/issues/2207
sys.__stderr__
on POSIX systems when trying to get the terminal size (fix issues when Rich is piped to another process)total=None
on progress is now possible, and will display pulsing animationPublished by willmcgugan over 2 years ago
end
keyword argument to Text.from_markup
https://github.com/Textualize/rich/pull/2095
Published by willmcgugan over 2 years ago
Published by willmcgugan over 2 years ago
This release drops Colorama as a dependancy in favour of an internal Win32 render.
There are some new features for progress bars, added support for pretty printing named tuples, and a bunch of fixes.
As a major version there are a few breaking changes, see below.
MofNCompleteColumn
to display raw completed/total
column (similar to DownloadColumn,Pretty
https://github.com/Textualize/rich/pull/2031
__init__.py
rich.diagnose.report
to expose environment debugging logic as function https://github.com/Textualize/rich/pull/1917
Progress.get_default_columns()
to get the default list of progress bar columns https://github.com/Textualize/rich/pull/1894
Syntax.guess_lexer
, add support for more lexers (e.g. Django templates etc.) https://github.com/Textualize/rich/pull/1869
lexer
parameter to Syntax.from_path
to allow for overrides https://github.com/Textualize/rich/pull/1873
__class__
https://github.com/Textualize/rich/issues/1838
Syntax
always justifies left https://github.com/Textualize/rich/pull/1872
Published by willmcgugan almost 3 years ago
The headline feature of this reach is vertical alignment in tables.
Note: as a major version bump, this version has some breaking changes. These changes won't affect many people, but we like to be strict about semver. See the release notes below.
vertical_align
to Table.add_row https://github.com/Textualize/rich/issues/1590
Syntax.__init__
parameter lexer_name
renamed to lexer
Published by willmcgugan almost 3 years ago
A bugfix for progress bars in Jupyter in this release. And a new property on Text class which exports the equivalent console markup.
Published by willmcgugan almost 3 years ago
AFAIK this issue only occurred in test suites, but it is a recommended that if you have 10.15.X installed you should upgrade.