Things I’ve learned about building CLI tools in Python

25 Oct 2023 simonwillison.net
I build a lot of command-line tools in Python. It’s become my favorite way of quickly turning a piece of code into something I can use myself and package up for other people to use too.
[...] Here are some notes on what I’ve learned about designing and implementing CLI tools in Python so far.