Simon Willison’s Weblog

Subscribe

killableprocess.py. “I have created a python module which can launch a subprocess, wait for the process with a timeout, and kill that process and all of its sub-subprocesses correctly, on Windows, Mac, and Linux.”