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 6.0.3
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-6.0.3.tar.gz | 482.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tornado-6.0.3-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details |
| tornado-6.0.3-cp37-cp37m-win32.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-32 | Details |
| tornado-6.0.3-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| tornado-6.0.3-cp36-cp36m-win32.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-32 | Details |
| tornado-6.0.3-cp35-cp35m-win_amd64.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-64 | Details |
| tornado-6.0.3-cp35-cp35m-win32.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-32 | Details |
Total release size: 3.0 MB
Release files / tornado-6.0.3.tar.gz
| Download URL | tornado-6.0.3.tar.gz |
|---|---|
| Size | 482.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c845db36ba616912074c5b1ee897f8e0124df269468f25e4fe21fe72f6edd7a9
|
|
BLAKE2b-256 checksum How to use checksums |
30782d2823598496127b21423baffaa186b668f73cd91887fcef78b6eade136b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / tornado-6.0.3-cp37-cp37m-win_amd64.whl
| Download URL | tornado-6.0.3-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 415.8 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
abbe53a39734ef4aba061fca54e30c6b4639d3e1f59653f0da37a0003de148c7
|
|
BLAKE2b-256 checksum How to use checksums |
4ef886ab848da5c79715f901e22bc23d2dc467b8672fe1eda8d3e1f48cba130c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / tornado-6.0.3-cp37-cp37m-win32.whl
| Download URL | tornado-6.0.3-cp37-cp37m-win32.whl |
|---|---|
| Size | 415.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
559bce3d31484b665259f50cd94c5c28b961b09315ccd838f284687245f416e5
|
|
BLAKE2b-256 checksum How to use checksums |
352ece3f7426ee077fa376facfc9aa3fc83f9dd3d0281270e95864efd8ba6f77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / tornado-6.0.3-cp36-cp36m-win_amd64.whl
| Download URL | tornado-6.0.3-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 415.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
349884248c36801afa19e342a77cc4458caca694b0eda633f5878e458a44cb2c
|
|
BLAKE2b-256 checksum How to use checksums |
350bbcd855847d58600627b17c64535567a871731e81f0f75d2065f72fe58671
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / tornado-6.0.3-cp36-cp36m-win32.whl
| Download URL | tornado-6.0.3-cp36-cp36m-win32.whl |
|---|---|
| Size | 415.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
4e73ef678b1a859f0cb29e1d895526a20ea64b5ffd510a2307b5998c7df24281
|
|
BLAKE2b-256 checksum How to use checksums |
95acfdbd1d2d31a9a0bb2affcb63224440013fcfd055ff5afb30a272dfd86273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / tornado-6.0.3-cp35-cp35m-win_amd64.whl
| Download URL | tornado-6.0.3-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 415.8 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
398e0d35e086ba38a0427c3b37f4337327231942e731edaa6e9fd1865bbd6f60
|
|
BLAKE2b-256 checksum How to use checksums |
bc14afac6e6d8ccb77892c80590ca001c83045f0b024f7f74c11ef139769d2ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / tornado-6.0.3-cp35-cp35m-win32.whl
| Download URL | tornado-6.0.3-cp35-cp35m-win32.whl |
|---|---|
| Size | 415.2 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
c9399267c926a4e7c418baa5cbe91c7d1cf362d505a1ef898fde44a07c9dd8a5
|
|
BLAKE2b-256 checksum How to use checksums |
2d71efa3e01c3bb6dde28f88c71592eb6ba557e21812b7410bfa01ea752296d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|