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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6m Windows x86-64

tornado-4.5.1-cp36-cp36m-win32.whl (422.0 kB view details)

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

tornado-4.5.1-cp35-cp35m-win32.whl (422.0 kB view details)

Uploaded CPython 3.5m Windows x86

File details

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

File metadata

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

File hashes

Hashes for tornado-4.5.1.tar.gz
Algorithm Hash digest
SHA256 db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd
MD5 838687d20923360af5ab59f101e9e02e
BLAKE2b-256 df42a180ee540e12e2ec1007ac82a42b09dd92e5461e09c98bf465e98646d187

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.5.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 c3f4456f0ab9e62dab7ede834dcf4c89082238e97b3e67a9196572c076e716aa
MD5 49766e4c9d564c1ac9b75aa13d36de26
BLAKE2b-256 6d105980dd81cec252df93a1b903f0003d5664db09ade65dbdb9ffbc18e1c4ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.5.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 0a6894559e62a186d6cc20f1c0e7318f83ae8e28922d75c4b6f83d42cc91d8b1
MD5 9f724a161b5782c85930e65d133725fd
BLAKE2b-256 b9a651536b359820b9c8784d47427851791eb2f770dd9927580d1b220116dcf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.5.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 fb0883ae46da958d06fda2e3be6c033825a0b8603c493df8a69c0237055308d9
MD5 2da37264542575d4dfd7f0ff29500303
BLAKE2b-256 c07d54c9b8077a641297115b4d2635195b4a74db51488f0091ce3e8fc504ed6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-4.5.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 2b4618010625bcf01f187eec3148c6a3db76a2a900f7dde416330fc413274df1
MD5 d8909f70e79b356f4256b52fee5b82f5
BLAKE2b-256 8ef394243a7e81ed7e1a8f4172fe1558094410a94a6dd0f9c89113eb990de212

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