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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

File details

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

File metadata

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

File hashes

Hashes for tornado-4.4.3.tar.gz
Algorithm Hash digest
SHA256 f267acc96d5cf3df0fd8a7bfb5a91c2eb4ec81d5962d1a7386ceb34c655634a8
MD5 214a1963ca436360dfbfcfe2b3af03e7
BLAKE2b-256 5c0b2e5cef0d30811532b27ece726fb66a41f63344af8b693c90cec9474d9022

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 9bb90d6b753ebcb364b8bf81c01c22612a5884c24ad130d8a7c2dea387f70d8f
MD5 9fbc57157f715c3fec206f887073092f
BLAKE2b-256 e61e15b77e91d0a196ff31fa1b6fda5b0b2bc7d5809ae5dc4534d2cc26d443f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.4.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 6ae0925cd08297ea76ec91f1373aa1211aeef26dc7fcdba7ec18e8916747d12b
MD5 e322fcd9cda4b003baac11b9d31eff1d
BLAKE2b-256 ae399ca026ba8e43836493295e09671ca599ea7a7d8f6cc4225a06bf85c3d0e9

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