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
Release files for tornado 5.0.2
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-5.0.2.tar.gz | 506.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tornado-5.0.2-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| tornado-5.0.2-cp36-cp36m-win32.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-32 | Details |
| tornado-5.0.2-cp35-cp35m-win_amd64.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-64 | Details |
| tornado-5.0.2-cp35-cp35m-win32.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-32 | Details |
Total release size:2.3 MB
Release files / tornado-5.0.2.tar.gz
| Download URL | tornado-5.0.2.tar.gz |
|---|---|
| Size | 506.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b83d5c10550f2653380b4c77331d6f8850f287c4f67d7ce1e1c639d9222fbc7
|
|
BLAKE2b-256 checksum How to use checksums |
cfd13be271ae5eba9fb59df63c9891fdc7d8044b999e8ac145994cdbfd2ae66a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0.2-cp36-cp36m-win_amd64.whl
| Download URL | tornado-5.0.2-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 439.1 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c050089173c2e9272244bccfb6a8615fb9e53b79420a5551acfa76094ecc3111
|
|
BLAKE2b-256 checksum How to use checksums |
3d4a5b321dc86dec06205cfae8e06fd9fa78be57e199b8665dc152c56f7d5b53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0.2-cp36-cp36m-win32.whl
| Download URL | tornado-5.0.2-cp36-cp36m-win32.whl |
|---|---|
| Size | 438.5 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
408d129e9d13d3c55aa73f8084aa97d5f90ed84132e38d6932e63a67d5bec563
|
|
BLAKE2b-256 checksum How to use checksums |
9bafddd8ba22a47979b5a6538fd712d1f647e23c5590165d927d82ebddf8d457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0.2-cp35-cp35m-win_amd64.whl
| Download URL | tornado-5.0.2-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 439.1 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ba9fbb249ac5390bff8a1d6aa4b844fd400701069bda7d2e380dfe2217895101
|
|
BLAKE2b-256 checksum How to use checksums |
fc49212a0ec5b9aad7629c9b25436e256ef3797b8fe06c4b190fa22e9589e47f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0.2-cp35-cp35m-win32.whl
| Download URL | tornado-5.0.2-cp35-cp35m-win32.whl |
|---|---|
| Size | 438.5 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
88ce0282cce70df9045e515f578c78f1ebc35dcabe1d70f800c3583ebda7f5f5
|
|
BLAKE2b-256 checksum How to use checksums |
1a72426796781f8afc76da366365c473e4ef5b0dd1d70d2616517070ebd08413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |