[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-70767":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},70767,"starlette","Kludex\u002Fstarlette","Kludex","The little ASGI framework that shines. 🌟","https:\u002F\u002Fstarlette.dev",null,"Python",12385,1196,103,10,0,18,33,86,54,44.23,"BSD 3-Clause \"New\" or \"Revised\" License",false,"main",true,[27,28,29,30,31],"asgi","async","http","python","websockets","2026-06-12 02:02:43","\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002FKludex\u002Fstarlette\u002Fmain\u002Fdocs\u002Fimg\u002Fstarlette_dark.svg\" width=\"420px\">\n    \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002FKludex\u002Fstarlette\u002Fmain\u002Fdocs\u002Fimg\u002Fstarlette.svg\" width=\"420px\">\n    \u003Cimg alt=\"starlette-logo\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FKludex\u002Fstarlette\u002Fmain\u002Fdocs\u002Fimg\u002Fstarlette.svg\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Cem>✨ The little ASGI framework that shines. ✨\u003C\u002Fem>\n\u003C\u002Fp>\n\n---\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002FKludex\u002Fstarlette\u002Fworkflows\u002FTest%20Suite\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FKludex\u002Fstarlette\u002Factions)\n[![Package version](https:\u002F\u002Fbadge.fury.io\u002Fpy\u002Fstarlette.svg)](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Fstarlette)\n[![Supported Python Version](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Fstarlette.svg?color=%2334D058)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fstarlette)\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1051468649518616576?logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https:\u002F\u002Fdiscord.gg\u002FRxKUF5JuHs)\n\n---\n\n**Documentation**: \u003Ca href=\"https:\u002F\u002Fstarlette.dev\u002F\" target=\"_blank\">https:\u002F\u002Fstarlette.dev\u003C\u002Fa>\n\n**Source Code**: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FKludex\u002Fstarlette\" target=\"_blank\">https:\u002F\u002Fgithub.com\u002FKludex\u002Fstarlette\u003C\u002Fa>\n\n---\n\n# Starlette\n\nStarlette is a lightweight [ASGI][asgi] framework\u002Ftoolkit,\nwhich is ideal for building async web services in Python.\n\nIt is production-ready, and gives you the following:\n\n* A lightweight, low-complexity HTTP web framework.\n* WebSocket support.\n* In-process background tasks.\n* Startup and shutdown events.\n* Test client built on `httpx`.\n* CORS, GZip, Static Files, Streaming responses.\n* Session and Cookie support.\n* 100% test coverage.\n* 100% type annotated codebase.\n* Few hard dependencies.\n* Compatible with `asyncio` and `trio` backends.\n* Great overall performance [against independent benchmarks][techempower].\n\n## Installation\n\n```shell\n$ pip install starlette\n```\n\nYou'll also want to install an ASGI server, such as [uvicorn](https:\u002F\u002Fuvicorn.dev), [daphne](https:\u002F\u002Fgithub.com\u002Fdjango\u002Fdaphne\u002F), or [hypercorn](https:\u002F\u002Fhypercorn.readthedocs.io\u002Fen\u002Flatest\u002F).\n\n```shell\n$ pip install uvicorn\n```\n\n## Example\n\n```python title=\"main.py\"\nfrom starlette.applications import Starlette\nfrom starlette.responses import JSONResponse\nfrom starlette.routing import Route\n\n\nasync def homepage(request):\n    return JSONResponse({'hello': 'world'})\n\nroutes = [\n    Route(\"\u002F\", endpoint=homepage)\n]\n\napp = Starlette(debug=True, routes=routes)\n```\n\nThen run the application using Uvicorn:\n\n```shell\n$ uvicorn main:app\n```\n\n## Dependencies\n\nStarlette only requires `anyio`, and the following are optional:\n\n* [`httpx`][httpx] - Required if you want to use the `TestClient`.\n* [`jinja2`][jinja2] - Required if you want to use `Jinja2Templates`.\n* [`python-multipart`][python-multipart] - Required if you want to support form parsing, with `request.form()`.\n* [`itsdangerous`][itsdangerous] - Required for `SessionMiddleware` support.\n* [`pyyaml`][pyyaml] - Required for `SchemaGenerator` support.\n\nYou can install all of these with `pip install starlette[full]`.\n\n## Framework or Toolkit\n\nStarlette is designed to be used either as a complete framework, or as\nan ASGI toolkit. You can use any of its components independently.\n\n```python\nfrom starlette.responses import PlainTextResponse\n\n\nasync def app(scope, receive, send):\n    assert scope['type'] == 'http'\n    response = PlainTextResponse('Hello, world!')\n    await response(scope, receive, send)\n```\n\nRun the `app` application in `example.py`:\n\n```shell\n$ uvicorn example:app\nINFO: Started server process [11509]\nINFO: Uvicorn running on http:\u002F\u002F127.0.0.1:8000 (Press CTRL+C to quit)\n```\n\nRun uvicorn with `--reload` to enable auto-reloading on code changes.\n\n## Modularity\n\nThe modularity that Starlette is designed on promotes building reusable\ncomponents that can be shared between any ASGI framework. This should enable\nan ecosystem of shared middleware and mountable applications.\n\nThe clean API separation also means it's easier to understand each component\nin isolation.\n\n---\n\n\u003Cp align=\"center\">\u003Ci>Starlette is \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FKludex\u002Fstarlette\u002Fblob\u002Fmain\u002FLICENSE.md\">BSD licensed\u003C\u002Fa> code.\u003Cbr\u002F>Designed & crafted with care.\u003C\u002Fi>\u003C\u002Fbr>&mdash; ⭐️ &mdash;\u003C\u002Fp>\n\n[asgi]: https:\u002F\u002Fasgi.readthedocs.io\u002Fen\u002Flatest\u002F\n[httpx]: https:\u002F\u002Fwww.python-httpx.org\u002F\n[jinja2]: https:\u002F\u002Fjinja.palletsprojects.com\u002F\n[python-multipart]: https:\u002F\u002Fmultipart.fastapiexpert.com\u002F\n[itsdangerous]: https:\u002F\u002Fitsdangerous.palletsprojects.com\u002F\n[sqlalchemy]: https:\u002F\u002Fwww.sqlalchemy.org\n[pyyaml]: https:\u002F\u002Fpyyaml.org\u002Fwiki\u002FPyYAMLDocumentation\n[techempower]: https:\u002F\u002Fwww.techempower.com\u002Fbenchmarks\u002F#hw=ph&test=fortune&l=zijzen-sf\n","Starlette 是一个轻量级的 ASGI 框架，适用于构建异步 Web 服务。其核心功能包括支持 WebSocket、后台任务、启动和关闭事件以及基于 `httpx` 的测试客户端等，并且提供了 CORS、GZip、静态文件处理等功能。Starlette 代码库完全类型注解且测试覆盖率高达100%，具有良好的性能表现。它兼容 `asyncio` 和 `trio` 后端，适合需要高性能同时保持简洁架构的应用场景，如微服务开发、实时应用或任何需要利用 Python 异步特性的 web 项目中使用。",2,"2026-06-11 03:34:04","high_star"]