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.4

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.4
File Size Uploaded
tort-0.5.4.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tort 0.5.4
File Interpreter ABI Platform
tort-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / tort-0.5.4.tar.gz

Download URL tort-0.5.4.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c8c00ac6e8f64159bcc5dab05ea3d17280752f614e377d65b4e1a85dedfd0bbd
BLAKE2b-256 checksum
How to use checksums
95b1db687ad46dcac6630303bcf5ef5d2447165826915ab1b3754c5f3f851957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2

Release files / tort-0.5.4-py3-none-any.whl

Download URL tort-0.5.4-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e61ae8727ee653a5c8fc3e3afb39737b90cd870969accfe38a36f9e74418ac74
BLAKE2b-256 checksum
How to use checksums
8029871db1685b07110d3cda4065869450e5832f57a658c7b9ffe65b2d9f42cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2

Release history Release notifications | RSS feed

0.5.9

2 release files

0.5.7

1 release file

0.5.6

2 release files

0.5.5

2 release files

This release

0.5.4 This release

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