HTTP Server / Web application controller
Find a file
2015-07-22 13:40:55 -04:00
docs Add documentation 2015-07-22 13:40:55 -04:00
requires Add requirements directory. 2015-07-22 13:31:19 -04:00
sprockets Rework version management. 2015-07-22 13:29:16 -04:00
.gitignore Fix the *.pyc exclusion in .gitignore 2014-08-19 16:53:15 -04:00
.travis.yml Initial project structure 2014-08-19 12:58:29 -04:00
LICENSE Initial project structure 2014-08-19 12:58:29 -04:00
MANIFEST.in Add documentation 2015-07-22 13:40:55 -04:00
README.rst Add documentation 2015-07-22 13:40:55 -04:00
setup.cfg Add documentation 2015-07-22 13:40:55 -04:00
setup.py Add requirements directory. 2015-07-22 13:31:19 -04:00

sprockets.http
==============
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
-------------

.. code-block:: python

   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)