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
Metadata
Release files for tornado 6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tornado-6.2.tar.gz | 504.8 kB | Details |
Built distributions (wheels)
Total release size: 4.7 MB
Release files / tornado-6.2.tar.gz
| Download URL | tornado-6.2.tar.gz |
|---|---|
| Size | 504.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b630419bde84ec666bfd7ea0a4cb2a8a651c2d5cccdbdd1972a0c859dfc3c13
|
|
BLAKE2b-256 checksum How to use checksums |
f39e225a41452f2d9418d89be5e32cf824c84fe1e639d350d6e8d49db5b7f73a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-win_amd64.whl
| Download URL | tornado-6.2-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 425.3 kB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e5f923aa6a47e133d1cf87d60700889d7eae68988704e20c75fb2d65677a8e4b
|
|
BLAKE2b-256 checksum How to use checksums |
1c26cbfa1103e74a02e09dd53291e419da3ad4c5b948f52aea5800e6671b56e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-win32.whl
| Download URL | tornado-6.2-cp37-abi3-win32.whl |
|---|---|
| Size | 424.9 kB |
| Tags | CPython 3.7 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
5c87076709343557ef8032934ce5f637dbb552efa7b21d08e89ae7619ed0eb23
|
|
BLAKE2b-256 checksum How to use checksums |
ec0193e63530851ba8ef9685f1a9b91e324b28d28323a6b67400114ea65c5110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-musllinux_1_1_x86_64.whl
| Download URL | tornado-6.2-cp37-abi3-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 426.5 kB |
| Tags | CPython 3.7 Linux musl 1.1+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1d54d13ab8414ed44de07efecb97d4ef7c39f7438cf5e976ccd356bebb1b5fca
|
|
BLAKE2b-256 checksum How to use checksums |
f9516f63a166d9a3077be100cbb13dcbce434e5654daaaa7003b0a045b9f6edf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-musllinux_1_1_i686.whl
| Download URL | tornado-6.2-cp37-abi3-musllinux_1_1_i686.whl |
|---|---|
| Size | 426.5 kB |
| Tags | CPython 3.7 Linux musl 1.1+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
6fdfabffd8dfcb6cf887428849d30cf19a3ea34c2c248461e1f7d718ad30b66b
|
|
BLAKE2b-256 checksum How to use checksums |
6008e630a348b34a9ddd640aed67dafc6f0df425d8ac07d2fa60288f38321c69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-musllinux_1_1_aarch64.whl
| Download URL | tornado-6.2-cp37-abi3-musllinux_1_1_aarch64.whl |
|---|---|
| Size | 426.5 kB |
| Tags | CPython 3.7 Linux musl 1.1+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5f8c52d219d4995388119af7ccaa0bcec289535747620116a58d830e7c25d8a8
|
|
BLAKE2b-256 checksum How to use checksums |
cda4761e45cea12b2af076d36240d464b371ab1231272948cdc49b7d81855c5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | tornado-6.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 424.4 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
ba09ef14ca9893954244fd872798b4ccb2367c165946ce2dd7376aebdde8e3ac
|
|
BLAKE2b-256 checksum How to use checksums |
71ccc1342382484d0178a79029109c433e406a60095da1c3605ca966775a70e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 424.0 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d3a2f5999215a3a06a4fc218026cd84c61b8b2b40ac5296a6db1f1451ef04c1e
|
|
BLAKE2b-256 checksum How to use checksums |
19bbb6c3d1668d2b10ad38a584f3a1ec9737984e274f8b708e09fcbb96427f5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | tornado-6.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 423.8 kB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
b8150f721c101abdef99073bf66d3903e292d851bee51910839831caba341a75
|
|
BLAKE2b-256 checksum How to use checksums |
1130ac70f5c5f03cf1cd0ae8199c80382387a9fe57e8f68853d5c9527c0219e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-macosx_10_9_x86_64.whl
| Download URL | tornado-6.2-cp37-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 419.7 kB |
| Tags | CPython 3.7 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
87dcafae3e884462f90c90ecc200defe5e580a7fbbb4365eda7c7c1eb809ebc9
|
|
BLAKE2b-256 checksum How to use checksums |
5c0ccbc0a98f7b8ef833bcb13c58d35d09e2c288ae67a35af4c8960b88f99ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tornado-6.2-cp37-abi3-macosx_10_9_universal2.whl
| Download URL | tornado-6.2-cp37-abi3-macosx_10_9_universal2.whl |
|---|---|
| Size | 421.8 kB |
| Tags | CPython 3.7 abi3 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
20f638fd8cc85f3cbae3c732326e96addff0a15e22d80f049e00121651e82e72
|
|
BLAKE2b-256 checksum How to use checksums |
fbbd074254a55bfc82d7a1886abbd803600ef01cbd76ee66bc30307b2724130b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|