(Go: >> BACK << -|- >> HOME <<)

Skip to content

helgi/python-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages