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.[/]")