Skip to content

plter/tornado_asgi_handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tornado_asgi_handler

A request handler runs in tornado to support asgi

Example hello_world

import tornado.ioloop
import tornado.web
import tornado_asgi_handler
import my_asgi


application = tornado.web.Application([
    (r".*", tornado_asgi_handler.AsgiHandler, dict(asgi_app=my_asgi.app))
])
application.listen(8000)

try:
    tornado.ioloop.IOLoop.current().start()
except KeyboardInterrupt as err:
    print("Server stopped")

Run hello_world example

PYTHONPATH=. python examples/hello_world

Checkout all exmaples here

examples

About

A request handler runs in tornado to support asgi

Resources

License

Stars

8 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages