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
tornado_subprocess-0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for tornado_subprocess-0.1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77b9128702bd0f5d823674ca91c366a88ad08f3b696af7bd372a54ec5dbd299c |
|
MD5 | a1ea68262ec486cd09cb5516c6e33ace |
|
BLAKE2b-256 | 19c4eefcae49f49fd4d4d6c9971afa355781132821a80c6097418d9288830b8d |