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

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

Built distribution (wheel)

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

Total release size: 18.8 kB

Release files / tort-0.5.5.tar.gz

Download URL tort-0.5.5.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ce7d788a79e97c73834171990e21b03e4c8c20fc90fae65c7241ed5182803d48
BLAKE2b-256 checksum
How to use checksums
839a62fa92d4aea6a0ef83922a975a1092a82c64d3df28b5bf79485d277e4498
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.5-py3-none-any.whl

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

This release

0.5.5 This release

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