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.5.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f4456f0ab9e62dab7ede834dcf4c89082238e97b3e67a9196572c076e716aa |
|
MD5 | 49766e4c9d564c1ac9b75aa13d36de26 |
|
BLAKE2b-256 | 6d105980dd81cec252df93a1b903f0003d5664db09ade65dbdb9ffbc18e1c4ef |
Hashes for tornado-4.5.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a6894559e62a186d6cc20f1c0e7318f83ae8e28922d75c4b6f83d42cc91d8b1 |
|
MD5 | 9f724a161b5782c85930e65d133725fd |
|
BLAKE2b-256 | b9a651536b359820b9c8784d47427851791eb2f770dd9927580d1b220116dcf1 |
Hashes for tornado-4.5.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb0883ae46da958d06fda2e3be6c033825a0b8603c493df8a69c0237055308d9 |
|
MD5 | 2da37264542575d4dfd7f0ff29500303 |
|
BLAKE2b-256 | c07d54c9b8077a641297115b4d2635195b4a74db51488f0091ce3e8fc504ed6e |
Hashes for tornado-4.5.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b4618010625bcf01f187eec3148c6a3db76a2a900f7dde416330fc413274df1 |
|
MD5 | d8909f70e79b356f4256b52fee5b82f5 |
|
BLAKE2b-256 | 8ef394243a7e81ed7e1a8f4172fe1558094410a94a6dd0f9c89113eb990de212 |