Skip to main content

Tornado HTTP application runner

Project description

This library runs Tornado HTTP server applications intelligently.

  • SIGTERM is gracefully handled with respect to outstanding timeouts and callbacks

  • Listening port is configured by the PORT environment variable

  • logging layer is configured to output JSON by default

  • “Debug mode” is enabled by the DEBUG environment variable

    • makes log out human-readable

    • catches SIGINT (e.g., Ctrl+C)

    • application run in a single process

Example Usage

from tornado import web
import sprockets.http


def make_app(**settings):
    return web.Application([
       # insert your handlers
    ], **settings)


if __name__ == '__main__':
    sprockets.http.run(make_app)

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

sprockets.http-0.4.0.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

sprockets.http-0.4.0-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page