tags: #cli The [main site](https://typer.tiangolo.com/) has docs and everything. This [youtube video](https://www.youtube.com/watch?v=8-i3U_3Gxko) is a good introduction. ## Installing ```bash python -m pip install 'typer[all]' ``` ## Examples A simple example. We use [rich](RichPrint) for printing in colour -- [ansicolors](AnsiColors) is an alternative here. ```python #!/usr/bin/env python import typer from rich import print app = typer.Typer(name="Mr Flibble") @app.command() def hello(name: str): print(f"Fry [red]{name}[/red] with our [orange]hex vision[/orange]!!!") @app.command() def disobey(): print(f"[yellow]Mr Flibble[/yellow] is [red]very cross[/red]") if __name__ == "__main__": app() ```