diff --git a/superTornado.py b/superTornado.py new file mode 100644 index 0000000..99d28e5 --- /dev/null +++ b/superTornado.py @@ -0,0 +1,20 @@ +import tornado.httpserver +import tornado.ioloop + + + + + +def main(port = 80): + ioloop = tornado.ioloop.IOLoop.instance() + application = tornado.web.Application([ + (r"/get/(sysinfo|cpuinfo)", InfoHandler) + ]) + http_server = tornado.httpserver.HTTPServer(application) + http_server.listen(port) + try: + ioloop.start() + except KeyboardInterrupt: + pass + +