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.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b40720a7b164848ca5c51fab0feac7e3717adcb87bec77f81f7809b72bf7f56 |
|
MD5 | 1bd43a7756d3f3cbfc6fe12e4c658922 |
|
BLAKE2b-256 | cbec0dee45e060e9b424664cbec81b32eb3adde0804e1fe7bd5acb64e1775ea1 |
Hashes for tornado-4.5.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66f47db4753c6f6849af1f82f04bdc7d2c1f5d64b7cc11ddd17230295c8887f |
|
MD5 | e4ca216975fb50807a7bbc4525b9c3a9 |
|
BLAKE2b-256 | 730b55da7f11c53d849c972453c9c7099ccffa70687755464343557bacd7e03d |
Hashes for tornado-4.5.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f109c066411c44bcd3bc877267b45feb8e29092ede59dd0582739444c2344b00 |
|
MD5 | fc11fbd9bcfbf124e0fc5a24b0b8d406 |
|
BLAKE2b-256 | 7da6639222363922e14081082227aacba0ba86739b7302fab6e63f96ba4d418b |
Hashes for tornado-4.5.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62a5d4c66bf4e86d25a02e9de97293860b59e61f9c465e80336ba0fc308aacf6 |
|
MD5 | f9b6802f08b0180ff7df301db00871d9 |
|
BLAKE2b-256 | 3964eaaeaec2e2ba3a31f9dd4cefe1e25e35127278b3c9220a04944bfd10bbbf |