gituser/production/: tornado-4.5.2 metadata and description

Homepage Simple index

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

author Facebook
author_email python-tornado@googlegroups.com
classifiers
  • License :: OSI Approved :: Apache Software License
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.5
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: Implementation :: CPython
  • Programming Language :: Python :: Implementation :: PyPy
license http://www.apache.org/licenses/LICENSE-2.0
File Tox results History
tornado-4.5.2-cp27-cp27mu-linux_x86_64.whl
Size
415 KB
Type
Python Wheel
Python
2.7
tornado-4.5.2-cp37-cp37m-linux_x86_64.whl
Size
418 KB
Type
Python Wheel
Python
3.7
tornado-4.5.2.tar.gz
Size
472 KB
Type
Source
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