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

This version

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

Uploaded Source

Built Distributions

tornado-6.4-cp38-abi3-win_amd64.whl (437.0 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tornado-6.4-cp38-abi3-win32.whl (436.5 kB view details)

Uploaded CPython 3.8+ Windows x86

tornado-6.4-cp38-abi3-musllinux_1_1_x86_64.whl (438.2 kB view details)

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

tornado-6.4-cp38-abi3-musllinux_1_1_i686.whl (438.2 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ i686

tornado-6.4-cp38-abi3-musllinux_1_1_aarch64.whl (438.2 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

tornado-6.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (435.9 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tornado-6.4-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (435.4 kB view details)

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

tornado-6.4-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (435.2 kB view details)

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

tornado-6.4-cp38-abi3-macosx_10_9_x86_64.whl (431.1 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

tornado-6.4-cp38-abi3-macosx_10_9_universal2.whl (433.1 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for tornado-6.4.tar.gz
Algorithm Hash digest
SHA256 72291fa6e6bc84e626589f1c29d90a5a6d593ef5ae68052ee2ef000dfd273dee
MD5 460b467761e5ff74202b5bf8054c8116
BLAKE2b-256 bda2ea124343e3b8dd7712561fe56c4f92eda26865f5e1040b289203729186f2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tornado-6.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 10aeaa8006333433da48dec9fe417877f8bcc21f48dda8d661ae79da357b2a63
MD5 452fbf5e2ed7f07363f2ab6f68164a7a
BLAKE2b-256 af2b4649926f17c1634d21c584cc855b5c5021f148b934919d26932a595bc034

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tornado-6.4-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 6f8a6c77900f5ae93d8b4ae1196472d0ccc2775cc1dfdc9e7727889145c45052
MD5 250c0137791168ed167a3310b5c35a56
BLAKE2b-256 a707bdda4c6dcd625cc2bc13e06a15876055cc852ec76c748ab7a025ea3804ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.4-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 71ddfc23a0e03ef2df1c1397d859868d158c8276a0603b96cf86892bff58149f
MD5 4f0da3376efa740f0b0671b41e645623
BLAKE2b-256 25a31025f561b87b3cca6f66da149ba7ce4c2bb18d7bd6b84cd5a13a274e9dd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.4-cp38-abi3-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 88b84956273fbd73420e6d4b8d5ccbe913c65d31351b4c004ae362eba06e1f78
MD5 d58562ac2c252931b231aed8a38980a4
BLAKE2b-256 e240bcf0af5a29a850bf5ad7f79ef51c054f99e18d9cdf4efd6eeb0df819641f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.4-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 fd03192e287fbd0899dd8f81c6fb9cbbc69194d2074b38f384cb6fa72b80e9c2
MD5 36caf25c1418df10ec4ddf8e9d7b9a39
BLAKE2b-256 66e5466aa544e0cbae9b0ece79cd42db257fa7bfa3197c853e3f7921b3963190

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f7894c581ecdcf91666a0912f18ce5e757213999e183ebfc2c3fdbf4d5bd764e
MD5 476903b2f4863cf7cad57fcda8a1f193
BLAKE2b-256 62e53ee2ba523a13bae5c17d1658580d13597116c1639374ca5033d58fd04724

See more details on using hashes here.

File details

Details for the file tornado-6.4-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.4-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0251554cdd50b4b44362f73ad5ba7126fc5b2c2895cc62b14a1c2d7ea32f212
MD5 7f18764eb1c0cf74514cf21134ccf034
BLAKE2b-256 9f1211d0a757bb67278d3380d41955ae98527d5ad18330b2edbdc8de222b569b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.4-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e43bc2e5370a6a8e413e1e1cd0c91bedc5bd62a74a532371042a18ef19e10579
MD5 996bb7b9956a40f7a3164aff10514e06
BLAKE2b-256 0e76aca8c8726d045c1c7b093cca3c5551e8df444ef74ba0dfd1f205da1f95db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.4-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 27787de946a9cffd63ce5814c33f734c627a87072ec7eed71f7fc4417bb16263
MD5 933aa5980100590090db26e655d35f6f
BLAKE2b-256 347ae7ec972db24513ea69ac7132c1a5eef62309dc978566a4afffa314417a45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.4-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 02ccefc7d8211e5a7f9e8bc3f9e5b0ad6262ba2fbb683a6443ecc804e5224ce0
MD5 ac2d5f97699149e1a637fc870a983608
BLAKE2b-256 4a2e3ba930e3af171847d610e07ae878e04fcb7e4d7822f1a2d29a27b128ea24

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