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.3b1-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da8042571a5e354633c991241ac36d67103963d12e28b06fb47194f9808497a8 |
|
MD5 | 784d98905cb2bdc8ca9f739162fd427d |
|
BLAKE2b-256 | 073db1f97ecf9a513181d45fd856c6bd42ea392720e3aa520ec797a673812aae |
Hashes for tornado-6.3b1-cp38-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2116d0a06e24308a3af8d712bf9efd2c92cb4b6a649f356bafe03875e4216436 |
|
MD5 | 0a3478192eebab7fc3be96604caaf42c |
|
BLAKE2b-256 | a2f27a7a8af93c36ef38b8b3023a6e4c3ff42def0af69422caaa1082c0b457db |
Hashes for tornado-6.3b1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd8d87d90590b525c578b45bceae3dc1f3e22a754b63a906b4f0eda6a5ec8d73 |
|
MD5 | b36b53875f58f93062c03361e2eddf7a |
|
BLAKE2b-256 | 517c093c4ff36675d813e0b9d71235e651b90a1d266347855838796082f816b5 |
Hashes for tornado-6.3b1-cp38-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe9c9f1b23c0c305e537c17f70e270c18b82389f5b851dd05f4fbd8fbeafa763 |
|
MD5 | 519bc823bd93ae01512dda9271c61191 |
|
BLAKE2b-256 | 98efca781fd49e09054c2aeedd5a284c7c99f90dc31800718d906613f14e126f |
Hashes for tornado-6.3b1-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a351f67fe8e7e4ecdf24be3aa0d64fa5b05cd9dbbb830487d9afd7617555fa |
|
MD5 | 12cf84da9a56a886d650a31940c4726a |
|
BLAKE2b-256 | 0eba70e6ceb53f57aaa99072d05ad0b860ccc5eb969434a5632360a6ad788047 |
Hashes for tornado-6.3b1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d548ed8a9fde2a8103fa8e769e64a3b367e38e68ea73cdbe5a3884db2659748 |
|
MD5 | 3f7133570ecb8c3fd50f0bea44d2f662 |
|
BLAKE2b-256 | 2b3c79d8ecf5d49d545125c7e0dfae060384ad3d231f0e515a71fc902d867c8e |
Hashes for tornado-6.3b1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec30ce8ae3159da4776620839038a963e1189849fe3d469a20bfa91324bb693f |
|
MD5 | 16822cbb630df72cfbc8407f8adeee1b |
|
BLAKE2b-256 | a06d0bea39cc0d033e6d72e7cdc84f11adde9138ee869daeb0ba01b62f8cd6cf |
Hashes for tornado-6.3b1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa82db7b378d1c36817adbba8f01e07e44456dea68a478f43ea33acda336f2f4 |
|
MD5 | c3315af6ca9324699515bdfffb15d176 |
|
BLAKE2b-256 | 6a2c312378e8c09e1b533da1a6ba1a0660ee04883c9fbb6f4f07d2e04e960e2c |
Hashes for tornado-6.3b1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10a089735288ddf45353b98cf84f4b3951a1d426fd7c738fddd5b4ec484d6e36 |
|
MD5 | 17c9cddc3e50a7dbf907e1816bd899b4 |
|
BLAKE2b-256 | aa02d9f3c4293b064fc5326babf2beba3e520aeda08715f675cc744033c8cb02 |
Hashes for tornado-6.3b1-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fde4da7ed77136b005c0e9c03deb46af942f6d713f91d64ea4cc21d872f03f88 |
|
MD5 | a1418471afed8e4fec1ef2d61eb03c67 |
|
BLAKE2b-256 | af47065f02b69e560f154ed4b3770559a669f37d892b098d5e59b7fe8eb48f35 |