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

Uploaded Source

Built Distributions

tornado-6.3.1-cp38-abi3-win_amd64.whl (428.2 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tornado-6.3.1-cp38-abi3-win32.whl (427.8 kB view details)

Uploaded CPython 3.8+ Windows x86

tornado-6.3.1-cp38-abi3-musllinux_1_1_x86_64.whl (429.5 kB view details)

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

tornado-6.3.1-cp38-abi3-musllinux_1_1_i686.whl (429.5 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ i686

tornado-6.3.1-cp38-abi3-musllinux_1_1_aarch64.whl (429.5 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

tornado-6.3.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (427.2 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tornado-6.3.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (426.8 kB view details)

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

tornado-6.3.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (426.6 kB view details)

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

tornado-6.3.1-cp38-abi3-macosx_10_9_x86_64.whl (422.4 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

tornado-6.3.1-cp38-abi3-macosx_10_9_universal2.whl (424.5 kB view details)

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

File details

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

File metadata

  • Download URL: tornado-6.3.1.tar.gz
  • Upload date:
  • Size: 508.5 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.1.tar.gz
Algorithm Hash digest
SHA256 5e2f49ad371595957c50e42dd7e5c14d64a6843a3cf27352b69c706d1b5918af
MD5 9bb3cda5391241372f2a8e1f555a31ae
BLAKE2b-256 1c1d89cb7050dbd009db3cb69ca74c1f0a3f5c36405f887c2d2371d9ebfe0cd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tornado-6.3.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 428.2 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.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1285f0691143f7ab97150831455d4db17a267b59649f7bd9700282cba3d5e771
MD5 c58672112aa9b8ca3d183a45f7e7c98f
BLAKE2b-256 fc98288c5f6c1db72fe82d831a21110c026316cd6fce5dc71c480006dc591b19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tornado-6.3.1-cp38-abi3-win32.whl
  • Upload date:
  • Size: 427.8 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.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 3455133b9ff262fd0a75630af0a8ee13564f25fb4fd3d9ce239b8a7d3d027bf8
MD5 fea82bc9caa3ee4be3de8c199cdc8515
BLAKE2b-256 50efcbf3173524fa5bb4ce1c23e645f3d183be8135e5d3dcca06d22f5fb3301d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3.1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 90f569a35a8ec19bde53aa596952071f445da678ec8596af763b9b9ce07605e6
MD5 6392802e8a39c517cd4426b77b1050cd
BLAKE2b-256 da5cf0e800a88d9bf5424517826742c3c5c3c1e79f80f9da38759f8b67f80869

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3.1-cp38-abi3-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 ffdce65a281fd708da5a9def3bfb8f364766847fa7ed806821a69094c9629e8a
MD5 ecb923cc728ac0a7cdb95631c20b5418
BLAKE2b-256 0fb7766847a44120b977d841fd2cfa2e2deaa0794a6b85ef43dc2b46393223ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3.1-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 d7117f3c7ba5d05813b17a1f04efc8e108a1b811ccfddd9134cc68553c414864
MD5 cb7a9e9e7a2b00e8a28ce31170d19b6a
BLAKE2b-256 c2b6e4b85dcf88fdfb9fb681366a007476e4e41e258475ed253654a6da68a3bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9661aa8bc0e9d83d757cd95b6f6d1ece8ca9fd1ccdd34db2de381e25bf818233
MD5 73f599e0c142138b9cccfcb3415cba58
BLAKE2b-256 ee818514d9ee4033c8bb287b6bd6891f9423ede41f0b9db2ddb1785158fc1e79

See more details on using hashes here.

File details

Details for the file tornado-6.3.1-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.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a27a1cfa9997923f80bdd962b3aab048ac486ad8cfb2f237964f8ab7f7eb824b
MD5 f029d95a02835d7441cd5248be5f909c
BLAKE2b-256 d49a13cc6a950c75c777c25ffe4dd736dad389fe90331d777bddad7c7277f78a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 81c17e0cc396908a5e25dc8e9c5e4936e6dfd544c9290be48bd054c79bcad51e
MD5 dbf23536d1670e7099fdc8dd59fcce85
BLAKE2b-256 2cc34aa563209fa12b5eca16a9f265f3f5ae77216eef0da651039904f6f4bff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b4e7b956f9b5e6f9feb643ea04f07e7c6b49301e03e0023eedb01fa8cf52f579
MD5 b4c2b713e2466c781e84adcf704b9b5e
BLAKE2b-256 9a79fe95d56be4b3eefe4b76bf5cf96bbcd853b8d9aacc0a756a568d10214e8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3.1-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 db181eb3df8738613ff0a26f49e1b394aade05034b01200a63e9662f347d4415
MD5 082022f2df8135f71eb4314a6e18208a
BLAKE2b-256 e5a8a0e9479a0166b9bff3acc96c628b32e01a84c67200a0fd4bc392a34dba3f

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