rich

Rich is a Python library for rich text and beautiful formatting in the terminal.

MIT License

Downloads
241.8M
Stars
48.1K
Committers
268

Bot releases are hidden (Show)

rich -

Published by willmcgugan over 4 years ago

[2.2.3] - 2020-06-15

Fixed

  • Fixed console.log hyperlink not containing full path

Changed

  • Used random number for hyperlink id
rich -

Published by willmcgugan over 4 years ago

[2.2.2] - 2020-06-14

Changed

  • Exposed RichHandler highlighter as a class var
rich -

Published by willmcgugan over 4 years ago

[2.2.1] - 2020-06-14

Changed

  • Linked path in log render to file
rich - Allow builtin print with progress

Published by willmcgugan over 4 years ago

[2.2.0] - 2020-06-14

Added

  • Added redirect_stdout and redirect_stderr to Progress

Changed

  • printing to console with an active Progress doesn't break visuals
rich -

Published by willmcgugan over 4 years ago

[2.1.0] - 2020-06-11

Added

  • Added 'transient' option to Progress

### Changed

  • Truncated overly long text in Rule with ellipsis overflow
rich -

Published by willmcgugan over 4 years ago

[2.0.1] - 2020-06-10

Added

  • Added expand option to Padding

Changed

  • Some minor optimizations in Text

Fixed

  • Fixed broken rule with CJK text
rich -

Published by willmcgugan over 4 years ago

A new major version due to some backwards incompatible changes. A name change of JustifyValues to JustifyMethod, and the introduction of some keyword only arguments. Most code using an earlier version will require no changes.

[2.0.0] - 2020-06-06

Added

  • Added overflow methods
  • Added no_wrap option to print()
  • Added width option to print
  • Improved handling of compressed tables

Fixed

  • Fixed erroneous space at end of log
  • Fixed erroneous space at end of progress bar

Changed

  • Renamed _ratio.ratio_divide to _ratio.ratio_distribute
  • Renamed JustifyValues to JustifyMethod (backwards incompatible)
  • Optimized _trim_spans
  • Enforced keyword args in Console / Text interfaces (backwards incompatible)
  • Return self from text.append
rich -

Published by willmcgugan over 4 years ago

[1.3.1] - 2020-06-01

Changed

  • Changed defaults of Table.grid
  • Polished listdir.py example

Added

  • Added width argument to Columns

Fixed

  • Fixed for columns_first argument in Columns
  • Fixed incorrect padding in columns with fixed width
rich -

Published by willmcgugan over 4 years ago

[1.3.0] - 2020-05-31

Added

  • Added rich.get_console() function to get global console instance.
  • Added Columns class

Changed

  • Updated markdown.Heading.create() to work with subclassing.
  • Console now transparently works with Jupyter

Fixed

  • Fixed issue with broken table with show_edge=False and a non-None box arg
rich -

Published by willmcgugan over 4 years ago

[1.2.3] - 2020-05-24

Added

  • Added padding parameter to Panel
  • Added 'indeterminate' state when progress bars aren't started

Fixed

Changed

  • Auto-detect "truecolor" color system when in Windows Terminal
rich -

Published by willmcgugan over 4 years ago

[1.2.2] - 2020-05-22

Fixed

  • Issue with right aligned wrapped text adding extra spaces
rich - Fixed issue with `sum` builtin < Python3.8

Published by willmcgugan over 4 years ago

Note to self: Don't publish until GH actions tests on all Python versions.

[1.2.1] - 2020-05-22

Fixed

  • Issue with sum and Style
rich -

Published by willmcgugan over 4 years ago

[1.2.0] - 2020-05-22

Added

  • Support for double underline, framed, encircled, and overlined attributes

Changed

  • Optimized Style
  • Changed methods __console__ to __rich_console__, and __measure__ to __rich_measure__
rich -

Published by willmcgugan over 4 years ago

[1.1.9] - 2020-05-20

Fixed

  • Exception when BarColumn.bar_width == None
rich -

Published by willmcgugan over 4 years ago

[1.1.8] - 2020-05-20

Changed

  • Optimizations for Segment, Console and Table

### Added

  • Added Console.clear method
  • Added exporting of links to HTML
rich -

Published by willmcgugan over 4 years ago

[1.1.7] - 2020-05-19

Added

  • Added collapse_padding option to Table.

Changed

  • Some style attributes may be abbreviated (b for bold, i for italic etc). Previously abbreviations worked in console markup but only one at a time, i.e. "[b]Hello[/]" but not "[b i]Hello[/]" -- now they work everywhere.
  • Renamed 'text' property on Text to 'plain'. i.e. text.plain returns a string version of the Text instance.

Fixed

  • Fixed zero division if total is 0 in progress bar

[1.1.6] - 2020-05-17

### Added

  • Added rich.align.Align class
  • Added justify argument to Console.print and console.log
rich -

Published by willmcgugan over 4 years ago

[1.1.5] - 2020-05-15

Changed

  • Changed progress bars to write to stdout on terminal and hide on non-terminal
rich -

Published by willmcgugan over 4 years ago

[1.1.4] - 2020-05-15

Fixed

  • Fixed incorrect file and link in progress.log
  • Fixes for legacy windows: Bar, Panel, and Rule now use ASCII characters
  • show_cursor is now a no-op on legacy windows

### Added

  • Added Console.input

Changed

  • Disable progress bars when not writing to a terminal
rich -

Published by willmcgugan over 4 years ago

[1.1.3] - 2020-05-15

Fixed

  • Issue with progress of one line
rich -

Published by willmcgugan over 4 years ago

[1.1.2] - 2020-05-14

Added

  • Added -p switch to python -m rich.markdown to page output
  • Added Console.control to output control codes

Changed

  • Changed Console log_time_format to no longer require a space at the end
  • Added print and log to Progress to render terminal output when progress is active
Package Rankings
Top 0.25% on Pypi.org
Top 5.24% on Proxy.golang.org
Top 1.85% on Conda-forge.org
Top 7.68% on Anaconda.org
Badges
Extracted from project README
Downloads PyPI version codecov Rich blog Twitter Follow