Skip to content

Releases: Textualize/rich

Export SVGs and file progress

03 Apr 13:51
489fafc
Compare
Choose a tag to compare

Snap export svg
Snap

[12.1.0] - 2022-04-03

Added

  • Progress.open and Progress.wrap_file method to track the progress while reading from a file or file-like object #1759
  • SVG export functionality #2101

Fixed

  • Add missing end keyword argument to Text.from_markup #2095
  • Fallback to text lexer when no lexer guessed #2133
  • Fixed issue with decoding ANSI reset #2112

Fix for piping on legacy windows plus optimizations

22 Mar 11:11
2d3152a
Compare
Choose a tag to compare

[12.0.1] - 2022-03-22

Changed

  • Improve performance of cell_length #2061
  • Improve performance of chop_cells #2077

Fixed

  • Fix capturing stdout on legacy Windows #2066

New Legacy Windows renderer

10 Mar 15:36
656b7a1
Compare
Choose a tag to compare

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.

[12.0.0] - 2022-03-10

Added

  • Added options to TimeRemainingColumn to render a compact time format and render elapsed time when a task is
    finished. #1992
  • Added ProgressColumn MofNCompleteColumn to display raw completed/total column (similar to DownloadColumn,
    but displays values as ints, does not convert to floats or add bit/bytes units).
    #1941
  • Replace Colorama with win32 renderer #1993
  • Add support for namedtuples to Pretty #2031

Fixed

  • In Jupyter mode make the link target be set to "_blank"
  • Fix some issues with markup handling around "[" characters https://github.com//pull/1950
  • Fix syntax lexer guessing.
  • Fixed Pretty measure not respecting expand_all #1998
  • Collapsed definitions for single-character spinners, to save memory and reduce import time.
  • Fix print_json indent type in __init__.py
  • Fix error when inspecting object defined in REPL #2037
  • Fix incorrect highlighting of non-indented JSON #2038
  • Fixed height reset in complex renderables #2042

Changed

  • Improved support for enum.Flag in ReprHighlighter #1920
  • Tree now respects justify=None, i.e. won't pad to right #1690
  • Removed rich.tabulate which was marked for deprecation
  • Deprecated rich.align.AlignValues in favor of AlignMethod

v11.2.0: Merge pull request #1936 from Textualize/opti-table

08 Feb 20:13
972dedf
Compare
Choose a tag to compare

[11.2.0] - 2022-02-08

Added

  • Add support for US spelling of "gray" in ANSI color names #1890
  • Added rich.diagnose.report to expose environment debugging logic as function #1917
  • Added classmethod Progress.get_default_columns() to get the default list of progress bar columns #1894

Fixed

  • Fixed performance issue in measuring text

v11.1.0

28 Jan 14:51
Compare
Choose a tag to compare

[11.1.0] - 2022-01-28

Added

  • Add Syntax.guess_lexer, add support for more lexers (e.g. Django templates etc.) #1869
  • Add lexer parameter to Syntax.from_path to allow for overrides #1873

Fixed

  • Workaround for edge case of object from Faiss with no __class__ #1838
  • Ensure Syntax always justifies left #1872
  • Handle classes in inspect when methods=True #1874

Vertical alignment in tables

09 Jan 10:38
Compare
Choose a tag to compare

The headline feature of this reach is vertical alignment in tables.

Screen Shot 2022-01-07 at 20 28 22

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.

[11.0.0] - 2022-01-09

Added

  • Added max_depth arg to pretty printing #1585
  • Added vertical_align to Table.add_row #1590

Fixed

  • Fixed issue with pretty repr in jupyter notebook #1717
  • Fix Traceback theme defaults override user supplied styles #1786

Changed

  • breaking Deprecated rich.console.RenderGroup, now named rich.console.Group
  • breaking Syntax.__init__ parameter lexer_name renamed to lexer
  • Syntax constructor accepts both str and now a pygments lexer #1748

v10.16.2: Merge pull request #1793 from willmcgugan/escape_at

02 Jan 17:07
2ba277a
Compare
Choose a tag to compare

[10.16.2] - 2021-01-02

Fixed

  • Fixed @ not being escaped in markup

v10.16.1: Merge pull request #1756 from willmcgugan/overlap-markup

15 Dec 09:34
1442dd7
Compare
Choose a tag to compare

[10.16.1] - 2021-12-15

Fixed

  • Fixed issues with overlapping tags #1755

v10.16.0

12 Dec 11:12
Compare
Choose a tag to compare

A bugfix for progress bars in Jupyter in this release. And a new property on Text class which exports the equivalent console markup.

[10.16.0] - 2021-12-12

Fixed

  • Double print of progress bar in Jupyter #1737

Added

  • Added Text.markup property #1751

Hotfix to fix deadlock issue with Live (including status and progress)

02 Dec 13:56
3827b4a
Compare
Choose a tag to compare

AFAIK this issue only occurred in test suites, but it is a recommended that if you have 10.15.X installed you should upgrade.

[10.15.2] - 2021-12-02

Fixed