Книга: Learning Concurrency in Python
Назад: Event-driven and reactive libraries
Дальше: Flask

Tornado

.

It's also very easy to get up and running with a simple Hello World application, which is the basis of a very simple RESTful API. It looks like this:

import tornado.ioloop import tornado.web  class MainHandler(tornado.web.RequestHandler):     def get(self):         self.write("Hello, world")  def make_app():     return tornado.web.Application([         (r"/", MainHandler),     ])  if __name__ == "__main__":     app = make_app()     app.listen(8888)     tornado.ioloop.IOLoop.current().start()
Назад: Event-driven and reactive libraries
Дальше: Flask