Em, the fabric version would be much more readable I'm not mistaken:
local("ls - l | grep foo")
From 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... in fabric, so thats a good move forward.
Re:Plumbum: Pythonic Shell Combinators
by cheatercheater on Sunday May 13, 2012 @06:28AM
(#3966620)
Yes, because OOP is salvation. Right?
- 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.