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
File details
Details for the file tornado-6.4b1.tar.gz
.
File metadata
- Download URL: tornado-6.4b1.tar.gz
- Upload date:
- Size: 498.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40954904d2c9d3a2c0b76e27b854247995e3f320ba4d535be84d765c34187fd2 |
|
MD5 | 3beafd37c7fca996891806653995134b |
|
BLAKE2b-256 | 3b941bd544570c0ebaaebfd2640cf217336a651b41be307294b54ad531b3cbf7 |
File details
Details for the file tornado-6.4b1-cp38-abi3-win_amd64.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 436.4 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9f48b995986c8a516cffbd70b1c178b0a4ec2d863e260b18dd36715b2fde17 |
|
MD5 | c298f3eb404c6c846a3d3daea2427db5 |
|
BLAKE2b-256 | 36cb5e76e0a815445ea746e5c456b4eca283962e81d6f2c5086e78286cfea7f3 |
File details
Details for the file tornado-6.4b1-cp38-abi3-win32.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-win32.whl
- Upload date:
- Size: 435.9 kB
- Tags: CPython 3.8+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2a05cf38779ede40cfa02143e682eab4e5647076ac50f360dd0355f802913f |
|
MD5 | 00f4814079599d0d98a051de053492a8 |
|
BLAKE2b-256 | 3810f56129ae35ec4815d0340c6def409afb4743ce308989dc37b266dd17472e |
File details
Details for the file tornado-6.4b1-cp38-abi3-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 437.6 kB
- Tags: CPython 3.8+, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9243ba960f4f987a61ee72954e04d33f75a10a0ec3ad3cd73f79f1b658a904 |
|
MD5 | 1eaa2caa8c3a0159e3810f9ce9419f3a |
|
BLAKE2b-256 | 7f12f1976e16ad3a5738bd9799342acff899ff825963ebe1a98a291e2d5db21f |
File details
Details for the file tornado-6.4b1-cp38-abi3-musllinux_1_1_i686.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-musllinux_1_1_i686.whl
- Upload date:
- Size: 437.6 kB
- Tags: CPython 3.8+, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0ca6f001914f654ef1e5ae2ef1649a2d8a57a71f80089c08cc7a9324e3c0e2 |
|
MD5 | 659c74ed27988923b46cbe43b3d99753 |
|
BLAKE2b-256 | 7a65820103e182f52f439dde524ef1016d16aa6a06871274f1a042ac4c127e61 |
File details
Details for the file tornado-6.4b1-cp38-abi3-musllinux_1_1_aarch64.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-musllinux_1_1_aarch64.whl
- Upload date:
- Size: 437.7 kB
- Tags: CPython 3.8+, musllinux: musl 1.1+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3f11f58ccc670a662cb4e92c5f73fa93bf5d17bb2901e094eecf0e3b3c62ec0 |
|
MD5 | 59a68e70fbe6fbd8a491929429d1bd8f |
|
BLAKE2b-256 | 600a5e55a858b3a3f81c2a5b198e8e6acca8707608639f7a13fc680b6ee641cd |
File details
Details for the file tornado-6.4b1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 435.3 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a458c869ee68ec610fe047040c30638be8ad5db5b843d2168db428fc52967e28 |
|
MD5 | 64881f9ca59ad79d8f14461485d1fa4a |
|
BLAKE2b-256 | f95e856ce1e4ccaa1fcb7f89383ec830769fe6f697f7486c67b7e4913fdcbd10 |
File details
Details for the file tornado-6.4b1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 434.9 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec4bd9b4547a7acd6b2bee1bd7a4263cf02e637bc66cbb39741ec690088a7b7 |
|
MD5 | c32d96a7d8ff680b6adf8112d80104cd |
|
BLAKE2b-256 | c6af8a1fce66d1550c998d9878d87d754af8091006a73148cd6e4adfa8ec59dc |
File details
Details for the file tornado-6.4b1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 434.7 kB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca9b15d7c28784223fdf60c7221210569812163ec6df008a3d332feee84f50a |
|
MD5 | c42d3aab430f4810a43006d2f02776e1 |
|
BLAKE2b-256 | 5076102fe2365091b133723bbd43e8f3bb5851031bd1807a66ab14f496d3af2a |
File details
Details for the file tornado-6.4b1-cp38-abi3-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 430.6 kB
- Tags: CPython 3.8+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05264e909bd44e9303e81914310a25101034cb3341c798730efcc1c4c89b4d79 |
|
MD5 | b0f5f576440bc51d58162eac22aa7421 |
|
BLAKE2b-256 | b578534d099b9037182f078149e3bb2d32ff165731ccd6ca9692a6a295534308 |
File details
Details for the file tornado-6.4b1-cp38-abi3-macosx_10_9_universal2.whl
.
File metadata
- Download URL: tornado-6.4b1-cp38-abi3-macosx_10_9_universal2.whl
- Upload date:
- Size: 432.6 kB
- Tags: CPython 3.8+, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2524457d64e1284fe2c64e2c2a1f7c84cf148beff5023de7d7a4af38bcf1b36 |
|
MD5 | 47f0b9b44b394da2f501439ef041a914 |
|
BLAKE2b-256 | 95ff18a4d1c8022bcfa5234cdef306a6386ec165b7392b716f096afa40cd9bc5 |