Skip to main content

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Project description

Join the chat at https://gitter.im/tornadoweb/tornado

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 https://www.tornadoweb.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tornado-gcp-6.1.3.tar.gz (497.8 kB view details)

Uploaded Source

File details

Details for the file tornado-gcp-6.1.3.tar.gz.

File metadata

  • Download URL: tornado-gcp-6.1.3.tar.gz
  • Upload date:
  • Size: 497.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for tornado-gcp-6.1.3.tar.gz
Algorithm Hash digest
SHA256 e3f804323f2f329e3ef9701dbf634e13bc8b31239f0bfe2eb800a53e8ae30ed4
MD5 6615ec04060a674e07a8607a400df6e6
BLAKE2b-256 2722a7405ec8206e85b7bb50f90f306cf7936c4a231b01dc743e0d840dcd3035

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page