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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?