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

like subprocess.check_output(), but showing progress

Project description

show_ouput works like check_output, but showing progress

There is a plethora of ways of calling an external program in Python. For longer running commands you want to be able to see what is happening, so subprocess.check_output() is not really usable. Falling back to os.system() with the need to ' '.join() the command is not that useful as you don’t have an exit status

show_output() works like check_output() (including the input= keyword parameter), but will display the progress to stdout. The total output is returned to the caller, or passed back in the Exceptions output attribute, raised if the return code from the calling process is non-zero.

If verbose argument is < 0 then no output is shown, but the result still returned

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 ruamel.showoutput, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size ruamel.showoutput-0.1.7-py2.py3-none-any.whl (6.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size ruamel.showoutput-0.1.7.tar.gz (10.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page