Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tornado

> 编程语言
Open source

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

22.2K stars0 likes4 views
WebsiteGitHub

About

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

.. image:: docs/tornado.png?raw=true :alt: Tornado Web :align: center

Tornado Web Server

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 asyncio
import tornado

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")

def make_app():
    return tornado.web.Application([
        (r"/", MainHandler),
    ])

async def main():
    app = make_app()
    app.listen(8888)
    await asyncio.Event().wait()

if __name__ == "__main__":
    asyncio.run(main())

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

Issues· 246 open

View all issuesOpen on GitHub
  • #3746

    the string value in 'set_cookie()' can not obtains space char

    Updated Sep 28, 2026
  • #3495

    web: New XSRF/CSRF protection: `Sec-Fetch-Site`

    Updated Sep 18, 2026
  • #3730

    Add downstream tests against `jupyter_server` as a part of release workflow

    Updated Sep 16, 2026
  • #3728

    Soft-deprecate and reimplement IOStream.read_until_close

    Updated Sep 15, 2026
  • #3701

    decode_signed_value raises ValueError for authenticated malformed timestamps

    Updated Sep 6, 2026
  • #3501

    Support for free-threaded CPython

    Updated Aug 30, 2026
  • #1050

    get_ssl_certificate is untested

    httpserverUpdated Aug 29, 2026
  • #3651

    Add support for new HTTP standard method QUERY

    Updated Jun 29, 2026
  • #3616

    Getting the templated path that led to an handler

    Updated May 5, 2026
  • #3614

    Socket leak in TCPClient.connect when TLS handshake times out

    Updated Apr 9, 2026

> Tags

Pythonasynchronouspython

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言