Re:Tqdm (Python)
by mayli on Thursday December 16, 2021 @05:23PM
(#29584822)
The pythontic replacement for makefiles?
[ Parent
| on HN ]
Re:Tqdm (Python)
by BiteCode_dev on Friday December 17, 2021 @05:05AM
(#29590137)
Yes. Like make, it lets you define tasks with dependencies and targets, and rebuild only if one of them have changed.
But I prefer it because:
- it runs anywhere you have python.
- it uses a clean syntax, and the parser is great at telling you about errors since it's python.
- you get access to python's stdlib: string formatting, maths, etc.
- you get access to python's ecosystem. Want to deal with timezone, hashing, crypto ? Sure you can.
- you get access to python's tooling (debugger, formatter, linter).
- you can still just use bash if you want. Easy things stay easy.
Re:Tqdm (Python)
by devnull255 on Thursday December 16, 2021 @09:45PM
(#29587068)
That would be invoke tasks. https://docs.pyinvoke.org/en/stable/getting-started.html, which I first encountered in fabric: fabfile.org, which has the fab utility and fabfiles (analogous to Makefiles) but is so much more.
It is a pain to work with invoke now. It is all find and dandy for the basic features but you going to hit the seams soon you start trying advanced stuff. Looks like the project is going to be abandoned.