17 August 2012

Keep it simple stupid

I just love a well executed idea. I sumbled across one such the other day while re-writing the currently shitty build/dist script at work, of course it was written in Python :)
sh (previously pbs) is a full-fledged subprocess interface for Python that allows you to call any program as if it were a function:
from sh import ifconfig
print(ifconfig("wlan0"))

Isn't it just beautiful!