Another interesting Python cmd-line tool/framework - typer

in «tip» by Michael Beard
Tags: , , , ,

Typer, build great CLIs.

Easy to code. Based on Python type hints.

Typer, build great CLIs. Easy to code. Based on Python type hints. -- docs

Another interesting way to build a script with great command-line help. Requires Python 3.6+ and relies on Click. Looks interesting though.

Difference from cmd/cmd2

This is great for adding a easy cli help to your script, but you have to re-run the command every time. You are not in a shell or REPL loop. So, some differences, but still a nice addition.

Maybe I'll rewrite roundToIt with this, as it would be much easier (I think) to do than using arg_parse.