tornado 0,1,13,10,0,6,0,11 travis-ci python

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

2 years after Apache-2.0

Tornado Web Server

.. image:: https://badges.gitter.im/Join%20Chat.svg :alt: Join the chat at https://gitter.im/tornadoweb/tornado :target: https://gitter.im/tornadoweb/tornado?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

Tornado <http://www.tornadoweb.org> is a Python web framework and asynchronous networking library, originally developed at FriendFeed <http://friendfeed.com>. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling <http://en.wikipedia.org/wiki/Push_technology#Long_Polling>, WebSockets <http://en.wikipedia.org/wiki/WebSocket>, 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:

.. code-block:: python

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 <https://github.com/tornadoweb/tornado/tree/stable/demos/chat>_.

Documentation

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

Related Repositories

tornado-redis

tornado-redis

Asynchronous Redis client that works within Tornado IO loop. ...

tornado-celery

tornado-celery

Non-blocking Celery client for Tornado ...

Tornado-JSON

Tornado-JSON

A simple JSON API framework based on Tornado ...

tornado-rest-handler

tornado-rest-handler

A simple Python Tornado handler that manage Rest requests automatically ...

annotated-py-tornado

annotated-py-tornado

对tornado源码进行注释 ...


Top Contributors

bdarnell ajdavis finiteloop alekstorm wolever daftshady leekchan minrk mrjoes birknilson mivade rgbkrk schlamar ovidiucp jparise tatiana bergundy flodiebold dano davidwilemski lilydjwg stevepeak zhicheng st4lk mr-ping Parkayun sclm msabramo ysimonson homm

Releases

-   v4.4.1 zip tar
-   v4.4.0 zip tar
-   v4.4.0b1 zip tar
-   v4.3.0 zip tar
-   v4.3.0b2 zip tar
-   v4.3.0b1 zip tar
-   v4.2.1 zip tar
-   v4.2.0 zip tar
-   v4.2.0b1 zip tar
-   v4.1.0 zip tar
-   v4.1.0b2 zip tar
-   v4.1.0b1 zip tar
-   v4.0.2 zip tar
-   v4.0.1 zip tar
-   v4.0.0 zip tar
-   v4.0.0b3 zip tar
-   v4.0.0b2 zip tar
-   v4.0.0b1 zip tar
-   v3.2.2 zip tar
-   v3.2.1 zip tar
-   v3.2.0 zip tar
-   v3.2.0b2 zip tar
-   v3.2.0b1 zip tar
-   v3.1.1 zip tar
-   v3.1.0 zip tar
-   v3.0.2 zip tar
-   v3.0.1 zip tar
-   v3.0.0 zip tar
-   v2.4.1 zip tar
-   v2.4.0 zip tar