Typer
Typer, build great CLIs, based on Python type hints
...Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs. The simplest example adds only 2 lines of code to your app: 1 import, 1 function call. Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments. And it's intended to be the FastAPI of CLIs. Typer stands on the shoulders of a giant. Its only internal dependency is Click.