Skip to content

Repository files navigation

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

importcommandresponse=command.run(['ls'])
printresponse.outputprintresponse.exit

Print the output as it happens

importcommanddefdebug(text):
printtextresponse=command.run(['ls'], debug=debug)
printresponse.outputprintresponse.exit

License

MIT - See LICENSE

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages