Emphasis logo rich: emphasis

1 2 3 4 5 6 7 8 9 10 11 12

The rich Console object will be the main object you'll interact with. The standard print feature is nice, but the Console is much more flexible. Here's some more examples showing the bold and underline features.

from rich.console import Console

console = Console()
console.print("This is some text.")
console.print("This is some text.", style="bold")
console.print("This is some text.", style="bold underline")
console.print("[bold]This [underline]is[/] some text.[/]")