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-4.5.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef073ac6180038ccf99411fe05ae9aafb675952a2c8db60592d5daf8401f803 |
|
MD5 | 88a1fe196dfdf6a24ab0d1f7e51e522d |
|
BLAKE2b-256 | 0a2901057551db50f718fda2afa0e42abdfccca4f8b18fa6163c59588ae8e991 |
Hashes for tornado-4.5.3-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab587996fe6fb9ce65abfda440f9b61e4f9f2cf921967723540679176915e4c3 |
|
MD5 | 8301f2b0f8b67029c0ccd879c3f218a2 |
|
BLAKE2b-256 | bb2e114e8a02438bc18417ce19e916107e359e49ad3538731e9e9726f741d766 |
Hashes for tornado-4.5.3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b36298e9f63f18cad97378db2222c0e0ca6a55f6304e605515e05a25483ed51a |
|
MD5 | 3e39a6518c1e305fb06ab2b0c110f0ad |
|
BLAKE2b-256 | 1a6379ba038d5e20f3f72ae8cf41decb36f638089af90c34807e3c6777e83cab |
Hashes for tornado-4.5.3-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b7ca81e18ba9ec3031a7ee73d4577ac21d41a0c9b775a9182f43301c3b5f8e |
|
MD5 | ba2f5d4f7f85d06eb431870e41deb27d |
|
BLAKE2b-256 | 0379a9839a803f24b36d98c5a0c56c2b73ee55483bfe39224789e873eb0d042f |