Coverage for docs_src / printing / tutorial003.py: 100%
11 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-11-18 11:12 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-11-18 11:12 +0000
1import typer 1abcdefghij
2from rich.console import Console 1abcdefghij
3from rich.table import Table 1abcdefghij
5console = Console() 1abcdefghij
7app = typer.Typer() 1abcdefghij
10@app.command() 1abcdefghij
11def main(): 1abcdefghij
12 table = Table("Name", "Item") 1abcdefghij
13 table.add_row("Rick", "Portal Gun") 1abcdefghij
14 table.add_row("Morty", "Plumbus") 1abcdefghij
15 console.print(table) 1abcdefghij
18if __name__ == "__main__": 1abcdefghij
19 app() 1abcdefghij