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.1-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1285f0691143f7ab97150831455d4db17a267b59649f7bd9700282cba3d5e771 |
|
MD5 | c58672112aa9b8ca3d183a45f7e7c98f |
|
BLAKE2b-256 | fc98288c5f6c1db72fe82d831a21110c026316cd6fce5dc71c480006dc591b19 |
Hashes for tornado-6.3.1-cp38-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3455133b9ff262fd0a75630af0a8ee13564f25fb4fd3d9ce239b8a7d3d027bf8 |
|
MD5 | fea82bc9caa3ee4be3de8c199cdc8515 |
|
BLAKE2b-256 | 50efcbf3173524fa5bb4ce1c23e645f3d183be8135e5d3dcca06d22f5fb3301d |
Hashes for tornado-6.3.1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f569a35a8ec19bde53aa596952071f445da678ec8596af763b9b9ce07605e6 |
|
MD5 | 6392802e8a39c517cd4426b77b1050cd |
|
BLAKE2b-256 | da5cf0e800a88d9bf5424517826742c3c5c3c1e79f80f9da38759f8b67f80869 |
Hashes for tornado-6.3.1-cp38-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffdce65a281fd708da5a9def3bfb8f364766847fa7ed806821a69094c9629e8a |
|
MD5 | ecb923cc728ac0a7cdb95631c20b5418 |
|
BLAKE2b-256 | 0fb7766847a44120b977d841fd2cfa2e2deaa0794a6b85ef43dc2b46393223ee |
Hashes for tornado-6.3.1-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7117f3c7ba5d05813b17a1f04efc8e108a1b811ccfddd9134cc68553c414864 |
|
MD5 | cb7a9e9e7a2b00e8a28ce31170d19b6a |
|
BLAKE2b-256 | c2b6e4b85dcf88fdfb9fb681366a007476e4e41e258475ed253654a6da68a3bd |
Hashes for tornado-6.3.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9661aa8bc0e9d83d757cd95b6f6d1ece8ca9fd1ccdd34db2de381e25bf818233 |
|
MD5 | 73f599e0c142138b9cccfcb3415cba58 |
|
BLAKE2b-256 | ee818514d9ee4033c8bb287b6bd6891f9423ede41f0b9db2ddb1785158fc1e79 |
Hashes for tornado-6.3.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a27a1cfa9997923f80bdd962b3aab048ac486ad8cfb2f237964f8ab7f7eb824b |
|
MD5 | f029d95a02835d7441cd5248be5f909c |
|
BLAKE2b-256 | d49a13cc6a950c75c777c25ffe4dd736dad389fe90331d777bddad7c7277f78a |
Hashes for tornado-6.3.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c17e0cc396908a5e25dc8e9c5e4936e6dfd544c9290be48bd054c79bcad51e |
|
MD5 | dbf23536d1670e7099fdc8dd59fcce85 |
|
BLAKE2b-256 | 2cc34aa563209fa12b5eca16a9f265f3f5ae77216eef0da651039904f6f4bff7 |
Hashes for tornado-6.3.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4e7b956f9b5e6f9feb643ea04f07e7c6b49301e03e0023eedb01fa8cf52f579 |
|
MD5 | b4c2b713e2466c781e84adcf704b9b5e |
|
BLAKE2b-256 | 9a79fe95d56be4b3eefe4b76bf5cf96bbcd853b8d9aacc0a756a568d10214e8d |
Hashes for tornado-6.3.1-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db181eb3df8738613ff0a26f49e1b394aade05034b01200a63e9662f347d4415 |
|
MD5 | 082022f2df8135f71eb4314a6e18208a |
|
BLAKE2b-256 | e5a8a0e9479a0166b9bff3acc96c628b32e01a84c67200a0fd4bc392a34dba3f |