Hacker News new | ask | show | jobs
by d0mine 4586 days ago
There are Plumbum shell combinators in Python http://plumbum.readthedocs.org/en/latest/
1 comments

There are a couple of modules that do this kind of thing but Plumbum looks interesting, particularly

http://plumbum.readthedocs.org/en/latest/local_commands.html...

>from plumbum.cmd import cat

>>cat('tmp.txt') #invokes cat tmp.txt on the system