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 tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
def make_app():
return tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
app = make_app()
app.listen(8888)
tornado.ioloop.IOLoop.current().start()
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 http://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.0.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c58d56003daf1b616336781b26d184023ea4af13ae143d9dda65e31e534940b9 |
|
MD5 | 8058233ac2a78e857bb8fefce69281e7 |
|
BLAKE2b-256 | 0c0448f7aca638106a57a94f9f3921fae27a9010076bccc9d31eef99c62ffaf5 |
Hashes for tornado-6.0.4-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22aed82c2ea340c3771e3babc5ef220272f6fd06b5108a53b4976d0d722bcd52 |
|
MD5 | 5de9cd43b7162fa544d682c3e42942fe |
|
BLAKE2b-256 | 303891349845eea916575ddbe59a08866de3661b1e4564d42a845545066d51c4 |
Hashes for tornado-6.0.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5618f72e947533832cbc3dec54e1dffc1747a5cb17d1fd91577ed14fa0dc081b |
|
MD5 | 9373674868c6371c854dfdffe60673b4 |
|
BLAKE2b-256 | 2cbfe5431e00de9eb08f0aed3f8aa1c9bc3e0514bb604aba2f73dfb2d19f507a |
Hashes for tornado-6.0.4-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c027eb2a393d964b22b5c154d1a23a5f8727db6fda837118a776b29e2b8ebc6 |
|
MD5 | 61db1027c97a93b51189b09a83aa0644 |
|
BLAKE2b-256 | 9d8088df8bf43b04643715d58e12dc9d2bdc5fa637d6f9333def47f983aab993 |
Hashes for tornado-6.0.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c952975c8ba74f546ae6de2e226ab3cc3cc11ae47baf607459a6728585bb542a |
|
MD5 | 3d2dd0ba353282391dc343569a2d1ba5 |
|
BLAKE2b-256 | 8eeaf7f8913dfb5eb5b915228a5ba44de8335fccb1fa38fb56b596d6dfd98290 |
Hashes for tornado-6.0.4-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f6a07e62e799be5d2330e68d808c8ac41d4a259b9cea61da4101b83cb5dc673 |
|
MD5 | 1f834aab1d92b2a4ab70f1f946bbc0ef |
|
BLAKE2b-256 | 4f4e184e97a06cc21efed6de3374e3c653d31a6ce7f4d2d1cb2e3573b79f809a |
Hashes for tornado-6.0.4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98232a3ac391f5faea6821b53db8db461157baa788f5d6222a193e9456e1740 |
|
MD5 | 7ab7824580876340944a6e52ccc04f80 |
|
BLAKE2b-256 | ce27aa9649319dd1f6f77b03e375a41da9c8ade0745307a53e76eb1dba9016d4 |
Hashes for tornado-6.0.4-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5217e601700f24e966ddab689f90b7ea4bd91ff3357c3600fa1045e26d68e55d |
|
MD5 | a7b88c772ba5034939cc14b1266ad401 |
|
BLAKE2b-256 | f3d1c876a9de6f5a35bbb583331fc23a9f85321dfbe6548667d3da9e7911bc65 |