Metadata-Version: 2.1
Name: tort
Version: 0.5.3
Summary: Tort - Tornado framework helper functions
Home-page: https://github.com/glibin/tort
License: UNKNOWN
Download-URL: https://github.com/glibin/tort/tarball/0.5.3
Description: 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()
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >= 3.7
Description-Content-Type: text/x-rst
