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-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 720f53e6367b38190ae7fa398c25c086c69d88b3c6535bd6021a126b727fb5cd |
|
MD5 | 9f4373807e45f997340c012e4f0f7c30 |
|
BLAKE2b-256 | ed6b453e9026ffbc53282fbc502a2ad33a9687643d998b08d6ce3deafaf948b9 |
Hashes for tornado-6.3-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d349846931557b7ec92f224b5d598b160e2ba26ae1812480b42e9622c884bf7 |
|
MD5 | d3d6a81ae67cecd54e55b6ef094edcd9 |
|
BLAKE2b-256 | 988c0e3ad77e931ddcd1696b093f34e1007852043ffad2e151064964315c33ed |
Hashes for tornado-6.3-cp38-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9114a61a4588c09065b9996ae05462350d17160b92b9bf9a1e93689cc0424dc |
|
MD5 | f2660fcbc8b869a3d5e0d218dcb1d2a2 |
|
BLAKE2b-256 | e1c3b8156e72343136cdf661993c60fed85c77d30052c0ec776da33482b18c42 |
Hashes for tornado-6.3-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37b6a384d54ce6a31168d40ab21ad2591ddaf34973075cc0cad154402ecd9e8 |
|
MD5 | 27c0a69f0b5946f9d3872496c434fd0d |
|
BLAKE2b-256 | 9d70ccf601ddd8c7cdfc358aa186943290444318dbedc7dbd0e36f8c648b9a2a |
Hashes for tornado-6.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4546003dc8b5733489139d3bff5fa6a0211be505faf819bd9970e7c2b32e8122 |
|
MD5 | b18a56ca70df254a43774d7459a0bde3 |
|
BLAKE2b-256 | cea9585f530840efe17539ab6d985c2989d6952c1fd5e57e0e8605348d808b4d |
Hashes for tornado-6.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912df5712024564e362ecce43c8d5862e14c78c8dd3846c9d889d44fbd7f4951 |
|
MD5 | 323441235bd14ed509ce1a731f6017c8 |
|
BLAKE2b-256 | 004751366fdc68fbd552150f5e36582875c8c8cd14623f946ce37730418e3580 |
Hashes for tornado-6.3-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c659ab04d5aa477dbe44152c67d93f3ad3243b992d94f795ca1d5c73c37337ce |
|
MD5 | c2494578d5bec74cab32afb275119643 |
|
BLAKE2b-256 | 45b7e3e828f0cf11e4cca5e51badf3dcaf8a370e31e59fb8759a8ba877af9720 |
Hashes for tornado-6.3-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6164571f5b9f73143d1334df4584cb9ac86d20c461e17b6c189a19ead8bb93c1 |
|
MD5 | bc223f6dd888c895591d8b0b182a3f73 |
|
BLAKE2b-256 | 9684561d26caf2ced0404fddfb977642e56a3ca2f1e87b8b134ba08e88eb7c7e |
Hashes for tornado-6.3-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cfff1e9c15c79e106b8352269d201f8fc0815914a6260f3893ca18b724ea94b |
|
MD5 | b80ebc23c9cab8ff07e721461eb3d302 |
|
BLAKE2b-256 | 4a1dd00c7bcb9b710015c395273348f72abb54b62494a209dd85481c748c58cd |