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.web

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.2

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

Uploaded Source

Built Distributions

tornado-6.2-cp37-abi3-win_amd64.whl (425.3 kB view details)

Uploaded CPython 3.7+ Windows x86-64

tornado-6.2-cp37-abi3-win32.whl (424.9 kB view details)

Uploaded CPython 3.7+ Windows x86

tornado-6.2-cp37-abi3-musllinux_1_1_x86_64.whl (426.5 kB view details)

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

tornado-6.2-cp37-abi3-musllinux_1_1_i686.whl (426.5 kB view details)

Uploaded CPython 3.7+ musllinux: musl 1.1+ i686

tornado-6.2-cp37-abi3-musllinux_1_1_aarch64.whl (426.5 kB view details)

Uploaded CPython 3.7+ musllinux: musl 1.1+ ARM64

tornado-6.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (424.4 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (424.0 kB view details)

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

tornado-6.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (423.8 kB view details)

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

tornado-6.2-cp37-abi3-macosx_10_9_x86_64.whl (419.7 kB view details)

Uploaded CPython 3.7+ macOS 10.9+ x86-64

tornado-6.2-cp37-abi3-macosx_10_9_universal2.whl (421.8 kB view details)

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

File details

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

File metadata

  • Download URL: tornado-6.2.tar.gz
  • Upload date:
  • Size: 504.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tornado-6.2.tar.gz
Algorithm Hash digest
SHA256 9b630419bde84ec666bfd7ea0a4cb2a8a651c2d5cccdbdd1972a0c859dfc3c13
MD5 32fbad606b439c3e1bf4e79d4e872741
BLAKE2b-256 f39e225a41452f2d9418d89be5e32cf824c84fe1e639d350d6e8d49db5b7f73a

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: tornado-6.2-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 425.3 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tornado-6.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e5f923aa6a47e133d1cf87d60700889d7eae68988704e20c75fb2d65677a8e4b
MD5 fbfeda9ec57d948991bdfdd3c2d807c1
BLAKE2b-256 1c26cbfa1103e74a02e09dd53291e419da3ad4c5b948f52aea5800e6671b56e0

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-win32.whl.

File metadata

  • Download URL: tornado-6.2-cp37-abi3-win32.whl
  • Upload date:
  • Size: 424.9 kB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tornado-6.2-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 5c87076709343557ef8032934ce5f637dbb552efa7b21d08e89ae7619ed0eb23
MD5 01f92714ff9ba016ce06ad78957c7081
BLAKE2b-256 ec0193e63530851ba8ef9685f1a9b91e324b28d28323a6b67400114ea65c5110

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for tornado-6.2-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1d54d13ab8414ed44de07efecb97d4ef7c39f7438cf5e976ccd356bebb1b5fca
MD5 6370f5b3906c3324231d775362a70c27
BLAKE2b-256 f9516f63a166d9a3077be100cbb13dcbce434e5654daaaa7003b0a045b9f6edf

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for tornado-6.2-cp37-abi3-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 6fdfabffd8dfcb6cf887428849d30cf19a3ea34c2c248461e1f7d718ad30b66b
MD5 39d12ace7e635dcd141bef3e298cbcb6
BLAKE2b-256 6008e630a348b34a9ddd640aed67dafc6f0df425d8ac07d2fa60288f38321c69

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for tornado-6.2-cp37-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 5f8c52d219d4995388119af7ccaa0bcec289535747620116a58d830e7c25d8a8
MD5 107ec4be6ce89eab6e4959440d2f4376
BLAKE2b-256 cda4761e45cea12b2af076d36240d464b371ab1231272948cdc49b7d81855c5c

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tornado-6.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ba09ef14ca9893954244fd872798b4ccb2367c165946ce2dd7376aebdde8e3ac
MD5 cd4e293874b29145ce44b39dcfef300c
BLAKE2b-256 71ccc1342382484d0178a79029109c433e406a60095da1c3605ca966775a70e5

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-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.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3a2f5999215a3a06a4fc218026cd84c61b8b2b40ac5296a6db1f1451ef04c1e
MD5 2dfcdce5e788260c852e18417a665361
BLAKE2b-256 19bbb6c3d1668d2b10ad38a584f3a1ec9737984e274f8b708e09fcbb96427f5c

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for tornado-6.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b8150f721c101abdef99073bf66d3903e292d851bee51910839831caba341a75
MD5 4305cf565cc4c329e6fcd623d31e9df1
BLAKE2b-256 1130ac70f5c5f03cf1cd0ae8199c80382387a9fe57e8f68853d5c9527c0219e5

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tornado-6.2-cp37-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 87dcafae3e884462f90c90ecc200defe5e580a7fbbb4365eda7c7c1eb809ebc9
MD5 28c2c1f4711fc07efba8ad02d696956b
BLAKE2b-256 5c0ccbc0a98f7b8ef833bcb13c58d35d09e2c288ae67a35af4c8960b88f99ae9

See more details on using hashes here.

File details

Details for the file tornado-6.2-cp37-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tornado-6.2-cp37-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 20f638fd8cc85f3cbae3c732326e96addff0a15e22d80f049e00121651e82e72
MD5 8559e1bcca4fd4e809e1be17192b7c28
BLAKE2b-256 fbbd074254a55bfc82d7a1886abbd803600ef01cbd76ee66bc30307b2724130b

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