Skip to main content

Command runner with debug capabilities

Project description

Command

https://travis-ci.org/helgi/python-command.png

Wrapper around subprocess.popen with on the fly debug / logging capabilities and timeout handling.

Uses tempfiles for stdout/stderr to get past the 64kb subprocess.PIPE bug/limitation in python.

Normal command run

import command
response = command.run(['ls'])
print response.output
print response.exit

Print the output as it happens

import command
def debug(text):
    print text

response = command.run(['ls'], debug=debug)
print response.output
print response.exit

License

MIT - See LICENSE

Project details


Release history Release notifications

This version

0.1.0

Download files

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

Files for Command, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size Command-0.1.0.tar.gz (5.3 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