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
Release history Release notifications | RSS feed
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.2.2.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for sprockets.http-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d64511f52f75edb2eb664ca9e81e9d8b52912119218e7ae9a96730d0acd8f76a |
|
MD5 | 0663f2ae44c9e9b8672330d38ea570e3 |
|
BLAKE2b-256 | b4fb2a6923f3d7fb95407a2f58f3c1787d51ade54ffff88e6dc9cc6a5fb8d536 |