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.2b2-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bbb616f66151434626338a6b54d1e7a2c18bb41ca1dbb048872643746c1ff51 |
|
MD5 | d1bb242e17ca4789a50d1ec379c73d51 |
|
BLAKE2b-256 | e1e7ecd19929aa6aa368c230592f0f3f184a573702dbf9de740ba106bd8758b9 |
Hashes for tornado-6.2b2-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e671f3d5c6fb78555f445b30ac1511b001d1fab076cce9583601c5cd1b30320 |
|
MD5 | 0ea4690ace155de03d99268bab48a8cf |
|
BLAKE2b-256 | d85716f4eaec85fb1124591e27dcabc8ed968b188d0b44f55c6d1a3a20f2fdbf |
Hashes for tornado-6.2b2-cp37-abi3-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e01ca81f95dade11aca183f1fc18b5b3b96e4d290e6e3f12e1433995691b7f28 |
|
MD5 | b15291ec774e6311bd78a0beaa32dadc |
|
BLAKE2b-256 | e350922113a39280dbf0c5b0da2f1060ecaa255a5ec5702e4d349b6be74e6f4b |
Hashes for tornado-6.2b2-cp37-abi3-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9adefa1170588f9751986272a06a5627b7218d3b9c032195a09e08c1aa1cfeed |
|
MD5 | b83dbecbcac8996ddb37ac5742a5d5ae |
|
BLAKE2b-256 | 4c182dbba4d87f6fa62248a90bad250c702023706984c0e87d4f90863fbc72b8 |
Hashes for tornado-6.2b2-cp37-abi3-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f263a3c7750ad582effa9f120dc7d3550b4d0d89b5b070814d2336866a27415 |
|
MD5 | 6f194dfc5bf1a700252e4e621f5282fe |
|
BLAKE2b-256 | 8b8e0a6c159a974e8b364337d441004f0c975d2124c90a1073e31c815d1319c0 |
Hashes for tornado-6.2b2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3aa2c59daf97f932e5a42e5f4b90a67bb5c79a447487c47a9f1be6873c3f0d1 |
|
MD5 | d4e5c57252bcc515a1771c4cb4798b85 |
|
BLAKE2b-256 | ad7073bfa170aa662e48ba475142d3aac68f9a7e43d63af2cf919bc9e685dc71 |
Hashes for tornado-6.2b2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ed4e15f86166a65ccd08ce96c739a0ee61783f67d996bc74bf66391ed2a604 |
|
MD5 | 5228e1771833be34476213da97b2e59d |
|
BLAKE2b-256 | 4eb978e0ce597489a0d9f58c09390ab1c2bc9aa614106532036991634b167469 |
Hashes for tornado-6.2b2-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56c542350065357eaf9de0ffaad2489e50da80770625c1de2224c7796c57a992 |
|
MD5 | 7060753fc88151ba05a70c331bc6925d |
|
BLAKE2b-256 | 6d71f580fde2b3573ad3c5bf071bdab7b62c056f2a9f02a49b4b7d9e6759e7b7 |
Hashes for tornado-6.2b2-cp37-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14a0c18bef184c270ca01c33e2a5d9b46773cbfc693e18f71cbb4acae1d9b3cd |
|
MD5 | e889dcebd022ab69e91868285b02fffc |
|
BLAKE2b-256 | 012385145333d4310f9e404c6605bf955df3205e0c3e22f6166df469256481b5 |
Hashes for tornado-6.2b2-cp37-abi3-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f159c8792daa7bdf2da09fd8814812725372735e75c0280188ed7c81df693a1 |
|
MD5 | 1b9177741fc93cbead917c576992886d |
|
BLAKE2b-256 | 890939e97f08a209a815208f523f58dfdf61b19e90a846fdd4d2f7a5ac2744d6 |