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

Function main

demos/facebook/facebook.py:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102async def main():
103 tornado.options.parse_command_line()
104 if not (options.facebook_api_key and options.facebook_secret):
105 print("--facebook_api_key and --facebook_secret must be set")
106 return
107 http_server = tornado.httpserver.HTTPServer(Application())
108 http_server.listen(options.port)
109 await asyncio.Event().wait()
110
111
112if __name__ == "__main__":

Callers 1

facebook.pyFile · 0.70

Calls 4

parse_command_lineMethod · 0.80
ApplicationClass · 0.70
listenMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected