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

This version

4.4

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

Uploaded Source

Built Distributions

tornado-4.4-cp35-cp35m-win_amd64.whl (404.3 kB view details)

Uploaded CPython 3.5m Windows x86-64

tornado-4.4-cp35-cp35m-win32.whl (403.8 kB view details)

Uploaded CPython 3.5m Windows x86

File details

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

File metadata

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

File hashes

Hashes for tornado-4.4.tar.gz
Algorithm Hash digest
SHA256 3176545b6cb2966870db4def4f646da6ab7a0c19400576969c57279a7561ab02
MD5 5fc47b25bea3da157b0b95745a09561d
BLAKE2b-256 8b01e7b4bcee946b356060639582fa71946130b5fe5ab0d0557c4340275f2dff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 9a8c1f6e98882e030a206be0f06553a869de758ee158726d1c1ec63eae9df964
MD5 bfed6ce743c3586301d77fac616aa8c8
BLAKE2b-256 e1c06a232d97fac7811f35e534c8fc7497aee04f8557e5e8a2fb29b0d2b1e33f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 f9f414658430d04fc470039de838bddf2371cbdc5238cf9debad11195cdfb2db
MD5 6452bc2fd170228cebb36432e68c1fe1
BLAKE2b-256 03bd1e86e515f0366399f28a5886cce47fb2090a30d4dba5efead8baf3455905

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