rich
by
Textualize

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

View Textualize/rich on GitHub ↗

Summary Information

Updated 42 minutes ago
Added to GitGenius on April 18th, 2026
Created on November 10th, 2019
Open Issues/Pull Requests: 307 (+0)
Number of forks: 2,116
Total Stargazers: 56,172 (+0)
Total Subscribers: 528 (+0)

Issue Activity (beta feature)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Rich is a Python library designed to bring rich text formatting and beautiful presentation to terminal applications. Its primary purpose is to enhance the readability and visual appeal of command-line interfaces, making them more informative and user-friendly. The library achieves this through a comprehensive set of features that go far beyond the standard, often limited, output capabilities of the terminal.

At its core, Rich provides an easy-to-use API for adding color and style to terminal output. Users can effortlessly apply bolding, italics, underlining, and a wide range of colors to text, making it easier to highlight important information and create visually distinct sections within the output. This basic functionality is extended through a markup language, similar to BBCode, allowing for more fine-grained control over styling within a single line of text.

Beyond simple styling, Rich offers a variety of built-in renderables that significantly expand its capabilities. These include the ability to render pretty tables, which can be customized with borders, headers, and cell alignment, making it easy to present structured data in a clear and organized manner. Progress bars are another key feature, enabling developers to track the progress of long-running tasks with visually appealing and informative displays. Rich supports multiple, flicker-free progress bars, and offers a status method for displaying a spinner animation when progress is difficult to quantify.

Furthermore, Rich can render markdown, allowing developers to incorporate formatted text, headings, lists, and other markdown elements directly into their terminal output. Syntax highlighting, powered by the pygments library, is another powerful feature, enabling the display of source code with color-coded syntax, making it easier to read and understand. Rich also provides a more readable and informative traceback display, making debugging easier. The library also includes a logging handler to format and colorize output from Python's logging module.

The library's functionality extends to providing a rich print function, which has the same signature as the built-in Python print function, making it easy to integrate Rich into existing applications. Rich also offers a REPL integration, allowing for pretty-printing and highlighting of data structures within the Python interactive environment. The `inspect` function allows users to generate reports on Python objects, such as classes and instances.

Rich is designed to be compatible with Linux, macOS, and Windows, with true color and emoji support available in modern terminals. It requires Python 3.8 or later and integrates seamlessly with Jupyter notebooks. Installation is straightforward using pip.

The repository also highlights related projects, including Rich CLI, a command-line application built on Rich that allows users to syntax highlight code, render markdown, and display CSVs directly from the command prompt. Additionally, it mentions Textual, a sister project for building sophisticated terminal user interfaces, and Toad, a unified interface for agentic coding built with Rich and Textual. The project is actively maintained, with a strong community and extensive documentation, making it a valuable tool for Python developers looking to enhance the visual presentation of their terminal applications.

rich
by
TextualizeTextualize/rich

Repository Details

Fetching additional details & charts...