Subprocess Management

To work with subprocesses, there is a suby library with support for cancellation tokens. It has a very simple syntax:

import suby

suby('python', '-c', 'print("hello, world!")')

A token can be passed as an argument:

suby('python', '-c', 'import time; time.sleep(10_000)', token=TimeoutToken(1), catch_exceptions=True)