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

    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()

Release files for tort 0.5.9

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.9
File Size Uploaded
tort-0.5.9.tar.gz 8.7 kB Details

Built distribution (wheel)

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

Total release size:18.9 kB

Release files / tort-0.5.9.tar.gz

Download URL tort-0.5.9.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9e65dd55ba73cad09e91113e057b3924f38b60056bd72f0b8bfd18bfb58db26d
BLAKE2b-256 checksum
How to use checksums
acb66260e0b55bbbdda0be0a57e387d8a17ded5737ec92627b6ac9a38236d4ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

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

Download URL tort-0.5.9-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3da52ab8c1b74190cca7f1a8921eadf726c62daef0cecb274f303c104e6bdd6
BLAKE2b-256 checksum
How to use checksums
f3948467dd399d23dc9ccf1c87cdb85c33f141b4d46d3188637c915178d17d06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.5.9 This release

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

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