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.1-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b24b8982ed444378d7f21d563f4180a2de31ced9d8d84443907a0a64da2072e7 |
|
MD5 | dafdfc3226d38b2ecf5d49e2737e5ed6 |
|
BLAKE2b-256 | d92f3f2f05e84a7aff787a96d5fb06821323feb370fe0baed4db6ea7b1088f32 |
Hashes for tornado-6.4.1-cp38-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9a566c40b89757c9aa8e6f032bcdb8ca8795d7c1a9762910c722b1635c9de4d |
|
MD5 | 9cf098a8739bf2f80b99b405f9516ae7 |
|
BLAKE2b-256 | 4b3ea8124c21cc0bbf144d7903d2a0cadab15cadaf683fa39a0f92bc567f0d4d |
Hashes for tornado-6.4.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a02a08cc7a9314b006f653ce40483b9b3c12cda222d6a46d4ac63bb6c9057698 |
|
MD5 | 8fd3415e5dfa74fd3a17fe31524e17c9 |
|
BLAKE2b-256 | 94d4f8ac1f5bd22c15fad3b527e025ce219bd526acdbd903f52053df2baecc8b |
Hashes for tornado-6.4.1-cp38-abi3-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 454db8a7ecfcf2ff6042dde58404164d969b6f5d58b926da15e6b23817950fc4 |
|
MD5 | 6e7afbb422507b394786f2a6ab1342c8 |
|
BLAKE2b-256 | 7163c8fc62745e669ac9009044b889fc531b6f88ac0f5f183cac79eaa950bb23 |
Hashes for tornado-6.4.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25486eb223babe3eed4b8aecbac33b37e3dd6d776bc730ca14e1bf93888b979f |
|
MD5 | 121b75230845144fef56e1c83eefc9ac |
|
BLAKE2b-256 | cf3f2c792e7afa7dd8b24fad7a2ed3c2f24a5ec5110c7b43a64cb6095cc106b8 |
Hashes for tornado-6.4.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2e20b9113cd7293f164dc46fffb13535266e713cdb87bd2d15ddb336e96cfc4 |
|
MD5 | 0d25dc546c303f73c9949d602ca200d1 |
|
BLAKE2b-256 | 13cf786b8f1e6fe1c7c675e79657448178ad65e41c1c9765ef82e7f6f765c4c5 |
Hashes for tornado-6.4.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613bf4ddf5c7a95509218b149b555621497a6cc0d46ac341b30bd9ec19eac7f3 |
|
MD5 | 8405ff29fe736a70549b7d4c84cf9b0c |
|
BLAKE2b-256 | 22d454f9d12668b58336bd30defe0307e6c61589a3e687b05c366f804b7faaf0 |
Hashes for tornado-6.4.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae50a504a740365267b2a8d1a90c9fbc86b780a39170feca9bcc1787ff80842 |
|
MD5 | 07cdf48c3adac5ab42dedacabeea208f |
|
BLAKE2b-256 | e48ea6ce4b8d5935558828b0f30f3afcb2d980566718837b3365d98e34f6067e |
Hashes for tornado-6.4.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d5ce3437e18a2b66fbadb183c1d3364fb03f2be71299e7d10dbeeb69f4b2a14 |
|
MD5 | 62a4018a7c602e16f108e90404931afc |
|
BLAKE2b-256 | 2e0f721e113a2fac2f1d7d124b3279a1da4c77622e104084f56119875019ffab |
Hashes for tornado-6.4.1-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 163b0aafc8e23d8cdc3c9dfb24c5368af84a81e3364745ccb4427669bf84aec8 |
|
MD5 | 76f4c1576bed0f053312eee59f9ac299 |
|
BLAKE2b-256 | 00d9c33be3c1a7564f7d42d87a8d186371a75fd142097076767a5c27da941fef |