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.3b1.tar.gz (508.1 kB view details)

Uploaded Source

Built Distributions

tornado-6.3b1-cp38-abi3-win_amd64.whl (427.9 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tornado-6.3b1-cp38-abi3-win32.whl (427.4 kB view details)

Uploaded CPython 3.8+ Windows x86

tornado-6.3b1-cp38-abi3-musllinux_1_1_x86_64.whl (429.2 kB view details)

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

tornado-6.3b1-cp38-abi3-musllinux_1_1_i686.whl (429.2 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ i686

tornado-6.3b1-cp38-abi3-musllinux_1_1_aarch64.whl (429.2 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

tornado-6.3b1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (426.9 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tornado-6.3b1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (426.5 kB view details)

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

tornado-6.3b1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (426.3 kB view details)

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

tornado-6.3b1-cp38-abi3-macosx_10_9_x86_64.whl (422.2 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

tornado-6.3b1-cp38-abi3-macosx_10_9_universal2.whl (424.2 kB view details)

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

File details

Details for the file tornado-6.3b1.tar.gz.

File metadata

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

File hashes

Hashes for tornado-6.3b1.tar.gz
Algorithm Hash digest
SHA256 de62a482ebe12d3c6b8c55fa6fa655ccd73bceab342ea597da779ca3b5e62ddf
MD5 1ada9275737113ab5135cc2310a609e2
BLAKE2b-256 412cebb4c417eb82d1d9b9666875d051a9fce6ff1e0fe5d3e93019b94c61d29d

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: tornado-6.3b1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 427.9 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.3b1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 da8042571a5e354633c991241ac36d67103963d12e28b06fb47194f9808497a8
MD5 784d98905cb2bdc8ca9f739162fd427d
BLAKE2b-256 073db1f97ecf9a513181d45fd856c6bd42ea392720e3aa520ec797a673812aae

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-cp38-abi3-win32.whl.

File metadata

  • Download URL: tornado-6.3b1-cp38-abi3-win32.whl
  • Upload date:
  • Size: 427.4 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.3b1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 2116d0a06e24308a3af8d712bf9efd2c92cb4b6a649f356bafe03875e4216436
MD5 0a3478192eebab7fc3be96604caaf42c
BLAKE2b-256 a2f27a7a8af93c36ef38b8b3023a6e4c3ff42def0af69422caaa1082c0b457db

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-cp38-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for tornado-6.3b1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 fd8d87d90590b525c578b45bceae3dc1f3e22a754b63a906b4f0eda6a5ec8d73
MD5 b36b53875f58f93062c03361e2eddf7a
BLAKE2b-256 517c093c4ff36675d813e0b9d71235e651b90a1d266347855838796082f816b5

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-cp38-abi3-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for tornado-6.3b1-cp38-abi3-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 fe9c9f1b23c0c305e537c17f70e270c18b82389f5b851dd05f4fbd8fbeafa763
MD5 519bc823bd93ae01512dda9271c61191
BLAKE2b-256 98efca781fd49e09054c2aeedd5a284c7c99f90dc31800718d906613f14e126f

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-cp38-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for tornado-6.3b1-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 a8a351f67fe8e7e4ecdf24be3aa0d64fa5b05cd9dbbb830487d9afd7617555fa
MD5 12cf84da9a56a886d650a31940c4726a
BLAKE2b-256 0eba70e6ceb53f57aaa99072d05ad0b860ccc5eb969434a5632360a6ad788047

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3b1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6d548ed8a9fde2a8103fa8e769e64a3b367e38e68ea73cdbe5a3884db2659748
MD5 3f7133570ecb8c3fd50f0bea44d2f662
BLAKE2b-256 2b3c79d8ecf5d49d545125c7e0dfae060384ad3d231f0e515a71fc902d867c8e

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-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.3b1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec30ce8ae3159da4776620839038a963e1189849fe3d469a20bfa91324bb693f
MD5 16822cbb630df72cfbc8407f8adeee1b
BLAKE2b-256 a06d0bea39cc0d033e6d72e7cdc84f11adde9138ee869daeb0ba01b62f8cd6cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tornado-6.3b1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 aa82db7b378d1c36817adbba8f01e07e44456dea68a478f43ea33acda336f2f4
MD5 c3315af6ca9324699515bdfffb15d176
BLAKE2b-256 6a2c312378e8c09e1b533da1a6ba1a0660ee04883c9fbb6f4f07d2e04e960e2c

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-cp38-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tornado-6.3b1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 10a089735288ddf45353b98cf84f4b3951a1d426fd7c738fddd5b4ec484d6e36
MD5 17c9cddc3e50a7dbf907e1816bd899b4
BLAKE2b-256 aa02d9f3c4293b064fc5326babf2beba3e520aeda08715f675cc744033c8cb02

See more details on using hashes here.

File details

Details for the file tornado-6.3b1-cp38-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tornado-6.3b1-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fde4da7ed77136b005c0e9c03deb46af942f6d713f91d64ea4cc21d872f03f88
MD5 a1418471afed8e4fec1ef2d61eb03c67
BLAKE2b-256 af47065f02b69e560f154ed4b3770559a669f37d892b098d5e59b7fe8eb48f35

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