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.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b57939955588055be29c93c2ea533e44ee8ee75a6c1dd14f103eef92d01829f |
|
MD5 | 4d63e8d17d9c18ffbbe0653603b95b16 |
|
BLAKE2b-256 | 5cf4600a3047eddb4650fbc6290aed7d1f61c5085cc05bd49719a52cf304a9c5 |
Hashes for tornado-4.4.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9ee9f93109a98526a29cdea756802f1aab7897def0330532af4c4337895565 |
|
MD5 | 95d4164e18c093de376c773c67c6d345 |
|
BLAKE2b-256 | 6b8e8bfc7447158416926b1bc668a52d3da120c0d098bded35f2be738f06391b |