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
Metadata
Release files for tornado 4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tornado-4.4.tar.gz | 456.9 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tornado-4.4-cp35-cp35m-win_amd64.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-64 | Details |
| tornado-4.4-cp35-cp35m-win32.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-32 | Details |
Total release size: 1.3 MB
Release files / tornado-4.4.tar.gz
| Download URL | tornado-4.4.tar.gz |
|---|---|
| Size | 456.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3176545b6cb2966870db4def4f646da6ab7a0c19400576969c57279a7561ab02
|
|
BLAKE2b-256 checksum How to use checksums |
8b01e7b4bcee946b356060639582fa71946130b5fe5ab0d0557c4340275f2dff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.4-cp35-cp35m-win_amd64.whl
| Download URL | tornado-4.4-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 404.3 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9a8c1f6e98882e030a206be0f06553a869de758ee158726d1c1ec63eae9df964
|
|
BLAKE2b-256 checksum How to use checksums |
e1c06a232d97fac7811f35e534c8fc7497aee04f8557e5e8a2fb29b0d2b1e33f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.4-cp35-cp35m-win32.whl
| Download URL | tornado-4.4-cp35-cp35m-win32.whl |
|---|---|
| Size | 403.8 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
f9f414658430d04fc470039de838bddf2371cbdc5238cf9debad11195cdfb2db
|
|
BLAKE2b-256 checksum How to use checksums |
03bd1e86e515f0366399f28a5886cce47fb2090a30d4dba5efead8baf3455905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |