4 ms·
It's not. The reasons that one might use `plumbum` are similar to the reasons that one might use `fabric` instead of just running local/remote shell scripts, i.
by tav 14y ago
It's not. The reasons that one might use `plumbum` are similar to the reasons that one might use `fabric` instead of just running local/remote shell scripts, i.e.
- Ability to leverage the richness of Python to pre/post-process the inputs/outputs from other shell commands.
- Easier to parameterise and maintain.
- Familiarity with Python over the likes of bash, zsh, etc.
- gbog 14y agoEm, the fabric version would be much more readable I'm not mistaken: local("ls - l | grep foo")
- jshharlow 14y agoFrom looking at the code it seems like plumbum is more object oriented, instead of having stuff like https://github.com/fabric/fabric/blob/master/fabric/state.py#L267 https://github.com/fabric/fabric/blob/master/fabric/state.py... in fabric, so thats a good move forward.
- cheatercheater 14y agoYes, because OOP is salvation. Right?
- harlowja 14y agoRight, lol.