Module ImportFrom alias Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call NameLoad Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr
N/A string Template N/A tornado_app N/A N/A 
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys

import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.options

from urls import url_patterns


class TornadoApplication(tornado.web.Application):
    def __init__(self):
        tornado.web.Application.__init__(self, url_patterns)


def main():
    try:
        port = int(sys.argv[1])
    except:
        port = 8080

    app = TornadoApplication()
    http_server = tornado.httpserver.HTTPServer(app)
    http_server.listen(port)
    tornado.options.parse_command_line()
    tornado.ioloop.IOLoop.instance().start()


if __name__ == '__main__':
    main()
 strip N/A tornado_handler N/A N/A 
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import tornado.web


class IndexHandler(tornado.web.RequestHandler):

    @tornado.web.asynchronous
    def get(self):
        self.write('Hello World')
        self.finish()
 strip N/A tornado_urls N/A Template N/A N/A 
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from handlers.${module} import IndexHandler


url_patterns = [
    (r'^/$$', IndexHandler),
]
 strip N/A requirements N/A N/A 
tornado
 strip