Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Tort - Tornado framework helper functions

Project description


Tornado framework helpers.

Requires **Python 3.7+** as it uses contextvars and **Tornado 6+**.

Use cases

Add Request Id to all requests

.. code-block:: python
import logging
import tornado.ioloop
import tornado.web
from tort.logger import configure_logging

class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")

def make_app():
configure_logging('/tmp/logs_with_request_id.txt', logging.DEBUG)

return tornado.web.Application([
(r"/", MainHandler),

if __name__ == "__main__":
app = 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.

Files for tort, version 0.5.7
Filename, size File type Python version Upload date Hashes
Filename, size tort-0.5.7.tar.gz (8.1 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