MCPcopy
hub / github.com/tornadoweb/tornado / main

Function main

demos/chat/chatdemo.py:111–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109
110
111async def main():
112 parse_command_line()
113 app = tornado.web.Application(
114 [
115 (r"/", MainHandler),
116 (r"/a/message/new", MessageNewHandler),
117 (r"/a/message/updates", MessageUpdatesHandler),
118 ],
119 cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
120 template_path=os.path.join(os.path.dirname(__file__), "templates"),
121 static_path=os.path.join(os.path.dirname(__file__), "static"),
122 xsrf_cookies=True,
123 debug=options.debug,
124 )
125 app.listen(options.port)
126 await asyncio.Event().wait()
127
128
129if __name__ == "__main__":

Callers 1

chatdemo.pyFile · 0.70

Calls 4

listenMethod · 0.95
parse_command_lineFunction · 0.90
joinMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected