Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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
Filename, size ruamel.showoutput-0.1.7.tar.gz (10.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page