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.5
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.5.tar.gz | 483.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tornado-4.5-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| tornado-4.5-cp36-cp36m-win32.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-32 | Details |
| tornado-4.5-cp35-cp35m-win_amd64.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-64 | Details |
| tornado-4.5-cp35-cp35m-win32.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-32 | Details |
Total release size: 2.2 MB
Release files / tornado-4.5.tar.gz
| Download URL | tornado-4.5.tar.gz |
|---|---|
| Size | 483.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8861cce3c081557cfca2623507290ed647978ea275c29e2e3dfeeb63ca61e855
|
|
BLAKE2b-256 checksum How to use checksums |
dba5c8057b0725b8aa43d6aaefe323820aac867986d2e4ce751afaa7fab0b776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.5-cp36-cp36m-win_amd64.whl
| Download URL | tornado-4.5-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 422.4 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
64f3c23e5c7ca92450dcae70714f7371087fad67566209f225ab561b4cf6636f
|
|
BLAKE2b-256 checksum How to use checksums |
1e0a5d4f92e05f40bef04a7f8cddeae1e3e70c7f1cccc3eed840eaa139fb4b99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.5-cp36-cp36m-win32.whl
| Download URL | tornado-4.5-cp36-cp36m-win32.whl |
|---|---|
| Size | 421.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
25cf0aaac9806ea3bfd2e24eb010b771a47be6abe48763692c5143d12d5fd412
|
|
BLAKE2b-256 checksum How to use checksums |
c15bb70257395a8e9b92f419509b736008a8da051d5f2f6062b8ae24340aef9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.5-cp35-cp35m-win_amd64.whl
| Download URL | tornado-4.5-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 422.4 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d67786af543a33c88b623c1d7633eef6e2f35b6edebe6e2fd7c9818fbdf454ab
|
|
BLAKE2b-256 checksum How to use checksums |
d8849546c2a0b17472ffad02500e36c14101091637c0af09a55eddc65238d5ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.5-cp35-cp35m-win32.whl
| Download URL | tornado-4.5-cp35-cp35m-win32.whl |
|---|---|
| Size | 421.9 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
3808544f531c515d1ce3992db2bb37bfa36f0948ead84dd6907920df032c9cff
|
|
BLAKE2b-256 checksum How to use checksums |
dc252738db53ddbc6e63544b1cdb183d934e2877e4755a4e51c21a76331f8070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |