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.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b6a623a28307c5d5d64b34ed7c84f2bfcc6848fd71546bb8bc03dd82b71ad04 |
|
MD5 | 6a4f52f9b4df2b12ba34fd87c0541a5c |
|
BLAKE2b-256 | 91ac36608f18f4d3efb79e4d3c527d298c0bf99c7131a1e86e617ea1ad2ed9bb |
Hashes for tornado-5.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b56415667b1ad4f222486baa7118d5445310fd9b99a2263e029bc63df6e2e80 |
|
MD5 | 93845a74f5569e8181791ea5c6a9c951 |
|
BLAKE2b-256 | 6f8c02ac3a96ca431e0b10db7b3451df5424057ec4f088038268e1c6f32b82a2 |
Hashes for tornado-5.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f112ae0b50d2080995afab36aca4fcd93af1fa2e7185b15d854b0d6b2578dce4 |
|
MD5 | 9eb5ba16a2d9ad076360c2f89427e335 |
|
BLAKE2b-256 | 48213d3fcdb48b589b840dafb71ad5007fa419226adc8e7894673db322fc8b24 |
Hashes for tornado-5.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a568429fb77529622a4607c66f9144aa980bd4fe2326206672707eba6951fc |
|
MD5 | 967f246011159deb81a75ac283a26527 |
|
BLAKE2b-256 | ed5e526afbe26bb3e1538164e3ddb7f6bdf973509d30e9e8cc204e85c0961170 |