Thu 7 Aug 2014
The other day, I came across an article about a fork of the pbs package called sh. These packages are wrappers for Python’s subprocess module. Basically sh allows you to import and use shell commands directly from Python. This article will go over a few examples to show you how to use this fun little library.
Note that at the time of writing, the sh package only supports Linux and Mac. If you need Windows support, then you should try the pbs project.