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.3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb90d6b753ebcb364b8bf81c01c22612a5884c24ad130d8a7c2dea387f70d8f |
|
MD5 | 9fbc57157f715c3fec206f887073092f |
|
BLAKE2b-256 | e61e15b77e91d0a196ff31fa1b6fda5b0b2bc7d5809ae5dc4534d2cc26d443f7 |
Hashes for tornado-4.4.3-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ae0925cd08297ea76ec91f1373aa1211aeef26dc7fcdba7ec18e8916747d12b |
|
MD5 | e322fcd9cda4b003baac11b9d31eff1d |
|
BLAKE2b-256 | ae399ca026ba8e43836493295e09671ca599ea7a7d8f6cc4225a06bf85c3d0e9 |