Skip to main content

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

Project description

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

Project details


Release history Release notifications | RSS feed

This version

4.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tornado-4.3.tar.gz (450.9 kB view details)

Uploaded Source

Built Distributions

tornado-4.3-cp35-none-win_amd64.whl (398.4 kB view details)

Uploaded CPython 3.5 Windows x86-64

tornado-4.3-cp35-none-win32.whl (397.8 kB view details)

Uploaded CPython 3.5 Windows x86

File details

Details for the file tornado-4.3.tar.gz.

File metadata

  • Download URL: tornado-4.3.tar.gz
  • Upload date:
  • Size: 450.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tornado-4.3.tar.gz
Algorithm Hash digest
SHA256 c9c2d32593d16eedf2cec1b6a41893626a2649b40b21ca9c4cac4243bde2efbf
MD5 d13a99dc0b60ba69f5f8ec1235e5b232
BLAKE2b-256 2129e64c97013e97d42d93b3d5997234a6f17455f3744847a7c16289289f8fa6

See more details on using hashes here.

File details

Details for the file tornado-4.3-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for tornado-4.3-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 295e1f38225ce2bdd85a0524e265e9adea40507333829f3a7d64c588dd78ff21
MD5 7adb2f6542204e56fad21e33318e18db
BLAKE2b-256 d51fefed2f65ad59020bc09fbea9886fff7b98da8f0d4db65156b6c7a7324f50

See more details on using hashes here.

File details

Details for the file tornado-4.3-cp35-none-win32.whl.

File metadata

File hashes

Hashes for tornado-4.3-cp35-none-win32.whl
Algorithm Hash digest
SHA256 042255160bb1976d2aa3d9e0f32ac7f8c1bc2dfab7b2c86688a3bd6088ba90e1
MD5 beb80a37266b5be5b27ae4b14175efea
BLAKE2b-256 7faf2522991e353583fc184d27933d75f39de2a25cf11df246c137867b1f2ca9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page