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

Uploaded Source

Built Distributions

tornado-4.4.1-cp35-cp35m-win_amd64.whl (404.7 kB view details)

Uploaded CPython 3.5m Windows x86-64

tornado-4.4.1-cp35-cp35m-win32.whl (404.1 kB view details)

Uploaded CPython 3.5m Windows x86

File details

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

File metadata

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

File hashes

Hashes for tornado-4.4.1.tar.gz
Algorithm Hash digest
SHA256 371d0cf3d56c47accc66116a77ad558d76eebaa8458a6b677af71ca606522146
MD5 fff8a7d7f580b04bacc2ffe7ddf41133
BLAKE2b-256 965dff472313e8f337d5acda5d56e6ea79a43583cc8771b34c85a1f458e197c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3b57939955588055be29c93c2ea533e44ee8ee75a6c1dd14f103eef92d01829f
MD5 4d63e8d17d9c18ffbbe0653603b95b16
BLAKE2b-256 5cf4600a3047eddb4650fbc6290aed7d1f61c5085cc05bd49719a52cf304a9c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 af9ee9f93109a98526a29cdea756802f1aab7897def0330532af4c4337895565
MD5 95d4164e18c093de376c773c67c6d345
BLAKE2b-256 6b8e8bfc7447158416926b1bc668a52d3da120c0d098bded35f2be738f06391b

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