News for hackers. Stuff that matters.
Re:No script is too simple by fra on Tuesday September 22, 2020 @05:29PM (#24560168)
Every project I work on uses the `invoke`[1] Python package to create a project CLI. It's super powerful, comes with batteries included, and allows for some better code sharing and compartmentalization than a bunch of bash scripts.

[1] http://www.pyinvoke.org/

Re:No script is too simple by theptip on Thursday September 24, 2020 @12:32PM (#24580413)
Thanks for the recommendation, I used Fabric for local scripting ages ago and haven’t revisited in some time.

Is it mostly the Make-style task decorators for managing the project task list that you consider a win vs. native subprocess.run? Are there other features that you find valuable too?

(Back when the original fabric was written subprocess was much less friendly to work with, of course).

Re:No script is too simple by jgable on Tuesday September 22, 2020 @08:33PM (#24561638)
I remember the memfault blog post that introduced me to this package. Great find, and I’ve started doing the same on all my embedded dev projects. Thanks!