tornadoweb/tornado

 tornadoweb / tornado

tornadoweb / tornado

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. http://www.tornadoweb.org/

tornado13520135201353013530135401354013550135501356013560135701357013580135802017-05-132017-05-142017-05-152017-05-162017-05-172017-05-182017-05-192017-05-202017-05-212017-05-222017-05-232017-05-242017-05-252017-05-262017-05-27tornado135178.23112389909195.5496328332017-05-131351637.6279949673198.3135764112017-05-141352367.0248660355178.9659713632017-05-151353096.4217371037159.6183663152017-05-1613535125.818608172145.7986484242017-05-1713540155.21547924131.9789305322017-05-1813547184.612350308112.6313254852017-05-1913550214.009221376104.339494752017-05-2013554243.40609244593.28372043682017-05-2113560272.80296351376.70005896722017-05-2213561302.19983458173.9361153892017-05-2313575331.59670564935.24090529332017-05-2413578360.99357671726.94907455852017-05-2513585390.3904477867.601469510682017-05-2613586419.7873188544.837525932412017-05-27star

 README

Tornado Web Server

Join the chat at https://gitter.im/tornadoweb/tornado

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.

Hello, world

Here is a simple "Hello, world" example web app for Tornado:

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()

This example does not use any of Tornado's asynchronous features; for that see this simple chat room.

Documentation

Documentation and links to additional resources are available at http://www.tornadoweb.org