Skip to main content

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

Project description

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

Project details


Release history Release notifications | RSS feed

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.5.2.tar.gz (483.7 kB view details)

Uploaded Source

Built Distributions

tornado-4.5.2-cp36-cp36m-win_amd64.whl (422.6 kB view details)

Uploaded CPython 3.6m Windows x86-64

tornado-4.5.2-cp36-cp36m-win32.whl (422.1 kB view details)

Uploaded CPython 3.6m Windows x86

tornado-4.5.2-cp35-cp35m-win_amd64.whl (422.6 kB view details)

Uploaded CPython 3.5m Windows x86-64

tornado-4.5.2-cp35-cp35m-win32.whl (422.1 kB view details)

Uploaded CPython 3.5m Windows x86

File details

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

File metadata

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

File hashes

Hashes for tornado-4.5.2.tar.gz
Algorithm Hash digest
SHA256 1fb8e494cd46c674d86fac5885a3ff87b0e283937a47d74eb3c02a48c9e89ad0
MD5 ab41f6765d58089f30ba51e8ec084a7b
BLAKE2b-256 fa1452e2072197dd0e63589e875ebf5984c91a027121262aa08f71a49b958359

See more details on using hashes here.

File details

Details for the file tornado-4.5.2-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for tornado-4.5.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2b40720a7b164848ca5c51fab0feac7e3717adcb87bec77f81f7809b72bf7f56
MD5 1bd43a7756d3f3cbfc6fe12e4c658922
BLAKE2b-256 cbec0dee45e060e9b424664cbec81b32eb3adde0804e1fe7bd5acb64e1775ea1

See more details on using hashes here.

File details

Details for the file tornado-4.5.2-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for tornado-4.5.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 e66f47db4753c6f6849af1f82f04bdc7d2c1f5d64b7cc11ddd17230295c8887f
MD5 e4ca216975fb50807a7bbc4525b9c3a9
BLAKE2b-256 730b55da7f11c53d849c972453c9c7099ccffa70687755464343557bacd7e03d

See more details on using hashes here.

File details

Details for the file tornado-4.5.2-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for tornado-4.5.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 f109c066411c44bcd3bc877267b45feb8e29092ede59dd0582739444c2344b00
MD5 fc11fbd9bcfbf124e0fc5a24b0b8d406
BLAKE2b-256 7da6639222363922e14081082227aacba0ba86739b7302fab6e63f96ba4d418b

See more details on using hashes here.

File details

Details for the file tornado-4.5.2-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for tornado-4.5.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 62a5d4c66bf4e86d25a02e9de97293860b59e61f9c465e80336ba0fc308aacf6
MD5 f9b6802f08b0180ff7df301db00871d9
BLAKE2b-256 3964eaaeaec2e2ba3a31f9dd4cefe1e25e35127278b3c9220a04944bfd10bbbf

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