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.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9d728c4579682e837c92fdd98036bd5cdefa1da2aaf6acf26947e6dd0c01c5 |
|
MD5 | 0011a1fde37d5bb0d053c9c07e36a9b6 |
|
BLAKE2b-256 | d7d599aff77c15da335e3dbf30254b304a526494dca8e51b4b47419772e35a4e |
Hashes for tornado-5.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f2585afccbff22390cddac29849df463b252b711aa2ce7c5f3f342a5b3b444 |
|
MD5 | 57b787dca6406690d16209b6071fae35 |
|
BLAKE2b-256 | d41b191715afe5a4fbcb285e3292dfbe21f449f05b1edd85abc8c671bde5e9b1 |
Hashes for tornado-5.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b3e5329f572f055b587efc57d29bd051589fb5a43ec8898c77a47ec2fa2bbb |
|
MD5 | 8225d6e21891a097e4dcb3ca9a328156 |
|
BLAKE2b-256 | ab0e8ec7ed219cb35fffe2f2cddbfa02b47ba5d23dd9026a41b3f2bdd63cdec3 |
Hashes for tornado-5.1.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8154ec22c450df4e06b35f131adc4f2f3a12ec85981a203301d310abf580500f |
|
MD5 | e432dd2ff2bea43a1726c9f1b9bd8bb3 |
|
BLAKE2b-256 | 9bf2638d6bd2140f92390700201c233625ae10459f7469079e13d693999cd938 |
Hashes for tornado-5.1.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0662d28b1ca9f67108c7e3b77afabfb9c7e87bde174fbda78186ecedc2499a9d |
|
MD5 | 78f38ff7320babe34c87971bb841be5e |
|
BLAKE2b-256 | cd94e7c9a8b205215350086879b078af3e47b96384188566075b0ccb288ecf3c |
Hashes for tornado-5.1.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 732e836008c708de2e89a31cb2fa6c0e5a70cb60492bee6f1ea1047500feaf7f |
|
MD5 | a718fae1ffb6d62266668270ae09c948 |
|
BLAKE2b-256 | 940360bf4d3c9c3c984fa215c719a07e672a65cbcd727c1437c3b526c5c7ab90 |