Tornado Web Server
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.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-4.3.tar.gz | 450.9 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tornado-4.3-cp35-none-win_amd64.whl | CPython 3.5 | none | Windows x86-64 | Details |
| tornado-4.3-cp35-none-win32.whl | CPython 3.5 | none | Windows x86-32 | Details |
Total release size: 1.2 MB
Release files / tornado-4.3.tar.gz
| Download URL | tornado-4.3.tar.gz |
|---|---|
| Size | 450.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9c2d32593d16eedf2cec1b6a41893626a2649b40b21ca9c4cac4243bde2efbf
|
|
BLAKE2b-256 checksum How to use checksums |
2129e64c97013e97d42d93b3d5997234a6f17455f3744847a7c16289289f8fa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.3-cp35-none-win_amd64.whl
| Download URL | tornado-4.3-cp35-none-win_amd64.whl |
|---|---|
| Size | 398.4 kB |
| Tags | CPython 3.5 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
295e1f38225ce2bdd85a0524e265e9adea40507333829f3a7d64c588dd78ff21
|
|
BLAKE2b-256 checksum How to use checksums |
d51fefed2f65ad59020bc09fbea9886fff7b98da8f0d4db65156b6c7a7324f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tornado-4.3-cp35-none-win32.whl
| Download URL | tornado-4.3-cp35-none-win32.whl |
|---|---|
| Size | 397.8 kB |
| Tags | CPython 3.5 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
042255160bb1976d2aa3d9e0f32ac7f8c1bc2dfab7b2c86688a3bd6088ba90e1
|
|
BLAKE2b-256 checksum How to use checksums |
7faf2522991e353583fc184d27933d75f39de2a25cf11df246c137867b1f2ca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |