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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tornado_subprocess-0.1.tar.gz.
File metadata
- Download URL: tornado_subprocess-0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74030e876a417f1cfd8e856437e46005cf78ea9b03e00e56e4e47c594ff53f8e
|
|
| MD5 |
f455faca3f4306e91978c0b50e983933
|
|
| BLAKE2b-256 |
4b854fe6f0b8500f42681d36888f60cdeb0bb11312092a13bea8e67e8ea36e01
|
File details
Details for the file tornado_subprocess-0.1-py2.7.egg.
File metadata
- Download URL: tornado_subprocess-0.1-py2.7.egg
- Upload date:
- Size: 5.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77b9128702bd0f5d823674ca91c366a88ad08f3b696af7bd372a54ec5dbd299c
|
|
| MD5 |
a1ea68262ec486cd09cb5516c6e33ace
|
|
| BLAKE2b-256 |
19c4eefcae49f49fd4d4d6c9971afa355781132821a80c6097418d9288830b8d
|