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 asyncio
import tornado

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")

def make_app():
    return tornado.web.Application([
        (r"/", MainHandler),
    ])

async def main():
    app = make_app()
    app.listen(8888)
    await asyncio.Event().wait()

if __name__ == "__main__":
    asyncio.run(main())

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 https://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-6.3.2.tar.gz (508.8 kB view details)

Uploaded Source

Built Distributions

tornado-6.3.2-cp38-abi3-win_amd64.whl (428.4 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tornado-6.3.2-cp38-abi3-win32.whl (427.9 kB view details)

Uploaded CPython 3.8+ Windows x86

tornado-6.3.2-cp38-abi3-musllinux_1_1_x86_64.whl (429.7 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ x86-64

tornado-6.3.2-cp38-abi3-musllinux_1_1_i686.whl (429.7 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ i686

tornado-6.3.2-cp38-abi3-musllinux_1_1_aarch64.whl (429.7 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

tornado-6.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (427.4 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tornado-6.3.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (426.9 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

tornado-6.3.2-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (426.7 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

tornado-6.3.2-cp38-abi3-macosx_10_9_x86_64.whl (422.6 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

tornado-6.3.2-cp38-abi3-macosx_10_9_universal2.whl (424.7 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ universal2 (ARM64, x86-64)

File details

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

File metadata

  • Download URL: tornado-6.3.2.tar.gz
  • Upload date:
  • Size: 508.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tornado-6.3.2.tar.gz
Algorithm Hash digest
SHA256 4b927c4f19b71e627b13f3db2324e4ae660527143f9e1f2e2fb404f3a187e2ba
MD5 cabfe39cb7eb09d8128d4ac3deb934ce
BLAKE2b-256 30f06e5d85d422a26fd696a1f2613ab8119495c1ebb8f49e29f428d15daf79cc

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: tornado-6.3.2-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 428.4 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tornado-6.3.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0c325e66c8123c606eea33084976c832aa4e766b7dff8aedd7587ea44a604cdf
MD5 14f16e96163cea43faf8f665c2ff7dec
BLAKE2b-256 defab8b2ee2f528eedd03d98d49c76822f065f18e99f6f58c1e18fe5ed893098

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-win32.whl.

File metadata

  • Download URL: tornado-6.3.2-cp38-abi3-win32.whl
  • Upload date:
  • Size: 427.9 kB
  • Tags: CPython 3.8+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tornado-6.3.2-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 7efcbcc30b7c654eb6a8c9c9da787a851c18f8ccd4a5a3a95b05c7accfa068d2
MD5 eae7eb0b1a05410450514b7f79f8df69
BLAKE2b-256 be95a4d0b991b64e910516d856c6c936df9e1f63dcc22eaaabfcef56d3af1a25

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 6a0848f1aea0d196a7c4f6772197cbe2abc4266f836b0aac76947872cd29b411
MD5 c4059ec3a2491277f48df61149d13046
BLAKE2b-256 306c710fcafd1acbdafd80465a8107a08e88233a3a6588e414716be37236c97a

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 834ae7540ad3a83199a8da8f9f2d383e3c3d5130a328889e4cc991acc81e87a0
MD5 0ed1f55908fcfe6f27155d49f99bd372
BLAKE2b-256 f0840227a83ce4b3742f81b85f9f28e5942590ad79adafe5c75cc663267c3df2

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 29e71c847a35f6e10ca3b5c2990a52ce38b233019d8e858b755ea6ce4dcdd19d
MD5 416662dafacdadf60662a091a6f584e6
BLAKE2b-256 6615a69a97136df081414ffb8e923c8a17c3761e7d8ff665e0a7b428fefe09e3

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c2de14066c4a38b4ecbbcd55c5cc4b5340eb04f1c5e81da7451ef555859c833f
MD5 95a8552f7f52949658fedea9890bf098
BLAKE2b-256 8de69627d4baa9db97b6b8757a42513e89b06410eae82a9bd7e2f298bb38a616

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b17b1cf5f8354efa3d37c6e28fdfd9c1c1e5122f2cb56dac121ac61baa47cbe
MD5 87e6870fcc44c6f22223c39e53d8c823
BLAKE2b-256 3151894f260c1380853cc268f661fe599a4523a47d07e867386abb58f1f11278

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 05615096845cf50a895026f749195bf0b10b8909f9be672f50b0fe69cba368e4
MD5 79f2e5fa0244b1e0ebbd3ba5c95ba896
BLAKE2b-256 35793237fab5374abea5473c1a4f850bf24168053d05dba002d4bbf14f86243c

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b46a6ab20f5c7c1cb949c72c1994a4585d2eaa0be4853f50a03b5031e964fc7c
MD5 7e8ea158938a59d916856293d23046f8
BLAKE2b-256 f45699038d89642cdee805805cf2e86a28ecdddafb69be9cbb04214abb995082

See more details on using hashes here.

File details

Details for the file tornado-6.3.2-cp38-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tornado-6.3.2-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c367ab6c0393d71171123ca5515c61ff62fe09024fa6bf299cd1339dc9456829
MD5 c531af4b7c54d69e149647a59fbddf6f
BLAKE2b-256 303c68e9896ce47dd4acdb7e27945046f139db2862d3b990c655a5c0627c9a05

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