Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Mozilla-authored process handling

Project description

provides python process management via an operating system
and platform transparent interface to Mozilla platforms of interest.
Mozprocess aims to ensure the ability to robustly terminate a process
on Windows, OS X, and Linux. Mozprocess aims to provide the ability
to robustly terminate a process (by timeout or otherwise), along with
any child processes, on Windows, OS X, and Linux. Mozprocess utilizes
and extends `subprocess.Popen` to these ends.


is the central exposed API for mozprocess. `ProcessHandler` utilizes
a contained subclass of [subprocess.Popen](,
`Process`, which does the brunt of the process management.

Basic usage:

process = ProcessHandler(['command', '-line', 'arguments'],
cwd=None, # working directory for cmd; defaults to None
env={}, # environment to use for the process; defaults to os.environ
exit_code = process.waitForFinish(timeout=60) # seconds

See an example in

`ProcessHandler` may be subclassed to handle process timeouts (by overriding
the `onTimeout()` method), process completion (by overriding
`onFinish()`), and to process the command output (by overriding


- Document improvements over `subprocess.Popen.kill`

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mozprocess, version 0.1b1
Filename, size File type Python version Upload date Hashes
Filename, size mozprocess-0.1b1.tar.gz (17.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page