Sometimes the best tool for a job is another program: git, ffmpeg, a compiler, another Python script. The subprocess module starts one, feeds it input, collects its output and exit code, and enforces a time limit. It is also where one of the most common security mistakes is made, building a shell command out of text you do not control. This lesson shows how to do it correctly.
More lessons in Complete Python Programming