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

Uploaded Source

Built Distributions

tornado-4.4.2-cp35-cp35m-win_amd64.whl (406.7 kB view details)

Uploaded CPython 3.5m Windows x86-64

tornado-4.4.2-cp35-cp35m-win32.whl (406.1 kB view details)

Uploaded CPython 3.5m Windows x86

File details

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

File metadata

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

File hashes

Hashes for tornado-4.4.2.tar.gz
Algorithm Hash digest
SHA256 2898f992f898cd41eeb8d53b6df75495f2f423b6672890aadaf196ea1448edcc
MD5 b4816ea209118667ffc52ce9ff06ac85
BLAKE2b-256 1e7cea047f7bbd1ff22a7f69fe55e7561040e3e54d6f31da6267ef9748321f98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 051f46b0bb8bca1c4aeaeed1631f2533d559149c4baa52d22805d75ddfd13d63
MD5 f390eb4a8bdf3676b4b1bd57d081cc38
BLAKE2b-256 9ab971befb05ff6d6ba0c71336c9793109e6569f171fd8330b071b1cdf639931

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 bbfc2d8acaaf89863bdfd06550d0a3036e15ad6552c5d381a99b4eb2e2357b36
MD5 3ab2f002c6026188d5b9662f62acc6e9
BLAKE2b-256 c073e550ea3d60b4313f3aca2d5362344498657ad11f6ebedd1f77a74928cb12

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