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

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.3
File Size Uploaded
tort-0.5.3.tar.gz 8.0 kB Details

Built distribution (wheel)

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

Total release size: 18.7 kB

Release files / tort-0.5.3.tar.gz

Download URL tort-0.5.3.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
66217ff5cb897e5986ef01cd7871dd350574232512b35dfff975d3ed360b91e4
BLAKE2b-256 checksum
How to use checksums
d2f1963279ed1f5a75aedc53f08bfbeb9dfdb8fb9e4c10e6d8192afaf7e3b7bb
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.3-py3-none-any.whl

Download URL tort-0.5.3-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f9a6cf904c02d5918b9fe8410d29a47e65495a86642a8d955fdedec54238116
BLAKE2b-256 checksum
How to use checksums
a62f301fec27b4fbfe6dcac15298621fd2dd985ba2b629c696893cbd9762e5f1
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

0.5.4

2 release files

This release

0.5.3 This release

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