Show HN: Shellpy a tool for convenient shell scripting in Python (github.com) 4 points by alexander996 10y ago ↗ HN
[–] mynewtb 10y ago ↗ How does it compare to that 'sh' module? [–] alexander996 10y ago ↗ It has completely different syntax than sh. For sh a command would look likefrom sh import ifconfig print(ifconfig("wlan0"))For shellpyp`ifconfig wlan
[–] alexander996 10y ago ↗ It has completely different syntax than sh. For sh a command would look likefrom sh import ifconfig print(ifconfig("wlan0"))For shellpyp`ifconfig wlan
[–] wingerlang 10y ago ↗ Seems pretty cool, I often use bash and python to script things but always feel like some things area way way easier in only one of them.
3 comments
[ 2.9 ms ] story [ 8.2 ms ] threadfrom sh import ifconfig print(ifconfig("wlan0"))
For shellpy
p`ifconfig wlan