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.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abbe53a39734ef4aba061fca54e30c6b4639d3e1f59653f0da37a0003de148c7 |
|
MD5 | 24be06eabfe494458e2a9dc63e57929c |
|
BLAKE2b-256 | 4ef886ab848da5c79715f901e22bc23d2dc467b8672fe1eda8d3e1f48cba130c |
Hashes for tornado-6.0.3-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 559bce3d31484b665259f50cd94c5c28b961b09315ccd838f284687245f416e5 |
|
MD5 | 7dc39a1772528a96fef9d393c283bed1 |
|
BLAKE2b-256 | 352ece3f7426ee077fa376facfc9aa3fc83f9dd3d0281270e95864efd8ba6f77 |
Hashes for tornado-6.0.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349884248c36801afa19e342a77cc4458caca694b0eda633f5878e458a44cb2c |
|
MD5 | a2dda7557256903aaec911706ac7a555 |
|
BLAKE2b-256 | 350bbcd855847d58600627b17c64535567a871731e81f0f75d2065f72fe58671 |
Hashes for tornado-6.0.3-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e73ef678b1a859f0cb29e1d895526a20ea64b5ffd510a2307b5998c7df24281 |
|
MD5 | 491f277a9a8f12c852cf2347c9c4a60d |
|
BLAKE2b-256 | 95acfdbd1d2d31a9a0bb2affcb63224440013fcfd055ff5afb30a272dfd86273 |
Hashes for tornado-6.0.3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 398e0d35e086ba38a0427c3b37f4337327231942e731edaa6e9fd1865bbd6f60 |
|
MD5 | 4d7099d908370ea08d9e95e9d4750d36 |
|
BLAKE2b-256 | bc14afac6e6d8ccb77892c80590ca001c83045f0b024f7f74c11ef139769d2ff |
Hashes for tornado-6.0.3-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9399267c926a4e7c418baa5cbe91c7d1cf362d505a1ef898fde44a07c9dd8a5 |
|
MD5 | 8244243e82a1b5df6ee225221064d01a |
|
BLAKE2b-256 | 2d71efa3e01c3bb6dde28f88c71592eb6ba557e21812b7410bfa01ea752296d9 |