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-5.0.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c050089173c2e9272244bccfb6a8615fb9e53b79420a5551acfa76094ecc3111 |
|
MD5 | e4e71239ab335640cd3c01d068c6c5ed |
|
BLAKE2b-256 | 3d4a5b321dc86dec06205cfae8e06fd9fa78be57e199b8665dc152c56f7d5b53 |
Hashes for tornado-5.0.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408d129e9d13d3c55aa73f8084aa97d5f90ed84132e38d6932e63a67d5bec563 |
|
MD5 | c57c4fa4c70ca12fff8490fc6f8c56e5 |
|
BLAKE2b-256 | 9bafddd8ba22a47979b5a6538fd712d1f647e23c5590165d927d82ebddf8d457 |
Hashes for tornado-5.0.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba9fbb249ac5390bff8a1d6aa4b844fd400701069bda7d2e380dfe2217895101 |
|
MD5 | 9677fa9d2dbbcfbada5120a7de805e83 |
|
BLAKE2b-256 | fc49212a0ec5b9aad7629c9b25436e256ef3797b8fe06c4b190fa22e9589e47f |
Hashes for tornado-5.0.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ce0282cce70df9045e515f578c78f1ebc35dcabe1d70f800c3583ebda7f5f5 |
|
MD5 | e6fa319ec02ada40cf430811c0828034 |
|
BLAKE2b-256 | 1a72426796781f8afc76da366365c473e4ef5b0dd1d70d2616517070ebd08413 |