A module which allows you to spawn subprocesses from a tornado web application in a non-blocking fashion.
Project description
A module which allows you to spawn subprocesses from a tornado web application in a non-blocking fashion.
Example:
- def print_res( status, stdout, stderr ) :
- if status == 0:
print “OK:” print stdout
- else:
print “ERROR:” print stderr
t = Subprocess( print_res, timeout=30, args=[ “cat”, “/etc/passwd” ] ) t.start()
#start tornado t.ioloop.start()
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
Built Distribution
Close
Hashes for tornado_subprocess-0.1.1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a512e6561d7fd69ec626637c23635fe1edc0324d2ed03b30810606496809d423 |
|
MD5 | 4e84ccb7519e2b60730a0cbdc86667c9 |
|
BLAKE2b-256 | 6e2f5c75033c5e338c45f1d87cd53e557e5f4769b48530aba7690d6ea801e3bf |