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.2-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c325e66c8123c606eea33084976c832aa4e766b7dff8aedd7587ea44a604cdf |
|
MD5 | 14f16e96163cea43faf8f665c2ff7dec |
|
BLAKE2b-256 | defab8b2ee2f528eedd03d98d49c76822f065f18e99f6f58c1e18fe5ed893098 |
Hashes for tornado-6.3.2-cp38-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7efcbcc30b7c654eb6a8c9c9da787a851c18f8ccd4a5a3a95b05c7accfa068d2 |
|
MD5 | eae7eb0b1a05410450514b7f79f8df69 |
|
BLAKE2b-256 | be95a4d0b991b64e910516d856c6c936df9e1f63dcc22eaaabfcef56d3af1a25 |
Hashes for tornado-6.3.2-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a0848f1aea0d196a7c4f6772197cbe2abc4266f836b0aac76947872cd29b411 |
|
MD5 | c4059ec3a2491277f48df61149d13046 |
|
BLAKE2b-256 | 306c710fcafd1acbdafd80465a8107a08e88233a3a6588e414716be37236c97a |
Hashes for tornado-6.3.2-cp38-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 834ae7540ad3a83199a8da8f9f2d383e3c3d5130a328889e4cc991acc81e87a0 |
|
MD5 | 0ed1f55908fcfe6f27155d49f99bd372 |
|
BLAKE2b-256 | f0840227a83ce4b3742f81b85f9f28e5942590ad79adafe5c75cc663267c3df2 |
Hashes for tornado-6.3.2-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e71c847a35f6e10ca3b5c2990a52ce38b233019d8e858b755ea6ce4dcdd19d |
|
MD5 | 416662dafacdadf60662a091a6f584e6 |
|
BLAKE2b-256 | 6615a69a97136df081414ffb8e923c8a17c3761e7d8ff665e0a7b428fefe09e3 |
Hashes for tornado-6.3.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2de14066c4a38b4ecbbcd55c5cc4b5340eb04f1c5e81da7451ef555859c833f |
|
MD5 | 95a8552f7f52949658fedea9890bf098 |
|
BLAKE2b-256 | 8de69627d4baa9db97b6b8757a42513e89b06410eae82a9bd7e2f298bb38a616 |
Hashes for tornado-6.3.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b17b1cf5f8354efa3d37c6e28fdfd9c1c1e5122f2cb56dac121ac61baa47cbe |
|
MD5 | 87e6870fcc44c6f22223c39e53d8c823 |
|
BLAKE2b-256 | 3151894f260c1380853cc268f661fe599a4523a47d07e867386abb58f1f11278 |
Hashes for tornado-6.3.2-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05615096845cf50a895026f749195bf0b10b8909f9be672f50b0fe69cba368e4 |
|
MD5 | 79f2e5fa0244b1e0ebbd3ba5c95ba896 |
|
BLAKE2b-256 | 35793237fab5374abea5473c1a4f850bf24168053d05dba002d4bbf14f86243c |
Hashes for tornado-6.3.2-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46a6ab20f5c7c1cb949c72c1994a4585d2eaa0be4853f50a03b5031e964fc7c |
|
MD5 | 7e8ea158938a59d916856293d23046f8 |
|
BLAKE2b-256 | f45699038d89642cdee805805cf2e86a28ecdddafb69be9cbb04214abb995082 |
Hashes for tornado-6.3.2-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c367ab6c0393d71171123ca5515c61ff62fe09024fa6bf299cd1339dc9456829 |
|
MD5 | c531af4b7c54d69e149647a59fbddf6f |
|
BLAKE2b-256 | 303c68e9896ce47dd4acdb7e27945046f139db2862d3b990c655a5c0627c9a05 |