Skip to main content

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.

Source Distribution

ruamel.showoutput-0.1.7.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

ruamel.showoutput-0.1.7-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ruamel.showoutput-0.1.7.tar.gz.

File metadata

File hashes

Hashes for ruamel.showoutput-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1a99414c0b452e84a51bdb1ae835732f3b4694dd987f315b786cf7a4e1defd44
MD5 3400543c3b8639c87206e80590f83086
BLAKE2b-256 f90c17a6f27ba5a47376122b52696ced6086c6870941502f4d95d6ca9715b739

See more details on using hashes here.

File details

Details for the file ruamel.showoutput-0.1.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ruamel.showoutput-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d7b21e3b297e626fb5322c7657eee3889196d53a737b1b0c2d7c18d2123ca2b9
MD5 3b7638fe68c49884706a23ca8e833309
BLAKE2b-256 22ea3e6740d894b1e57000043ecb9d458384723a396368228d968e3705adf662

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page