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-4.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f3c23e5c7ca92450dcae70714f7371087fad67566209f225ab561b4cf6636f |
|
MD5 | 8fd08318e598fa8d5b4699a009dc375f |
|
BLAKE2b-256 | 1e0a5d4f92e05f40bef04a7f8cddeae1e3e70c7f1cccc3eed840eaa139fb4b99 |
Hashes for tornado-4.5-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25cf0aaac9806ea3bfd2e24eb010b771a47be6abe48763692c5143d12d5fd412 |
|
MD5 | db43860572d3cd76a0d2416f265a0038 |
|
BLAKE2b-256 | c15bb70257395a8e9b92f419509b736008a8da051d5f2f6062b8ae24340aef9a |
Hashes for tornado-4.5-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d67786af543a33c88b623c1d7633eef6e2f35b6edebe6e2fd7c9818fbdf454ab |
|
MD5 | 6ff63bd6024ecd83dccdadecc403b533 |
|
BLAKE2b-256 | d8849546c2a0b17472ffad02500e36c14101091637c0af09a55eddc65238d5ed |
Hashes for tornado-4.5-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3808544f531c515d1ce3992db2bb37bfa36f0948ead84dd6907920df032c9cff |
|
MD5 | 43d1dbcdf8138462608e6fc9b964117b |
|
BLAKE2b-256 | dc252738db53ddbc6e63544b1cdb183d934e2877e4755a4e51c21a76331f8070 |