4 ms·
I love that! Argparse is such an old and boring solution to such a simple problem that we need more like this. And I have hope that one of the solutions will ma
by shezi 5y ago
I love that! Argparse is such an old and boring solution to such a simple problem that we need more like this. And I have hope that one of the solutions will make it into the standard library at some point.
There are some others like yours:
Google's python-fire (1)
Docopt (2), which creates the cli from the documentation instead of the other way around
Click (3)
And my own commandeer (4)
Typer (5)
(1) https://github.com/google/python-fire https://github.com/google/python-fire
(2) http://docopt.org/ http://docopt.org/
(3) https://click.palletsprojects.com/en/8.0.x/ https://click.palletsprojects.com/en/8.0.x/
(4) https://pythonhosted.org/Commandeer/index.html https://pythonhosted.org/Commandeer/index.html
(5) https://typer.tiangolo.com/ https://typer.tiangolo.com/