Library for manipulating pipelines of subprocesses