Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Python Subprocess Manager

Project description


A wrapper around python’s subprocess module which handles new process spawning (optionally as a daemon), specifying a timeout period, and printing/logging/accessing the process’ output in a non-blocking fashion.


pip install subprocess_manager


from subprocess_manager.run_subprocess import run_subprocess

process, execution_time = run_subprocess('/bin/bash', ['-l', '-c', 'echo "Hello World!"')
tail_process, command_starttime, command_process_stdout, command_process_stderr = run_subprocess('/bin/bash', ['-l', '-c', 'tail process.log', daemon=True, return_std=True)

See subprocess_manager/ for additional arguments and details.

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 subprocess_manager, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size subprocess_manager-0.1.2.tar.gz (4.8 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