Skip to content

Running processes in python, with timeouts, callbacks, and other fun stuff

Notifications You must be signed in to change notification settings

fubarwrangler/pyproc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

process: A module to run child-processes in python with better control
than is available in the subprocess module alone.

Offers sanity checking of what will be run via Program(strict=True),
timeout checking of a running process via TimeoutProcess(), and the 
ability to run a callback periodically that will kill the process if
if fails via CallbackProcess().

This started as being designed for use in larger programs that need
to be sure no child-process will block indefinitely and using SIGALRM
isn't easy because the process is threaded. It evolved to grow a 
callback feature that is used, for example, to check the progress of
a long and slow FTP (if the file hasn't grown in the last hour, kill
the FTP and try again later).

Tests? We don't need to stinkin' tests!
...
Actually, we probably do

About

Running processes in python, with timeouts, callbacks, and other fun stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages