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.4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a8c1f6e98882e030a206be0f06553a869de758ee158726d1c1ec63eae9df964 |
|
MD5 | bfed6ce743c3586301d77fac616aa8c8 |
|
BLAKE2b-256 | e1c06a232d97fac7811f35e534c8fc7497aee04f8557e5e8a2fb29b0d2b1e33f |
Hashes for tornado-4.4-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9f414658430d04fc470039de838bddf2371cbdc5238cf9debad11195cdfb2db |
|
MD5 | 6452bc2fd170228cebb36432e68c1fe1 |
|
BLAKE2b-256 | 03bd1e86e515f0366399f28a5886cce47fb2090a30d4dba5efead8baf3455905 |