[{"data":1,"prerenderedAt":292},["ShallowReactive",2],{"repo-strawberry-graphql-strawberry-zh-CN":3,"i18n-strawberry-graphql-strawberry-zh-CN":289},{"mirrorPool":4,"detail":13,"relatedProjects":170},[5,9],{"key":6,"label":7,"base":8,"type":6},"github","mirror.github","https:\u002F\u002Fgithub.com\u002F",{"key":10,"label":11,"base":12,"type":10},"auto-proxy","mirror.autoProxy","https:\u002F\u002Fgh-proxy.com\u002F",{"owner":14,"repo":15,"repoId":16,"repoUrl":17,"starCount":18,"language":19,"description":20,"languages":21,"screenshots":27,"homepage":28,"pushedAt":29,"ownerAvatar":30,"ownerName":31,"ownerBio":32,"lastSyncTime":33,"lastReleaseTime":34,"tags":35,"license":48,"category":49,"subgroup":50,"releases":51},"strawberry-graphql","strawberry",162690887,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry",4732,"Python","A GraphQL library for Python that leverages type annotations 🍓",{"Python":22,"TypeScript":23,"HTML":24,"CSS":25,"Dockerfile":25,"Shell":26,"JavaScript":26},97.7,1.7,0.3,0.1,0,[],"https:\u002F\u002Fstrawberry.rocks","2026-11-23","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F48071860?v=4","Strawberry GraphQL","A Python library for creating GraphQL APIs","2026-11-23T22:18:18.879651+00:00","2026-11-23T17:27:28Z",[36,37,38,39,40,41,42,43,44,45,46,47,15],"asgi","asyncio","django","fastapi","graphql","graphql-library","graphql-schema","graphql-server","hacktoberfest","mypy","python","starlette","MIT","development","机器学习框架",[52,69,85,100,113,128,141,155],{"tag":53,"publishAt":34,"semVer":54,"prerelease":57,"assets":58},"0.341.3",[26,55,56],341,3,false,[59,64],{"fileName":60,"sizeMb":61,"sha256":62,"downloadCount":26,"originUrl":63},"strawberry_graphql-0.341.3-py3-none-any.whl",0.38,"0ae2c8cf5e721ec6634bbf56d95cb3b4cb762b400295fa3205f5c1d22f781c1f","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.3\u002Fstrawberry_graphql-0.341.3-py3-none-any.whl",{"fileName":65,"sizeMb":66,"sha256":67,"downloadCount":26,"originUrl":68},"strawberry_graphql-0.341.3.tar.gz",0.29,"f5c472f0c716b2c6ce5a552fa11160e35bcae1c2160101de256f63b6f23b18be","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.3\u002Fstrawberry_graphql-0.341.3.tar.gz",{"tag":70,"publishAt":71,"semVer":72,"prerelease":57,"assets":74},"0.341.2","2026-11-07T16:27:05Z",[26,55,73],2,[75,80],{"fileName":76,"sizeMb":61,"sha256":77,"downloadCount":78,"originUrl":79},"strawberry_graphql-0.341.2-py3-none-any.whl","73e9c4cf5e2fddd522d2741491a6fbba70f940d945ab0a40152b2fadf26d9a89",5,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.2\u002Fstrawberry_graphql-0.341.2-py3-none-any.whl",{"fileName":81,"sizeMb":66,"sha256":82,"downloadCount":83,"originUrl":84},"strawberry_graphql-0.341.2.tar.gz","8073fae26510fb25394a6ea9dd0f4e23da6bc303312fff684f6a884d59eedb72",4,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.2\u002Fstrawberry_graphql-0.341.2.tar.gz",{"tag":86,"publishAt":87,"semVer":88,"prerelease":57,"assets":90},"0.341.1","2026-11-07T15:00:47Z",[26,55,89],1,[91,95],{"fileName":92,"sizeMb":61,"sha256":93,"downloadCount":56,"originUrl":94},"strawberry_graphql-0.341.1-py3-none-any.whl","62f7237f7937970de988ebcbd5e3a61bb7e1aa016ea58cc12e4e4d63295ab4f3","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.1\u002Fstrawberry_graphql-0.341.1-py3-none-any.whl",{"fileName":96,"sizeMb":97,"sha256":98,"downloadCount":73,"originUrl":99},"strawberry_graphql-0.341.1.tar.gz",0.28,"1093f24a316c7a1da0ac6dc825b678016455cfa9a0c7e9ad66922c12c292a67d","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.1\u002Fstrawberry_graphql-0.341.1.tar.gz",{"tag":101,"publishAt":102,"semVer":103,"prerelease":57,"assets":104},"0.341.0","2026-11-07T13:04:47Z",[26,55,26],[105,109],{"fileName":106,"sizeMb":61,"sha256":107,"downloadCount":56,"originUrl":108},"strawberry_graphql-0.341.0-py3-none-any.whl","d1c46790064d20032065fca23941a8eb394215b08c683d85cac171ed3ae9ef04","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.0\u002Fstrawberry_graphql-0.341.0-py3-none-any.whl",{"fileName":110,"sizeMb":97,"sha256":111,"downloadCount":73,"originUrl":112},"strawberry_graphql-0.341.0.tar.gz","db7507e219426bca0c0db85b67cec9b518e4d95f6bb84cd19af6224d09ed2d3d","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.341.0\u002Fstrawberry_graphql-0.341.0.tar.gz",{"tag":114,"publishAt":115,"semVer":116,"prerelease":57,"assets":118},"0.340.1","2026-11-07T10:46:27Z",[26,117,89],340,[119,124],{"fileName":120,"sizeMb":121,"sha256":122,"downloadCount":83,"originUrl":123},"strawberry_graphql-0.340.1-py3-none-any.whl",0.37,"d4b2d090129077143caa5394b2c81af344a5e172d2529103e385622905aef00f","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.340.1\u002Fstrawberry_graphql-0.340.1-py3-none-any.whl",{"fileName":125,"sizeMb":97,"sha256":126,"downloadCount":56,"originUrl":127},"strawberry_graphql-0.340.1.tar.gz","678cdde42e600499254c8b4d84912ec37cc3c84f64af6b9681f18805676998f1","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.340.1\u002Fstrawberry_graphql-0.340.1.tar.gz",{"tag":129,"publishAt":130,"semVer":131,"prerelease":57,"assets":132},"0.340.0","2026-11-05T17:21:04Z",[26,117,26],[133,137],{"fileName":134,"sizeMb":121,"sha256":135,"downloadCount":56,"originUrl":136},"strawberry_graphql-0.340.0-py3-none-any.whl","e818cff04e94be34bad0b11e7cb94f485592ebb33ad30074c8980c79ef910f82","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.340.0\u002Fstrawberry_graphql-0.340.0-py3-none-any.whl",{"fileName":138,"sizeMb":97,"sha256":139,"downloadCount":73,"originUrl":140},"strawberry_graphql-0.340.0.tar.gz","efc4c0cbd3972d2b6598fdda18175788f35d62206183e30e9978ef22b6c7083d","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.340.0\u002Fstrawberry_graphql-0.340.0.tar.gz",{"tag":142,"publishAt":143,"semVer":144,"prerelease":57,"assets":146},"0.339.2","2026-11-05T16:59:48Z",[26,145,73],339,[147,151],{"fileName":148,"sizeMb":121,"sha256":149,"downloadCount":73,"originUrl":150},"strawberry_graphql-0.339.2-py3-none-any.whl","85cd89bc8f5d57951dc734d778e392bc9249792586d8310abd32e0d0e7aef2b3","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.339.2\u002Fstrawberry_graphql-0.339.2-py3-none-any.whl",{"fileName":152,"sizeMb":97,"sha256":153,"downloadCount":89,"originUrl":154},"strawberry_graphql-0.339.2.tar.gz","32f438bf39e3934aaaccf2043fc4b6170e700be4ad50b6985337b1209127d90c","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.339.2\u002Fstrawberry_graphql-0.339.2.tar.gz",{"tag":156,"publishAt":157,"semVer":158,"prerelease":57,"assets":159},"0.339.1","2026-10-31T22:58:55Z",[26,145,89],[160,165],{"fileName":161,"sizeMb":121,"sha256":162,"downloadCount":163,"originUrl":164},"strawberry_graphql-0.339.1-py3-none-any.whl","574b28acf609cc8ee150c47e290a7bf5aaf1274aa7c52242fca00aec2e1a8146",8,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.339.1\u002Fstrawberry_graphql-0.339.1-py3-none-any.whl",{"fileName":166,"sizeMb":97,"sha256":167,"downloadCount":168,"originUrl":169},"strawberry_graphql-0.339.1.tar.gz","16e8ac770dcbd6946b5725845e9b8b8c68aa3f811766627bda3902b00c928e23",6,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.339.1\u002Fstrawberry_graphql-0.339.1.tar.gz",[171,190,205,222,245,259],{"owner":172,"repo":172,"repoId":173,"category":49,"subgroup":50,"language":19,"tags":174,"starCount":182,"ownerUid":183,"latestTag":184,"platforms":185,"lastReleaseTime":187,"downloadCount":188,"description":189},"pytorch",65600975,[175,176,177,178,179,180,46,181],"autograd","deep-learning","gpu","machine-learning","neural-network","numpy","tensor",105169,21003710,"v2.15.0",[186],"other","2026-10-28T17:09:49Z",49,"PyTorch 是一个 Python 深度学习框架，提供带 GPU 加速的张量计算与基于动态图的自动求导，是科研与生产中训练神经网络的主流选择之一。",{"owner":191,"repo":192,"repoId":193,"category":49,"subgroup":50,"language":19,"tags":194,"starCount":198,"ownerUid":199,"latestTag":200,"platforms":201,"lastReleaseTime":202,"downloadCount":203,"description":204},"Lightning-AI","pytorch-lightning",178626720,[195,196,197,176,178,46,172],"ai","artificial-intelligence","data-science",31418,58386951,"2.6.6",[186],"2026-09-10T09:39:52Z",11025,"PyTorch Lightning 是一个深度学习训练框架（Python），把反向传播、混合精度、多 GPU 与分布式训练等工程代码自动化，让同一份模型代码从单卡扩展到上万卡而无需改动。",{"owner":206,"repo":207,"repoId":208,"category":49,"subgroup":50,"language":209,"tags":210,"starCount":215,"ownerUid":216,"latestTag":217,"platforms":218,"lastReleaseTime":219,"downloadCount":220,"description":221},"dmlc","xgboost",16587283,"C++",[211,212,213,214,178,207],"distributed-systems","gbdt","gbm","gbrt",28892,11508361,"v3.3.1",[186],"2026-09-15T08:48:08Z",113,"XGBoost 是一个优化的分布式梯度提升库（C++ 核心，提供 Python、R、Java 等多语言绑定），以高效并行的树提升算法解决表格数据上的分类与回归问题，可运行到数十亿样本规模。",{"owner":223,"repo":224,"repoId":225,"category":195,"subgroup":50,"language":209,"tags":226,"starCount":235,"ownerUid":236,"latestTag":237,"platforms":238,"lastReleaseTime":242,"downloadCount":243,"description":244},"lightgbm-org","LightGBM",64991887,[227,228,229,212,213,214,230,231,232,178,233,46,234],"data-mining","decision-trees","distributed","gradient-boosting","kaggle","lightgbm","parallel","r",18831,266222920,"v4.7.0",[239,240,241,186],"windows","mac","linux","2026-07-18T20:20:12Z",760,"一款基于决策树算法的高效、分布式梯度提升（GBDT）框架，用于排序、分类等机器学习任务。",{"owner":246,"repo":247,"repoId":248,"category":195,"subgroup":50,"language":209,"tags":249,"starCount":252,"ownerUid":253,"latestTag":254,"platforms":255,"lastReleaseTime":256,"downloadCount":257,"description":258},"google-deepmind","mujoco",400501136,[247,250,251],"physics","robotics",18367,8596759,"4.0.1",[239,240,241],"2026-11-11T15:47:30Z",6058,"一个由Google DeepMind维护的通用物理引擎，用于机器人、生物力学、图形和机器学习等领域的快速、精确仿真。",{"owner":260,"repo":261,"repoId":262,"category":49,"subgroup":50,"language":19,"tags":263,"starCount":283,"ownerUid":284,"latestTag":285,"platforms":286,"lastReleaseTime":287,"downloadCount":145,"description":288},"quantumlib","Cirq",114306758,[264,265,266,267,268,269,46,270,271,272,273,274,275,276,277,278,279,280,281,282],"algorithms","api","cirq","google","google-quantum","nisq","quantum","quantum-algorithms","quantum-circuit","quantum-circuit-simulator","quantum-computer-simulator","quantum-computing","quantum-development-kit","quantum-information","quantum-programming","quantum-programming-language","quantum-simulation","sdk","simulation",5086,31279789,"v1.7.0",[186],"2026-06-30T18:44:40Z","Cirq 是 Google 开源的 Python 量子电路框架，用于创建、编辑与运行 NISQ 量子电路，可在内置模拟器或真实量子硬件上执行。",{"description":290,"readmeHtml":291},"Strawberry 是基于 Python 类型注解的 GraphQL 库，用 dataclasses 风格定义 schema，支持 Django、FastAPI、Starlette 等多种服务端集成。","\u003Ch2 id=\"项目概述\">项目概述\u003C\u002Fh2>\u003Cp>Strawberry 是一个利用 Python 类型注解构建 GraphQL API 的库，schema 直接由带 \u003Ccode>@strawberry.type\u003C\u002Fcode> 装饰器的类定义，风格类似 dataclasses。它支持 asyncio 与多种异步框架，内置开发服务器与 GraphiQL 调试界面，并提供 mypy 插件对 GraphQL schema 做静态检查。代码优先的方式让接口定义与业务代码保持同源。\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>项目\u003C\u002Fth>\n\u003Cth>内容\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>语言\u003C\u002Ftd>\n\u003Ctd>Python\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>类型\u003C\u002Ftd>\n\u003Ctd>GraphQL 库（代码优先）\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>集成\u003C\u002Ftd>\n\u003Ctd>Django、FastAPI、Starlette、Flask 等\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>异步\u003C\u002Ftd>\n\u003Ctd>asyncio 支持\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>许可\u003C\u002Ftd>\n\u003Ctd>MIT\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cblockquote>\n\u003Cp>类型注解即 schema，静态检查交给 mypy。\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"主要功能\">主要功能\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>注解定义 schema\u003C\u002Fstrong>：用类与类型注解直接声明 GraphQL 类型与字段\u003C\u002Fli>\n\u003Cli>\u003Cstrong>异步支持\u003C\u002Fstrong>：基于 asyncio 的解析器，适配现代异步框架\u003C\u002Fli>\n\u003Cli>\u003Cstrong>多框架集成\u003C\u002Fstrong>：提供 Django、FastAPI、Starlette、Flask、Quart 等视图集成\u003C\u002Fli>\n\u003Cli>\u003Cstrong>开发服务器\u003C\u002Fstrong>：\u003Ccode>strawberry dev\u003C\u002Fcode> 一条命令启动带 GraphiQL 的调试服务\u003C\u002Fli>\n\u003Cli>\u003Cstrong>mypy 插件\u003C\u002Fstrong>：对 schema 做静态类型检查，提前发现类型问题\u003C\u002Fli>\n\u003Cli>\u003Cstrong>数据加载\u003C\u002Fstrong>：配合 dataloader 减少重复查询\u003C\u002Fli>\n\u003Cli>\u003Cstrong>订阅支持\u003C\u002Fstrong>：支持 GraphQL subscriptions 实时推送\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"适用人群\">适用人群\u003C\u002Fh2>\u003Cul>\n\u003Cli>Python 后端开发者\u003C\u002Fli>\n\u003Cli>寻找 Ariadne、graphene 替代方案的用户\u003C\u002Fli>\n\u003Cli>FastAPI 与异步框架用户\u003C\u002Fli>\n\u003Cli>重视类型检查与 IDE 提示的团队\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"快速上手\">快速上手\u003C\u002Fh2>\u003Col>\n\u003Cli>安装带 CLI 的完整包：\u003Ccode>pip install &#39;strawberry-graphql[cli]&#39;\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>创建 \u003Ccode>app.py\u003C\u002Fcode> 定义 schema\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-python\">import strawberry\n\n@strawberry.type\nclass User:\n    name: str\n    age: int\n\n@strawberry.type\nclass Query:\n    @strawberry.field\n    def user(self) -&gt; User:\n        return User(name='Patrick', age=100)\n\nschema = strawberry.Schema(query=Query)\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"3\">\n\u003Cli>启动开发服务器：\u003Ccode>strawberry dev app\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>打开 \u003Ccode>http:\u002F\u002F0.0.0.0:8000\u002Fgraphql\u003C\u002Fcode> 在 GraphiQL 中测试\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch2 id=\"核心优势\">核心优势\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>代码即文档\u003C\u002Fstrong>：schema 与业务代码同源，避免两套定义漂移\u003C\u002Fli>\n\u003Cli>\u003Cstrong>类型检查友好\u003C\u002Fstrong>：mypy 插件把 GraphQL 类型纳入静态检查\u003C\u002Fli>\n\u003Cli>\u003Cstrong>异步优先\u003C\u002Fstrong>：原生支持 asyncio，发挥异步框架性能\u003C\u002Fli>\n\u003Cli>\u003Cstrong>集成广泛\u003C\u002Fstrong>：主流 Python Web 框架都有现成集成\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"系统要求\">系统要求\u003C\u002Fh2>\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>项目\u003C\u002Fth>\n\u003Cth>要求\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>语言\u003C\u002Ftd>\n\u003Ctd>Python 3\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>操作系统\u003C\u002Ftd>\n\u003Ctd>Linux、macOS、Windows\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>工具链\u003C\u002Ftd>\n\u003Ctd>pip 安装，开发协作用 uv\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"注意事项\">注意事项\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>版本演进快\u003C\u002Fstrong>：功能更新活跃，升级前留意变更日志\u003C\u002Fli>\n\u003Cli>\u003Cstrong>集成需单独引入\u003C\u002Fstrong>：Django 集成需安装 \u003Ccode>strawberry-graphql-django\u003C\u002Fcode> 扩展包\u003C\u002Fli>\n\u003C\u002Ful>\n",1795754205970]