tornado

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

  • 所有者: tornadoweb/tornado
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者tornadoweb/tornado
主编程语言Python
编程语言Python (语言数: 5)
平台
许可证Apache License 2.0
所有者活动
创建于2009-09-09 04:55:16
推送于2025-05-23 01:24:09
最后一次提交2025-05-22 21:24:08
发布数78
最新版本名称v6.5.1 (发布于 2025-05-22 13:57:59)
第一版名称v1.0.0 (发布于 2010-07-22 16:56:38)
用户参与
星数22k
关注者数1k
派生数5.5k
提交数4.9k
已启用问题?
问题数1844
打开的问题数177
拉请求数1019
打开的拉请求数30
关闭的拉请求数599
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?