Skip to main content

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.

::
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.

Files for tornado_subprocess, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size tornado_subprocess-0.1.3-py2.7.egg (5.1 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size tornado_subprocess-0.1.3.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page