I love writing a good cli tool, but it’s no fun parsing switches and arguments.
Python’s click
is a solid choice, but lately I’ve been loving typer
. Typer
is a super easy-to-use library, built on top of click
.
Typer uses method variables and type hints to generate and parse the command line arguments for you, and even generates the help context. It’s practically magic.
check it out:
Typer