richEasy Examples

Rich text, tables, progress bars, syntax highlighting in terminal

Getting started with rich

Installation and basic usage of rich.

python
# Install: pip install rich
from rich import print
from rich.table import Table

table = Table(title="Users")
table.add_column("Name")
table.add_column("Age")
table.add_row("Alice", "30")
table.add_row("Bob", "25")
print(table)
Expected Output
# Expected output shown below
# (Run locally with: rich)

rich is a third-party package. Rich text, tables, progress bars, syntax highlighting in terminal. Install with: pip install rich

Common rich operations

Frequently used features of rich.

python
# Install: pip install rich
import rich

# Common rich patterns
print(f"rich version: {rich.__version__}")

These are the most commonly used features of rich in everyday development.

Want to try these examples interactively?

Open Easy Playground