[{"data":1,"prerenderedAt":278},["ShallowReactive",2],{"repo-strawberry-graphql-strawberry-zh-CN":3,"i18n-strawberry-graphql-strawberry-zh-CN":275},{"mirrorPool":4,"detail":13,"relatedProjects":168},[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\u002Fgithub.xxlab.tech\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",4724,"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.8,0.3,0.1,0,[],"https:\u002F\u002Fstrawberry.rocks","2026-10-26","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F48071860?v=4","Strawberry GraphQL","A Python library for creating GraphQL APIs","2026-10-26T14:11:42.752582+00:00","2026-10-26T12:30:53Z",[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,84,97,110,126,139,154],{"tag":53,"publishAt":34,"semVer":54,"prerelease":56,"assets":57},"0.338.0",[26,55,26],338,false,[58,64],{"fileName":59,"sizeMb":60,"sha256":61,"downloadCount":62,"originUrl":63},"strawberry_graphql-0.338.0-py3-none-any.whl",0.37,"2be983dcaed17daa0501799cf524dafd53aab44ac178530aa3b6eb6d99b6943f",1,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.338.0\u002Fstrawberry_graphql-0.338.0-py3-none-any.whl",{"fileName":65,"sizeMb":66,"sha256":67,"downloadCount":62,"originUrl":68},"strawberry_graphql-0.338.0.tar.gz",0.28,"74396fa0d968286c839dcf24a54c6a799d83d72fe8ea8f653765d1407707e6a8","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.338.0\u002Fstrawberry_graphql-0.338.0.tar.gz",{"tag":70,"publishAt":71,"semVer":72,"prerelease":56,"assets":75},"0.337.2","2026-10-25T10:07:10Z",[26,73,74],337,2,[76,80],{"fileName":77,"sizeMb":60,"sha256":78,"downloadCount":74,"originUrl":79},"strawberry_graphql-0.337.2-py3-none-any.whl","5d8fd1836efc1cd15721298c62fe6ae6e4ff7861046e407761f6fed24c0bdd22","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.337.2\u002Fstrawberry_graphql-0.337.2-py3-none-any.whl",{"fileName":81,"sizeMb":66,"sha256":82,"downloadCount":74,"originUrl":83},"strawberry_graphql-0.337.2.tar.gz","d19a21d16804c9e4344a309bb628282ae7c8a63501ae461c4aa9cd42d716f1df","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.337.2\u002Fstrawberry_graphql-0.337.2.tar.gz",{"tag":85,"publishAt":86,"semVer":87,"prerelease":56,"assets":88},"0.337.1","2026-10-25T10:01:40Z",[26,73,62],[89,93],{"fileName":90,"sizeMb":60,"sha256":91,"downloadCount":62,"originUrl":92},"strawberry_graphql-0.337.1-py3-none-any.whl","39e546954499ab7b66709de179af404a46f3cd29249b0acc634ce326be667d8f","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.337.1\u002Fstrawberry_graphql-0.337.1-py3-none-any.whl",{"fileName":94,"sizeMb":66,"sha256":95,"downloadCount":62,"originUrl":96},"strawberry_graphql-0.337.1.tar.gz","eea74e4f0cf9250194817ed886d39d59546513afd6a8e2bc8350fdd74d0cea3f","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.337.1\u002Fstrawberry_graphql-0.337.1.tar.gz",{"tag":98,"publishAt":99,"semVer":100,"prerelease":56,"assets":101},"0.337.0","2026-10-24T23:51:57Z",[26,73,26],[102,106],{"fileName":103,"sizeMb":60,"sha256":104,"downloadCount":74,"originUrl":105},"strawberry_graphql-0.337.0-py3-none-any.whl","568a3197148057732739a3cd85ffb5323640fc6d3e39e973d6275f07c0eb889e","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.337.0\u002Fstrawberry_graphql-0.337.0-py3-none-any.whl",{"fileName":107,"sizeMb":66,"sha256":108,"downloadCount":74,"originUrl":109},"strawberry_graphql-0.337.0.tar.gz","ac6f8f9c2e2c9fb88a0a8912d3ab6c4788040c8d60420ccdb5b37cb8bc0b8923","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.337.0\u002Fstrawberry_graphql-0.337.0.tar.gz",{"tag":111,"publishAt":112,"semVer":113,"prerelease":56,"assets":115},"0.336.2","2026-10-20T12:19:22Z",[26,114,74],336,[116,121],{"fileName":117,"sizeMb":118,"sha256":119,"downloadCount":62,"originUrl":120},"strawberry_graphql-0.336.2-py3-none-any.whl",0.34,"5d0514e0e9a4c5be1f009c668d53ef7e50d4e3d908d0656377cf5e81fbede7bf","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.336.2\u002Fstrawberry_graphql-0.336.2-py3-none-any.whl",{"fileName":122,"sizeMb":123,"sha256":124,"downloadCount":62,"originUrl":125},"strawberry_graphql-0.336.2.tar.gz",0.26,"766a22ff3ec4ca82162c7088f77771e8e4e5fa0594e4c14e113f9e171d94a685","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.336.2\u002Fstrawberry_graphql-0.336.2.tar.gz",{"tag":127,"publishAt":128,"semVer":129,"prerelease":56,"assets":130},"0.336.1","2026-10-20T11:39:05Z",[26,114,62],[131,135],{"fileName":132,"sizeMb":118,"sha256":133,"downloadCount":62,"originUrl":134},"strawberry_graphql-0.336.1-py3-none-any.whl","43a75d06fa5f41adc787b9776ec837b4dfc88189f8c8369c7eec2a4c3994da43","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.336.1\u002Fstrawberry_graphql-0.336.1-py3-none-any.whl",{"fileName":136,"sizeMb":123,"sha256":137,"downloadCount":62,"originUrl":138},"strawberry_graphql-0.336.1.tar.gz","290c503eb0936c0d62b70c2644510ed99fef5b5a9099a0aab3d44f0fea68cdd4","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.336.1\u002Fstrawberry_graphql-0.336.1.tar.gz",{"tag":140,"publishAt":141,"semVer":142,"prerelease":56,"assets":143},"0.336.0","2026-10-17T09:40:25Z",[26,114,26],[144,149],{"fileName":145,"sizeMb":118,"sha256":146,"downloadCount":147,"originUrl":148},"strawberry_graphql-0.336.0-py3-none-any.whl","95ceaae6c4f616cdef1261ca005894ef23bc4c595949c3612a8621a2dbe8479d",4,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.336.0\u002Fstrawberry_graphql-0.336.0-py3-none-any.whl",{"fileName":150,"sizeMb":151,"sha256":152,"downloadCount":147,"originUrl":153},"strawberry_graphql-0.336.0.tar.gz",0.25,"d1d66292fa4c8dd9611e893aa930c8f9895d03c42b7231aa776e7a58ee4ea167","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.336.0\u002Fstrawberry_graphql-0.336.0.tar.gz",{"tag":155,"publishAt":156,"semVer":157,"prerelease":56,"assets":159},"0.335.0","2026-10-14T12:02:24Z",[26,158,26],335,[160,164],{"fileName":161,"sizeMb":118,"sha256":162,"downloadCount":74,"originUrl":163},"strawberry_graphql-0.335.0-py3-none-any.whl","db7f7ababc945367c81bfc3936c5b1a0718021fc6f9b413348ba6d98a5ff860d","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.335.0\u002Fstrawberry_graphql-0.335.0-py3-none-any.whl",{"fileName":165,"sizeMb":151,"sha256":166,"downloadCount":62,"originUrl":167},"strawberry_graphql-0.335.0.tar.gz","9c8d7340c14387824c1b9c0e5fed3ee8c55a2482aee9ce0f62c2aea9bc93a0df","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry\u002Freleases\u002Fdownload\u002F0.335.0\u002Fstrawberry_graphql-0.335.0.tar.gz",[169,188,203,220,241,261],{"owner":170,"repo":170,"repoId":171,"category":49,"subgroup":50,"language":19,"tags":172,"starCount":180,"ownerUid":181,"latestTag":182,"platforms":183,"lastReleaseTime":185,"downloadCount":186,"description":187},"pytorch",65600975,[173,174,175,176,177,178,46,179],"autograd","deep-learning","gpu","machine-learning","neural-network","numpy","tensor",104936,21003710,"v2.14.1",[184],"other","2026-09-30T19:14:48Z",2205,"PyTorch 是一个 Python 深度学习框架，提供带 GPU 加速的张量计算与基于动态图的自动求导，是科研与生产中训练神经网络的主流选择之一。",{"owner":189,"repo":190,"repoId":191,"category":49,"subgroup":50,"language":19,"tags":192,"starCount":196,"ownerUid":197,"latestTag":198,"platforms":199,"lastReleaseTime":200,"downloadCount":201,"description":202},"Lightning-AI","pytorch-lightning",178626720,[193,194,195,174,176,46,170],"ai","artificial-intelligence","data-science",31418,58386951,"2.6.6",[184],"2026-09-10T09:39:52Z",11025,"PyTorch Lightning 是一个深度学习训练框架（Python），把反向传播、混合精度、多 GPU 与分布式训练等工程代码自动化，让同一份模型代码从单卡扩展到上万卡而无需改动。",{"owner":204,"repo":205,"repoId":206,"category":49,"subgroup":50,"language":207,"tags":208,"starCount":213,"ownerUid":214,"latestTag":215,"platforms":216,"lastReleaseTime":217,"downloadCount":218,"description":219},"dmlc","xgboost",16587283,"C++",[209,210,211,212,176,205],"distributed-systems","gbdt","gbm","gbrt",28892,11508361,"v3.3.1",[184],"2026-09-15T08:48:08Z",113,"XGBoost 是一个优化的分布式梯度提升库（C++ 核心，提供 Python、R、Java 等多语言绑定），以高效并行的树提升算法解决表格数据上的分类与回归问题，可运行到数十亿样本规模。",{"owner":221,"repo":222,"repoId":223,"category":193,"subgroup":50,"language":207,"tags":224,"starCount":231,"ownerUid":232,"latestTag":233,"platforms":234,"lastReleaseTime":238,"downloadCount":239,"description":240},"microsoft","onnxruntime",156939672,[225,174,226,176,227,228,170,229,230],"ai-framework","hardware-acceleration","neural-networks","onnx","scikit-learn","tensorflow",22180,6154722,"v1.31.1",[235,236,237],"windows","mac","linux","2026-10-26T19:29:51Z",563,"微软开源的跨平台机器学习推理和训练加速器，支持PyTorch、TensorFlow\u002FKeras等深度学习框架及scikit-learn、LightGBM等经典机器学习库。",{"owner":242,"repo":243,"repoId":244,"category":193,"subgroup":50,"language":207,"tags":245,"starCount":254,"ownerUid":255,"latestTag":256,"platforms":257,"lastReleaseTime":258,"downloadCount":259,"description":260},"lightgbm-org","LightGBM",64991887,[246,247,248,210,211,212,249,250,251,176,252,46,253],"data-mining","decision-trees","distributed","gradient-boosting","kaggle","lightgbm","parallel","r",18831,266222920,"v4.7.0",[235,236,237,184],"2026-07-18T20:20:12Z",760,"一款基于决策树算法的高效、分布式梯度提升（GBDT）框架，用于排序、分类等机器学习任务。",{"owner":262,"repo":263,"repoId":264,"category":193,"subgroup":50,"language":207,"tags":265,"starCount":268,"ownerUid":269,"latestTag":270,"platforms":271,"lastReleaseTime":272,"downloadCount":273,"description":274},"google-deepmind","mujoco",400501136,[263,266,267],"physics","robotics",15835,8596759,"3.17.0",[235,236,237],"2026-10-22T21:45:20Z",320,"一个由Google DeepMind维护的通用物理引擎，用于机器人、生物力学、图形和机器学习等领域的快速、精确仿真。",{"description":276,"readmeHtml":277},"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",1793197951805]