http://amoffat.github.com/sh/index.html
Samples:
# print ifconfig
from sh import ifconfig
print(ifconfig("wlan0"))
# checkout master branch
git(checkout="master")
# print the contents of this directory
print(ls("-l"))
# get the longest line of this file
longest_line = wc(__file__, "-L")
Samples:
# print ifconfig
from sh import ifconfig
print(ifconfig("wlan0"))
# checkout master branch
git(checkout="master")
# print the contents of this directory
print(ls("-l"))
# get the longest line of this file
longest_line = wc(__file__, "-L")
