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 5.0
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.tar.gz | 504.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tornado-5.0-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| tornado-5.0-cp36-cp36m-win32.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-32 | Details |
| tornado-5.0-cp35-cp35m-win_amd64.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-64 | Details |
| tornado-5.0-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.tar.gz
| Download URL | tornado-5.0.tar.gz |
|---|---|
| Size | 504.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62f754562c61ea94b00d61727202105068bc2760f076cc34d2da1a57041731aa
|
|
BLAKE2b-256 checksum How to use checksums |
594b2c992ec4feb904471125702ed1dd3c912de1630c03bd555c3b05a41da93e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0-cp36-cp36m-win_amd64.whl
| Download URL | tornado-5.0-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 438.4 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4b6a623a28307c5d5d64b34ed7c84f2bfcc6848fd71546bb8bc03dd82b71ad04
|
|
BLAKE2b-256 checksum How to use checksums |
91ac36608f18f4d3efb79e4d3c527d298c0bf99c7131a1e86e617ea1ad2ed9bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0-cp36-cp36m-win32.whl
| Download URL | tornado-5.0-cp36-cp36m-win32.whl |
|---|---|
| Size | 437.8 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
6b56415667b1ad4f222486baa7118d5445310fd9b99a2263e029bc63df6e2e80
|
|
BLAKE2b-256 checksum How to use checksums |
6f8c02ac3a96ca431e0b10db7b3451df5424057ec4f088038268e1c6f32b82a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0-cp35-cp35m-win_amd64.whl
| Download URL | tornado-5.0-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 438.4 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f112ae0b50d2080995afab36aca4fcd93af1fa2e7185b15d854b0d6b2578dce4
|
|
BLAKE2b-256 checksum How to use checksums |
48213d3fcdb48b589b840dafb71ad5007fa419226adc8e7894673db322fc8b24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-5.0-cp35-cp35m-win32.whl
| Download URL | tornado-5.0-cp35-cp35m-win32.whl |
|---|---|
| Size | 437.8 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
54a568429fb77529622a4607c66f9144aa980bd4fe2326206672707eba6951fc
|
|
BLAKE2b-256 checksum How to use checksums |
ed5e526afbe26bb3e1538164e3ddb7f6bdf973509d30e9e8cc204e85c0961170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |