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.

Source Distribution

tornado_subprocess-0.1.3.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

tornado_subprocess-0.1.3-py2.7.egg (5.1 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page