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 about 4 years ago

[4.1.0] - 2020-07-26

Changed

rich - A better Text.stylize

Published by willmcgugan about 4 years ago

[4.0.0] - 2020-07-23

Major version bump for a breaking change to Text.stylize signature, which corrects a minor but irritating API wart. The style now comes first and the start and end offsets default to the entire text. This allows for text.stylize_all(style) to be replaced with text.stylize(style). The start and end offsets now support negative indexing, so text.stylize("bold", -1) makes the last character bold.

Added

Changed

  • Change signature of Text.stylize to accept style first
  • Remove Text.stylize_all which is no longer necessary

Fixed

rich -

Published by willmcgugan over 4 years ago

[3.4.1] - 2020-07-22

Fixed

  • Fixed incorrect default of expand in Table.grid
rich - Added rich.prompt

Published by willmcgugan over 4 years ago

New rich.prompt functionality.

Progress bars are now usable when NO_COLOR env var is set.

[3.4.0] - 2020-07-22

Added

  • Added stream parameter to Console.input
  • Added password parameter to Console.input
  • Added description parameter to Progress.update
  • Added rich.prompt
  • Added detecting 'dumb' terminals
  • Added Text.styled alternative constructor

Fixes

  • Fixed progress bars so that they are readable when color is disabled
rich - Nicer rendering of locals

Published by willmcgugan over 4 years ago

[3.3.2] - 2020-07-14

Changed

  • Optimized Text.pad

Added

  • Added rich.scope
  • Change log_locals to use scope.render_scope
  • Added title parameter to Columns
rich -

Published by willmcgugan over 4 years ago

[3.3.1] - 2020-07-13

Added

  • box.ASCII_DOUBLE_HEAD

### Changed

  • Removed replace of -- --- ... from Markdown, as it made it impossible to include CLI info
rich - Title on Panel

Published by willmcgugan over 4 years ago

[3.3.0] - 2020-07-12

Added

  • Added title and title_align options to Panel
  • Added pad and width parameters to Align
  • Added end parameter to Rule
  • Added Text.pad and Text.align methods
  • Added leading parameter to Table
rich -

Published by willmcgugan over 4 years ago

[3.2.0] - 2020-07-10

Added

  • Added Align.left Align.center Align.right shortcuts
  • Added Panel.fit shortcut
  • Added align parameter to Columns

Fixed

  • Align class now pads to the right, like Text
  • ipywidgets added as an optional dependency
  • Issue with Panel and background color
  • Fixed missing __bool__ on Segment

Changed

  • Added border_style argument to Panel (note, style now applies to interior of the panel)
rich -

Published by willmcgugan over 4 years ago

[3.1.0] - 2020-07-09

Changed

  • Progress bars now work in Jupyter

Added

  • Added refresh_per_second to progress.track
  • Added styles to BarColumn and progress.track
rich -

Published by willmcgugan over 4 years ago

[3.0.5] - 2020-07-07

Fixed

  • Fixed Windows version number require for truecolor
rich -

Published by willmcgugan over 4 years ago

[3.0.4] - 2020-07-07

Changed

rich -

Published by willmcgugan over 4 years ago

[3.0.3] - 2020-07-03

Fixed

  • Fixed edge case with wrapped and overflowed text

Changed

  • New algorithm for compressing table that priorities smaller columns

Added

  • Added safe_box parameter to Console constructor
rich -

Published by willmcgugan over 4 years ago

[3.0.2] - 2020-07-02

### Added

  • Added rich.styled.Styled class to apply styles to renderable
  • Table.add_row now has an optional style parameter
  • Added table_movie.py to examples

Changed

  • Modified box options to use half line characters at edges
  • Non no_wrap columns will now shrink below minimum width if table is compressed
rich -

Published by willmcgugan over 4 years ago

[3.0.1] - 2020-06-30

Added

  • Added box.ASCII2
  • Added markup argument to logging extra

Changed

  • Setting a non-None width now implies expand=True
rich - Better Tables on legacy Windows terminals

Published by willmcgugan over 4 years ago

A new major version due to changes to Rule and Panel constructor, and Table.add_column method. This is unlikely to break anyones code but semver mandates a major version bump.

Otherwise, the highlight of this release is that legacy Windows supports a greater range of box characters for Table / Panel etc.

[3.0.0] - 2020-06-28

Changed

  • Enabled supported box chars for legacy Windows, and introduce safe_box flag
  • Disable hyperlinks on legacy Windows
  • Constructors for Rule and Panel now have keyword only arguments (reason for major version bump)
  • Table.add_colum added keyword only arguments

Fixed

  • Fixed Table measure
rich -

Published by willmcgugan over 4 years ago

[2.3.1] - 2020-06-26

Fixed

  • Disabled legacy_windows if jupyter is detected
rich -

Published by willmcgugan over 4 years ago

[2.3.0] - 2020-06-26

Fixed

  • Fixed highlighting of paths / filenames
  • Corrected docs for RichHandler which erroneously said default console writes to stderr

Changed

  • Allowed style parameter for highlight_regex to be a callable that returns a style

Added

  • Added optional highlighter parameter to RichHandler
rich -

Published by willmcgugan over 4 years ago

[2.2.6] - 2020-06-24

Changed

rich -

Published by willmcgugan over 4 years ago

[2.2.5] - 2020-06-23

Fixed

rich -

Published by willmcgugan over 4 years ago

[2.2.4] - 2020-06-21

Added

  • Added enable_link_path to RichHandler
  • Added legacy_windows switch to Console constructor
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