Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Project description
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
Built Distributions
File details
Details for the file tornado-6.3.tar.gz
.
File metadata
- Download URL: tornado-6.3.tar.gz
- Upload date:
- Size: 508.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d68f3192936ff2c4add04dc21a436a43b4408d466746b78bb2b9d0a53a18683f |
|
MD5 | 40921ee53150eacfdfe5b67aeef2ef40 |
|
BLAKE2b-256 | 15e688afe8318b6aaff1e6c60b3d4b94c9b68708cc0a5ba2f6dae5cbc288ce69 |
File details
Details for the file tornado-6.3-cp38-abi3-win_amd64.whl
.
File metadata
- Download URL: tornado-6.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 720f53e6367b38190ae7fa398c25c086c69d88b3c6535bd6021a126b727fb5cd |
|
MD5 | 9f4373807e45f997340c012e4f0f7c30 |
|
BLAKE2b-256 | ed6b453e9026ffbc53282fbc502a2ad33a9687643d998b08d6ce3deafaf948b9 |
File details
Details for the file tornado-6.3-cp38-abi3-win32.whl
.
File metadata
- Download URL: tornado-6.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7b737e18f701de3e4a3b0824260b4d740e4d60607b8089bb80e80ffd464780e |
|
MD5 | 0325b7a7d6f1227178597e1c21dd7d1a |
|
BLAKE2b-256 | adc5020793aab4933c7ab03cf8ac1eb6d5c627426739b5e6d4fe7acc94ef7528 |
File details
Details for the file tornado-6.3-cp38-abi3-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 429.2 kB
- Tags: CPython 3.8+, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d349846931557b7ec92f224b5d598b160e2ba26ae1812480b42e9622c884bf7 |
|
MD5 | d3d6a81ae67cecd54e55b6ef094edcd9 |
|
BLAKE2b-256 | 988c0e3ad77e931ddcd1696b093f34e1007852043ffad2e151064964315c33ed |
File details
Details for the file tornado-6.3-cp38-abi3-musllinux_1_1_i686.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-musllinux_1_1_i686.whl
- Upload date:
- Size: 429.2 kB
- Tags: CPython 3.8+, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9114a61a4588c09065b9996ae05462350d17160b92b9bf9a1e93689cc0424dc |
|
MD5 | f2660fcbc8b869a3d5e0d218dcb1d2a2 |
|
BLAKE2b-256 | e1c3b8156e72343136cdf661993c60fed85c77d30052c0ec776da33482b18c42 |
File details
Details for the file tornado-6.3-cp38-abi3-musllinux_1_1_aarch64.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-musllinux_1_1_aarch64.whl
- Upload date:
- Size: 429.2 kB
- Tags: CPython 3.8+, musllinux: musl 1.1+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37b6a384d54ce6a31168d40ab21ad2591ddaf34973075cc0cad154402ecd9e8 |
|
MD5 | 27c0a69f0b5946f9d3872496c434fd0d |
|
BLAKE2b-256 | 9d70ccf601ddd8c7cdfc358aa186943290444318dbedc7dbd0e36f8c648b9a2a |
File details
Details for the file tornado-6.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 426.8 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4546003dc8b5733489139d3bff5fa6a0211be505faf819bd9970e7c2b32e8122 |
|
MD5 | b18a56ca70df254a43774d7459a0bde3 |
|
BLAKE2b-256 | cea9585f530840efe17539ab6d985c2989d6952c1fd5e57e0e8605348d808b4d |
File details
Details for the file tornado-6.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 426.4 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912df5712024564e362ecce43c8d5862e14c78c8dd3846c9d889d44fbd7f4951 |
|
MD5 | 323441235bd14ed509ce1a731f6017c8 |
|
BLAKE2b-256 | 004751366fdc68fbd552150f5e36582875c8c8cd14623f946ce37730418e3580 |
File details
Details for the file tornado-6.3-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 426.2 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c659ab04d5aa477dbe44152c67d93f3ad3243b992d94f795ca1d5c73c37337ce |
|
MD5 | c2494578d5bec74cab32afb275119643 |
|
BLAKE2b-256 | 45b7e3e828f0cf11e4cca5e51badf3dcaf8a370e31e59fb8759a8ba877af9720 |
File details
Details for the file tornado-6.3-cp38-abi3-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 422.1 kB
- Tags: CPython 3.8+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6164571f5b9f73143d1334df4584cb9ac86d20c461e17b6c189a19ead8bb93c1 |
|
MD5 | bc223f6dd888c895591d8b0b182a3f73 |
|
BLAKE2b-256 | 9684561d26caf2ced0404fddfb977642e56a3ca2f1e87b8b134ba08e88eb7c7e |
File details
Details for the file tornado-6.3-cp38-abi3-macosx_10_9_universal2.whl
.
File metadata
- Download URL: tornado-6.3-cp38-abi3-macosx_10_9_universal2.whl
- Upload date:
- Size: 424.1 kB
- Tags: CPython 3.8+, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cfff1e9c15c79e106b8352269d201f8fc0815914a6260f3893ca18b724ea94b |
|
MD5 | b80ebc23c9cab8ff07e721461eb3d302 |
|
BLAKE2b-256 | 4a1dd00c7bcb9b710015c395273348f72abb54b62494a209dd85481c748c58cd |