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.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c0816fc32b7d31b98781bd8ebc7a9726d7dce67407dc353a2e66e697e138448 |
|
MD5 | 6ce0b0fc91d8065e319fdaa5d7af5abf |
|
BLAKE2b-256 | f3cbe3027d1216afb74aa37ceaae32628e5bfade25e6e1819b4209de96b9a120 |
Hashes for tornado-5.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c58757e37c4a3172949c99099d4d5106e4d7b63aa0617f9bb24bfbff712c7866 |
|
MD5 | 7bf8033fb11f02d4ca8b743365e56e02 |
|
BLAKE2b-256 | 3dbcd95632f76dc90edb6831804c1c4c631cf5dfc9b5edaceb658395ae321a48 |
Hashes for tornado-5.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b14804783a1d77c0bd6c66f7a9b1196cbddfbdf8bceb64683c5ae60bd1ec6f |
|
MD5 | 65e3c0c2cd67dde8cd405ee1aad1cc8f |
|
BLAKE2b-256 | 8bd64e4a9282a3fb8555dca2369e827bd844c7f2d1a59c5790d3bfd97eb66206 |
Hashes for tornado-5.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5327ba1a6c694e0149e7d9126426b3704b1d9d520852a3e4aa9fc8fe989e4046 |
|
MD5 | 345788ad6ea0a746001706c2f1236327 |
|
BLAKE2b-256 | 5a48264b4f06af58029dda214d6af9e9ef566673761f7f2899d40d8755fd1072 |
Hashes for tornado-5.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a7e8657618268bb007646b9eae7661d0b57f13efc94faa33cd2588eae5912c9 |
|
MD5 | 1e28127adbd2fddc2ca2b3c5860e1e79 |
|
BLAKE2b-256 | 81729e8ac9205157c9221d00df4388c21895b049dff053f38d12045265d338da |
Hashes for tornado-5.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8984742ce86c0855cccecd5c6f54a9f7532c983947cff06f3a0e2115b47f85c |
|
MD5 | 458403c751bb32c9b9d1a9f5c605407b |
|
BLAKE2b-256 | f14765870e80e5b8071198cf794aff34b1151b9a1679f7278b28c3585cd5030e |