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-6.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90c5fa57a84b1cbd36c656a35a3dd07d130bcca8a2b5ee8cb0f16479bb6e4e3 |
|
MD5 | af1845689766f5a0b46d182f0f3c36db |
|
BLAKE2b-256 | 71460b49a1d2f675004747b56cef2648c3e2a22f10d3c2924ddeae541f5fc582 |
Hashes for tornado-6.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d675dd93cdad3545e619ce609451a7f77851bd5c3f34c58a1e01f5fd119f40f9 |
|
MD5 | 146980a6e63f20a922acec0d3f02a5f9 |
|
BLAKE2b-256 | 2a84f2a686310b031fbc11b5cb083d22c24af60851f8f63ec9abb13eef5fd6b5 |
Hashes for tornado-6.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e9565c293e904c5642752b2ae0cefe932cd201e82a81cd6ee3480b0448d0250 |
|
MD5 | a1fcb3cfdb77fb4ac2306c78954f4f22 |
|
BLAKE2b-256 | 2f82fd48b6a085178e7aed5e16fce4320a573a464e28fd9aac71206da6faa36c |
Hashes for tornado-6.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981dfdac0308eca069447e4b4fbb029cc91627f58dd7a5f35a97d6245ab5824d |
|
MD5 | 7ce954a327ec9cbc3dcb6533a2ae737d |
|
BLAKE2b-256 | 5928f0f3f467e5ed56be72e781b4a938754e910009fe950b7182aca9d0cbd8c2 |
Hashes for tornado-6.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434a2821caa09cf96ffccbfaf101b8c27c4f9eee8f9e5ba933c6c4dc4c7eabbe |
|
MD5 | 31abe06bacbe2742c67e6c5beeb2a319 |
|
BLAKE2b-256 | 894139145b8230b5ffbe998ac403a42cc469e4ba2a27b7465abf9fb251a87260 |
Hashes for tornado-6.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e3fe9265938d36dd1744e395669555caf161ca5bf46c56d612866cbcda4869 |
|
MD5 | 75d903a3334e50028666f1a6edcbb336 |
|
BLAKE2b-256 | 2e48609ec43fa4e4707742fe16991136f1906dc051267d453e882c1bd22064b8 |