Favicon of Rich

Rich

Python library that adds rich text, beautiful formatting, tables, progress bars, and syntax highlighting to terminal applications with minimal code.

Other

Rich is a powerful Python library that transforms how you present information in the terminal. Instead of plain text output, you can create visually stunning CLI applications with colors, styles, tables, and interactive elements.

Key capabilities include:

  • Colored and styled text using simple markup syntax similar to BBCode
  • Pretty tables for displaying structured data
  • Progress bars for tracking long-running operations
  • Syntax highlighting for source code and JSON
  • Markdown rendering in the terminal
  • Tracebacks with enhanced readability for debugging
  • Inspect function for detailed object analysis
  • Logging integration with the Python logging module

The library works seamlessly across Linux, macOS, and Windows, with full support for Jupyter notebooks. Rich handles word-wrapping automatically and adapts to your terminal's capabilities, from modern terminals with true color support to classic terminals limited to 16 colors.

Getting started is simple—just import the print function or create a Console object for more control. Rich requires Python 3.8 or later and installs easily via pip. Whether you're building CLI tools, debugging applications, or creating interactive dashboards, Rich eliminates the complexity of terminal formatting while delivering professional-quality output.

Install

Pip
$ pip install rich

Features

ScriptableTrue color

Shell features

Syntax highlighting

Media

Pros

5
  • Adds rich text and formatting to terminal applications.
  • Supports tables, progress bars, and syntax highlighting.
  • Easy to integrate with minimal code changes.
  • Works across Linux, macOS, and Windows.
  • Can be used in Jupyter notebooks.

Related tools

Share:

Auto-fetched .

Recent releases

Similar to Rich

Favicon

 

  
 
Favicon

 

  
 
Favicon