Overview
Rich 10.0, released on March 27, 2021, is a major rewrite introducing Rich markup syntax and a new console rendering engine.
Main Features
Markup syntax
The [bold red]text[/] syntax lets you style text directly in strings, like HTML for the terminal.
python
from rich.console import Console
console = Console()
console.print('[bold red]Error![/] File not found')
console.print('[green]OK[/] - [italic]Operation successful[/]')
console.print('[link=https://rich.readthedocs.io]Documentation[/link]')
New rendering engine
The rendering engine is overhauled to support tables, trees, progress bars, and Markdown in the terminal.
python
from rich.table import Table
from rich.console import Console
table = Table(title='Results')
table.add_column('Name')
table.add_column('Score', justify='right')
table.add_row('Alice', '95')
table.add_row('Bob', '87')
Console().print(table)
