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.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d192236a9ffee54cb0032f22a8a0cfa64258872f1d83d71f3356681f69a37be |
|
MD5 | 91d98941cb43d8ad4b301a6e31f0d01e |
|
BLAKE2b-256 | 033b90ebd50d40bfa423b6d2ebecf337f8b1ec14f4beb468b2ffe40957d6f5d7 |
Hashes for tornado-5.0.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5bf7407f88327b80e666dabf91a1e7beb11236855a5c65ba5cf0e9e25ae296b |
|
MD5 | 307869d2f7490e750f201851c2184301 |
|
BLAKE2b-256 | 87a6782c11a9098339273cba06fd0dd8a3e3ebfcc6eea83aa77774c5189046e6 |
Hashes for tornado-5.0.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 186ba4f280429a24120f329c7c08ea91818ff6bf47ed2ccb66f8f460698fc4ed |
|
MD5 | 92339f296340dedb2ccaaf53443d681a |
|
BLAKE2b-256 | 84e17bf81a21fbf2f267f5e0c75c3fa1359469b24cdc9de9be6c5edbdcf8726e |
Hashes for tornado-5.0.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69194436190b777abf0b631a692b0b29ba4157d18eeee07327b486e033b944dc |
|
MD5 | 2335559d27deb8e14b504fcb30291131 |
|
BLAKE2b-256 | 410b42fbdbf887bffc1c007927b6025e88523bfafdc07e054cf4c7a0342ab540 |