Show HN: Shellpy a tool for convenient shell scripting in Python Posted by alexander996 on Sunday February 21, 2016 @09:59AM from the show-hn dept. https://github.com/lamerman/shellpy/blob/master/README.md ( 3 comments | 4 points | on HN )
from sh import ifconfig print(ifconfig("wlan0"))
For shellpy
p`ifconfig wlan