tornado

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

  • Owner: tornadoweb/tornado
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Tornado Web Server

.. image:: https://badges.gitter.im/Join%20Chat.svg
:alt: Join the chat at https://gitter.im/tornadoweb/tornado
:target: https://gitter.im/tornadoweb/tornado?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

Tornado <http://www.tornadoweb.org>_ is a Python web framework and
asynchronous networking library, originally developed at FriendFeed <http://friendfeed.com>. By using non-blocking network I/O, Tornado
can scale to tens of thousands of open connections, making it ideal for
long polling <http://en.wikipedia.org/wiki/Push_technology#Long_Polling>
,
WebSockets <http://en.wikipedia.org/wiki/WebSocket>_, 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:

.. code-block:: python

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 <https://github.com/tornadoweb/tornado/tree/stable/demos/chat>_.

Documentation

Documentation and links to additional resources are available at
https://www.tornadoweb.org

Main metrics

Overview
Name With Ownertornadoweb/tornado
Primary LanguagePython
Program languagePython (Language Count: 5)
Platform
License:Apache License 2.0
所有者活动
Created At2009-09-09 04:55:16
Pushed At2025-05-23 01:24:09
Last Commit At2025-05-22 21:24:08
Release Count78
Last Release Namev6.5.1 (Posted on 2025-05-22 13:57:59)
First Release Namev1.0.0 (Posted on 2010-07-22 16:56:38)
用户参与
Stargazers Count22k
Watchers Count1k
Fork Count5.5k
Commits Count4.9k
Has Issues Enabled
Issues Count1844
Issue Open Count177
Pull Requests Count1019
Pull Requests Open Count30
Pull Requests Close Count599
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private