Re:Things I've learned about building CLI tools in Python
by zaphirplane on Wednesday October 25, 2023 @02:42AM
(#38009900)
That actually look very good thanks !
Re:Things I've learned about building CLI tools in Python
by crabbone on Wednesday October 25, 2023 @09:22AM
(#38012503)
And it offers awful templates. Basically, everything it generates is wrong.
But such is the reality of Python world. Every third-party library or tool you use is defective in some major and plenty of minor ways. And you have to be prepared to undo, fix, reimplement whatever you get, and be very, very selective about the tools and libraries you choose to live with.
For fun I just googled a template and tried: https://github.com/radix-ai/poetry-cookiecutter
And the result is quite good.
Your comment assumes that python cli scripts need to be single liners, but IIRC there are several tools that allow you to bundle a package into a single file like pex, shiv, and zipapp.