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.web
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.2-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f923aa6a47e133d1cf87d60700889d7eae68988704e20c75fb2d65677a8e4b |
|
MD5 | fbfeda9ec57d948991bdfdd3c2d807c1 |
|
BLAKE2b-256 | 1c26cbfa1103e74a02e09dd53291e419da3ad4c5b948f52aea5800e6671b56e0 |
Hashes for tornado-6.2-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d54d13ab8414ed44de07efecb97d4ef7c39f7438cf5e976ccd356bebb1b5fca |
|
MD5 | 6370f5b3906c3324231d775362a70c27 |
|
BLAKE2b-256 | f9516f63a166d9a3077be100cbb13dcbce434e5654daaaa7003b0a045b9f6edf |
Hashes for tornado-6.2-cp37-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fdfabffd8dfcb6cf887428849d30cf19a3ea34c2c248461e1f7d718ad30b66b |
|
MD5 | 39d12ace7e635dcd141bef3e298cbcb6 |
|
BLAKE2b-256 | 6008e630a348b34a9ddd640aed67dafc6f0df425d8ac07d2fa60288f38321c69 |
Hashes for tornado-6.2-cp37-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f8c52d219d4995388119af7ccaa0bcec289535747620116a58d830e7c25d8a8 |
|
MD5 | 107ec4be6ce89eab6e4959440d2f4376 |
|
BLAKE2b-256 | cda4761e45cea12b2af076d36240d464b371ab1231272948cdc49b7d81855c5c |
Hashes for tornado-6.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba09ef14ca9893954244fd872798b4ccb2367c165946ce2dd7376aebdde8e3ac |
|
MD5 | cd4e293874b29145ce44b39dcfef300c |
|
BLAKE2b-256 | 71ccc1342382484d0178a79029109c433e406a60095da1c3605ca966775a70e5 |
Hashes for tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3a2f5999215a3a06a4fc218026cd84c61b8b2b40ac5296a6db1f1451ef04c1e |
|
MD5 | 2dfcdce5e788260c852e18417a665361 |
|
BLAKE2b-256 | 19bbb6c3d1668d2b10ad38a584f3a1ec9737984e274f8b708e09fcbb96427f5c |
Hashes for tornado-6.2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8150f721c101abdef99073bf66d3903e292d851bee51910839831caba341a75 |
|
MD5 | 4305cf565cc4c329e6fcd623d31e9df1 |
|
BLAKE2b-256 | 1130ac70f5c5f03cf1cd0ae8199c80382387a9fe57e8f68853d5c9527c0219e5 |
Hashes for tornado-6.2-cp37-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87dcafae3e884462f90c90ecc200defe5e580a7fbbb4365eda7c7c1eb809ebc9 |
|
MD5 | 28c2c1f4711fc07efba8ad02d696956b |
|
BLAKE2b-256 | 5c0ccbc0a98f7b8ef833bcb13c58d35d09e2c288ae67a35af4c8960b88f99ae9 |
Hashes for tornado-6.2-cp37-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20f638fd8cc85f3cbae3c732326e96addff0a15e22d80f049e00121651e82e72 |
|
MD5 | 8559e1bcca4fd4e809e1be17192b7c28 |
|
BLAKE2b-256 | fbbd074254a55bfc82d7a1886abbd803600ef01cbd76ee66bc30307b2724130b |