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.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35817031611d2c296c69e5023ea1f9b5720be803e3bb119464bb2a0405d5cd70 |
|
MD5 | 49de42fe78a403954b97a84807255cfe |
|
BLAKE2b-256 | a43978b68ebe0505a313128d23d336fdd3512b138f4ade936c6c7db9aeba1c1a |
Hashes for tornado-6.0.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a58f2d603476d5e462f7c28ca1dbb5ac7e51348b27a9cac849cdec3471101f8 |
|
MD5 | 7816b4dd3f519084e04dde6d97454042 |
|
BLAKE2b-256 | 85e6238055982a4f039363622c92989997857265223e5a7ac13d5a3775c36786 |
Hashes for tornado-6.0.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f93243cd46dd398e5d2bbdd75539564d1f13f25d704cfc7541db74066d6695 |
|
MD5 | 0c96a2cc477c8682d576c0b29fc56790 |
|
BLAKE2b-256 | 7d8da1c2c9e3051f39a3ecab15be70a04379e95a5926d11219fd881807bb5728 |
Hashes for tornado-6.0.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34e59401afcecf0381a28228daad8ed3275bcb726810654612d5e9c001f421b7 |
|
MD5 | 18d3261aeffad76c5cc1cf67227094a8 |
|
BLAKE2b-256 | f8e0765d7efa0254238a4c8e10b0d82367870fba9b162ff41a0b06967517a68b |
Hashes for tornado-6.0.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666b335cef5cc2759c21b7394cff881f71559aaf7cb8c4458af5bb6cb7275b47 |
|
MD5 | 19dfb5323def061c1637fd1ffa11c47f |
|
BLAKE2b-256 | 513265032f1e08c83375d00366aa0e4bcb46de5280885a840660455d746d8eba |
Hashes for tornado-6.0.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81203efb26debaaef7158187af45bc440796de9fb1df12a75b65fae11600a255 |
|
MD5 | 8192462fd60bd08b64c205b8d69d8875 |
|
BLAKE2b-256 | 30cd18458058b5cbce728a5172dcdf51e61362551507f8ca333284368f588db3 |