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.4b1-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9f48b995986c8a516cffbd70b1c178b0a4ec2d863e260b18dd36715b2fde17 |
|
MD5 | c298f3eb404c6c846a3d3daea2427db5 |
|
BLAKE2b-256 | 36cb5e76e0a815445ea746e5c456b4eca283962e81d6f2c5086e78286cfea7f3 |
Hashes for tornado-6.4b1-cp38-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2a05cf38779ede40cfa02143e682eab4e5647076ac50f360dd0355f802913f |
|
MD5 | 00f4814079599d0d98a051de053492a8 |
|
BLAKE2b-256 | 3810f56129ae35ec4815d0340c6def409afb4743ce308989dc37b266dd17472e |
Hashes for tornado-6.4b1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9243ba960f4f987a61ee72954e04d33f75a10a0ec3ad3cd73f79f1b658a904 |
|
MD5 | 1eaa2caa8c3a0159e3810f9ce9419f3a |
|
BLAKE2b-256 | 7f12f1976e16ad3a5738bd9799342acff899ff825963ebe1a98a291e2d5db21f |
Hashes for tornado-6.4b1-cp38-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0ca6f001914f654ef1e5ae2ef1649a2d8a57a71f80089c08cc7a9324e3c0e2 |
|
MD5 | 659c74ed27988923b46cbe43b3d99753 |
|
BLAKE2b-256 | 7a65820103e182f52f439dde524ef1016d16aa6a06871274f1a042ac4c127e61 |
Hashes for tornado-6.4b1-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3f11f58ccc670a662cb4e92c5f73fa93bf5d17bb2901e094eecf0e3b3c62ec0 |
|
MD5 | 59a68e70fbe6fbd8a491929429d1bd8f |
|
BLAKE2b-256 | 600a5e55a858b3a3f81c2a5b198e8e6acca8707608639f7a13fc680b6ee641cd |
Hashes for tornado-6.4b1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a458c869ee68ec610fe047040c30638be8ad5db5b843d2168db428fc52967e28 |
|
MD5 | 64881f9ca59ad79d8f14461485d1fa4a |
|
BLAKE2b-256 | f95e856ce1e4ccaa1fcb7f89383ec830769fe6f697f7486c67b7e4913fdcbd10 |
Hashes for tornado-6.4b1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec4bd9b4547a7acd6b2bee1bd7a4263cf02e637bc66cbb39741ec690088a7b7 |
|
MD5 | c32d96a7d8ff680b6adf8112d80104cd |
|
BLAKE2b-256 | c6af8a1fce66d1550c998d9878d87d754af8091006a73148cd6e4adfa8ec59dc |
Hashes for tornado-6.4b1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca9b15d7c28784223fdf60c7221210569812163ec6df008a3d332feee84f50a |
|
MD5 | c42d3aab430f4810a43006d2f02776e1 |
|
BLAKE2b-256 | 5076102fe2365091b133723bbd43e8f3bb5851031bd1807a66ab14f496d3af2a |
Hashes for tornado-6.4b1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05264e909bd44e9303e81914310a25101034cb3341c798730efcc1c4c89b4d79 |
|
MD5 | b0f5f576440bc51d58162eac22aa7421 |
|
BLAKE2b-256 | b578534d099b9037182f078149e3bb2d32ff165731ccd6ca9692a6a295534308 |
Hashes for tornado-6.4b1-cp38-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2524457d64e1284fe2c64e2c2a1f7c84cf148beff5023de7d7a4af38bcf1b36 |
|
MD5 | 47f0b9b44b394da2f501439ef041a914 |
|
BLAKE2b-256 | 95ff18a4d1c8022bcfa5234cdef306a6386ec165b7392b716f096afa40cd9bc5 |