Skip to main content
Tort
====

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()
app.listen(8888)
tornado.ioloop.IOLoop.current().start()

Metadata

Release files for tort 0.5.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tort 0.5.7
File Size Uploaded
tort-0.5.7.tar.gz 8.1 kB Details

Release files / tort-0.5.7.tar.gz

Download URL tort-0.5.7.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
701479b7ca01da1d2f06e0c13fb400549a161b1780f392ec53320e78eb761a12
BLAKE2b-256 checksum
How to use checksums
a6afd86c9471691b3b65ae37bc7edc258c80356de15e45f1a7203c57d316dc1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release history Release notifications | RSS feed

0.5.9

2 release files

This release

0.5.7 This release

1 release file

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page