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.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1174dcb84d08887b55defb2cda1986faeeea715fff189ef3dc44cce99f5fca6b |
|
MD5 | 81d0986379068aca96ee267c219a501a |
|
BLAKE2b-256 | 9e00a59e32058b5ada2853e1ad4b0c0fc210d6814345415624aa4720875193ee |
Hashes for tornado-6.0.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49603e1a6e24104961497ad0c07c799aec1caac7400a6762b687e74c8206677d |
|
MD5 | 2cccc6fb77e7d63652ffacbeea6df347 |
|
BLAKE2b-256 | ab48d7ddf64811647896c4c96f9c1b8ccda5b8222f0649f230dc444a347b2897 |
Hashes for tornado-6.0.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d897889c3b5a829426b7d52828fb37b28bc181cd598624e65c8be40ee3f7fa |
|
MD5 | 68933031b20001cf60ad8406c8a430a5 |
|
BLAKE2b-256 | 9d768a52c49e0a7e2638442f379d34f55232c773d4df7f69b297e451c980f99d |
Hashes for tornado-6.0.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c2f40b99a8153893793559919a355d7b74649a11e59f411b0b0a1793e160bc0 |
|
MD5 | f5f7743a36203214aeb74c3405ad8cdc |
|
BLAKE2b-256 | 88457cccaafb7d581a879b4a0c39b2f73370c33da63e399ff1e8ed93dfa49737 |
Hashes for tornado-6.0.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2613fab506bd2aedb3722c8c64c17f8f74f4070afed6eea17f20b2115e445aec |
|
MD5 | f603fdc86d2222bac29d37f592557773 |
|
BLAKE2b-256 | ecd7c4d334ba5892ba65312c879980a099bd5ecd61368773b808ab126b8e911b |
Hashes for tornado-6.0.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44b82bc1146a24e5b9853d04c142576b4e8fa7a92f2e30bc364a85d1f75c4de2 |
|
MD5 | 4a3be5568d8b7d59d8f2e76b30b187d3 |
|
BLAKE2b-256 | 62d348e9f0d0c54d1e8484a19b0f886b549150f9c0bb7d84051d920b5dd8c1b0 |