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.4-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10aeaa8006333433da48dec9fe417877f8bcc21f48dda8d661ae79da357b2a63 |
|
MD5 | 452fbf5e2ed7f07363f2ab6f68164a7a |
|
BLAKE2b-256 | af2b4649926f17c1634d21c584cc855b5c5021f148b934919d26932a595bc034 |
Hashes for tornado-6.4-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ddfc23a0e03ef2df1c1397d859868d158c8276a0603b96cf86892bff58149f |
|
MD5 | 4f0da3376efa740f0b0671b41e645623 |
|
BLAKE2b-256 | 25a31025f561b87b3cca6f66da149ba7ce4c2bb18d7bd6b84cd5a13a274e9dd3 |
Hashes for tornado-6.4-cp38-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b84956273fbd73420e6d4b8d5ccbe913c65d31351b4c004ae362eba06e1f78 |
|
MD5 | d58562ac2c252931b231aed8a38980a4 |
|
BLAKE2b-256 | e240bcf0af5a29a850bf5ad7f79ef51c054f99e18d9cdf4efd6eeb0df819641f |
Hashes for tornado-6.4-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd03192e287fbd0899dd8f81c6fb9cbbc69194d2074b38f384cb6fa72b80e9c2 |
|
MD5 | 36caf25c1418df10ec4ddf8e9d7b9a39 |
|
BLAKE2b-256 | 66e5466aa544e0cbae9b0ece79cd42db257fa7bfa3197c853e3f7921b3963190 |
Hashes for tornado-6.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7894c581ecdcf91666a0912f18ce5e757213999e183ebfc2c3fdbf4d5bd764e |
|
MD5 | 476903b2f4863cf7cad57fcda8a1f193 |
|
BLAKE2b-256 | 62e53ee2ba523a13bae5c17d1658580d13597116c1639374ca5033d58fd04724 |
Hashes for tornado-6.4-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0251554cdd50b4b44362f73ad5ba7126fc5b2c2895cc62b14a1c2d7ea32f212 |
|
MD5 | 7f18764eb1c0cf74514cf21134ccf034 |
|
BLAKE2b-256 | 9f1211d0a757bb67278d3380d41955ae98527d5ad18330b2edbdc8de222b569b |
Hashes for tornado-6.4-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e43bc2e5370a6a8e413e1e1cd0c91bedc5bd62a74a532371042a18ef19e10579 |
|
MD5 | 996bb7b9956a40f7a3164aff10514e06 |
|
BLAKE2b-256 | 0e76aca8c8726d045c1c7b093cca3c5551e8df444ef74ba0dfd1f205da1f95db |
Hashes for tornado-6.4-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27787de946a9cffd63ce5814c33f734c627a87072ec7eed71f7fc4417bb16263 |
|
MD5 | 933aa5980100590090db26e655d35f6f |
|
BLAKE2b-256 | 347ae7ec972db24513ea69ac7132c1a5eef62309dc978566a4afffa314417a45 |
Hashes for tornado-6.4-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ccefc7d8211e5a7f9e8bc3f9e5b0ad6262ba2fbb683a6443ecc804e5224ce0 |
|
MD5 | ac2d5f97699149e1a637fc870a983608 |
|
BLAKE2b-256 | 4a2e3ba930e3af171847d610e07ae878e04fcb7e4d7822f1a2d29a27b128ea24 |