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
Hashes for tornado-6.3.3-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d3c2fa10b5793da13c807e6fc38ff49a4f6e1e3868b0a6f4164768bb8e20f5 |
|
MD5 | be8dd8b2cafdb79c1a302a9c87205666 |
|
BLAKE2b-256 | 190765898bfa51d1a901f7798c36b3cf7c8d1df0c31a7178b79f75edf6d038cd |
Hashes for tornado-6.3.3-cp38-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ceca9500383fbdf33a98c0087cb975b2ef3bfb874cb35b8de8740cf7f41bd3 |
|
MD5 | 0bde36966919a50a84025a5a1601a479 |
|
BLAKE2b-256 | 759b5abb09e5b0e728295ab2830919447e99100ef57c7034b554c62b5aed093c |
Hashes for tornado-6.3.3-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc4444c0defcd3929d5c1eb5706cbe1b116e762ff3e0deca8b715d14bf6ec17 |
|
MD5 | 3b92ab8f0a58efd4f57121b95908bc7d |
|
BLAKE2b-256 | 77e73ad605fb700cfdca2b6c877713ca51239a5a11272e2340c79fc56849c5c4 |
Hashes for tornado-6.3.3-cp38-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d01abc57ea0dbb51ddfed477dfe22719d376119844e33c661d873bf9c0e4a16 |
|
MD5 | 51cc68ce6f7169bdb7129ab710f60942 |
|
BLAKE2b-256 | d707ffbdc4aa9f55eb006bb0a829b88fe264823df7d8fb9cce5f062720306c10 |
Hashes for tornado-6.3.3-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb917a50cd35882b57600709dd5421a418c29ddc852da8bcdab1f0db33406b0 |
|
MD5 | e328811ebb471f064318058b515d68ab |
|
BLAKE2b-256 | ec85c9e673e59931f793ef32ac8cd13f3f769b13c6ded2c14be9367020f947b7 |
Hashes for tornado-6.3.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd19ca6c16882e4d37368e0152f99c099bad93e0950ce55e71daed74045908f |
|
MD5 | 97c028abafc1320740a7647abacae988 |
|
BLAKE2b-256 | 10eddeb0f6880e0ed0d13e68316a49ceb65817241d80e28fe54c61db16aeb7fa |
Hashes for tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a8db65160a3c55d61839b7302a9a400074c9c753040455494e2af74e2501f2 |
|
MD5 | 821e0f82859255dcc04673f5cce11d5a |
|
BLAKE2b-256 | 66a5e6da56c03ff61200d5a43cfb75ab09316fc0836aa7ee26b4e9dcbfc3ae85 |
Hashes for tornado-6.3.3-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac51f42808cca9b3613f51ffe2a965c8525cb1b00b7b2d56828b8045354f76a |
|
MD5 | 7d7f1fae2e9a7fc4abcff5e0d3b53a71 |
|
BLAKE2b-256 | be49b60320323b7f5de3cd2fbd7717034eeb870cc5c7bfc641c85c0af9cfbc39 |
Hashes for tornado-6.3.3-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 805d507b1f588320c26f7f097108eb4023bbaa984d63176d1652e184ba24270a |
|
MD5 | f12208158a1a3e0a250d4b3f585e2c05 |
|
BLAKE2b-256 | 1317da173efad287dfe1f9dc93c9d6b2a5f9c4fed8ecb23966c9160014cfdd6e |
Hashes for tornado-6.3.3-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502fba735c84450974fec147340016ad928d29f1e91f49be168c0a4c18181e1d |
|
MD5 | cc94be706a8f0ecd6de40d831d335fcf |
|
BLAKE2b-256 | e8524775f3e6630bbc3808e678eb2294beeb654040cf45cc2b66cd6efdcf2571 |