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

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.6
File Size Uploaded
tort-0.5.6.tar.gz 8.4 kB Details

Built distribution (wheel)

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

Total release size: 19.4 kB

Release files / tort-0.5.6.tar.gz

Download URL tort-0.5.6.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1ad486272817a8a60393e87f5b04f793164417fac4bff54ac6c7f8e2e0bc9475
BLAKE2b-256 checksum
How to use checksums
e3d85bb78a5862b99315000f604b964f00c31a1543591dbf9555bd58836fe7eb
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.6-py3-none-any.whl

Download URL tort-0.5.6-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e378282ffb0d60d673a33021ecdef92dd448eaabfedec63df2c55d18772b852
BLAKE2b-256 checksum
How to use checksums
f67b1be914fa619f40152c8cb49d5584ef25de142baf49f56a3d2b822b2a5c6f
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

This release

0.5.6 This release

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