Contents

rich 14.3.2

0

Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal

Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal

Stars: 55348, Watchers: 55348, Forks: 2014, Open Issues: 292

The Textualize/rich repo was created 6 years ago and the last code push was 2 days ago.
The project is extremely popular with a mindblowing 55348 github stars!

How to Install rich

You can install rich using pip

pip install rich

or add it to a project with poetry

poetry add rich

Package Details

Author
Will McGugan
License
MIT
Homepage
https://github.com/Textualize/rich
PyPi:
https://pypi.org/project/rich/
Documentation:
https://rich.readthedocs.io/en/latest/
GitHub Repo:
https://github.com/willmcgugan/rich

Classifiers

No  rich  pypi packages just yet.

Errors

A list of common rich errors.

Code Examples

Here are some rich code examples and snippets.

  • Rich library internals

    This page is all about the rich python library, the contents below is auto-generated by inspecting a python package’s code base.

  • pretty print json using rich

    Here are a few examples of pretty printing json from a command line terminal. As you can see in the example output, rich console can output json with proper indention and color syntax highlighting.

GitHub Issues

The rich package has 292 open issues on GitHub

  • [BUG] If the text contains '\u200d', console.print may throw a RuntimeError
  • Read the Docs not updated
  • Fix typing for save_html, save_text, save_svg to accept PathLike
  • Add @generated comment to HTML and SVG exports
  • [BUG] Wrong color for a tuple that contain a type in more than 1 position
  • fix(markdown): Correctly render loose lists with blank lines
  • Don't use windows legacy terminal support when ctypes is not available
  • [BUG] Console buffer retains unencodable content after UnicodeEncodeError, causing crash in Progress.exit()
  • Use faster generator for link IDs
  • feat: enable color support in marimo notebooks
  • Fix: Add whitespace normalization for Pygments 2.19 compatibility

See more issues on GitHub

Related Packages & Articles

fastapi 0.129.0

FastAPI framework, high performance, easy to learn, fast to code, ready for production