[{"data":1,"prerenderedAt":297},["ShallowReactive",2],{"repo-strawberry-graphql-strawberry-django-zh-CN":3,"i18n-strawberry-graphql-strawberry-django-zh-CN":294},{"mirrorPool":4,"detail":13,"relatedProjects":154},[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":25,"homepage":26,"pushedAt":27,"ownerAvatar":28,"ownerName":29,"ownerBio":30,"lastSyncTime":31,"lastReleaseTime":32,"tags":33,"license":36,"category":37,"subgroup":38,"releases":39},"strawberry-graphql","strawberry-django",308695886,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django",504,"Python","Strawberry GraphQL Django extension",{"Python":22,"HTML":23,"Makefile":24},99.8,0.2,0,[],"https:\u002F\u002Fstrawberry.rocks\u002Fdocs\u002Fdjango","2026-10-19","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F48071860?v=4","Strawberry GraphQL","A Python library for creating GraphQL APIs","2026-10-20T10:23:58.319521+00:00","2026-10-10T14:28:37Z",[34,35,14],"django","graphql","MIT","development","开发库\u002F框架",[40,57,73,87,100,113,127,141],{"tag":41,"publishAt":32,"semVer":42,"prerelease":44,"assets":45},"0.93.0",[24,43,24],93,false,[46,52],{"fileName":47,"sizeMb":48,"sha256":49,"downloadCount":50,"originUrl":51},"strawberry_graphql_django-0.93.0-py3-none-any.whl",0.12,"d0bb99865b808b444d7f87297e7e111ef4f36b39a968ea23e8222a30793284da",1,"https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.93.0\u002Fstrawberry_graphql_django-0.93.0-py3-none-any.whl",{"fileName":53,"sizeMb":54,"sha256":55,"downloadCount":50,"originUrl":56},"strawberry_graphql_django-0.93.0.tar.gz",0.09,"f3ee0d36f09d308451c68c652803e4be10f064a8dc4a6c92a1d2657a66e1ae8d","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.93.0\u002Fstrawberry_graphql_django-0.93.0.tar.gz",{"tag":58,"publishAt":59,"semVer":60,"prerelease":44,"assets":63},"0.92.3","2026-10-05T15:41:23Z",[24,61,62],92,3,[64,69],{"fileName":65,"sizeMb":66,"sha256":67,"downloadCount":50,"originUrl":68},"strawberry_graphql_django-0.92.3-py3-none-any.whl",0.11,"e738c62e2ec9f7121df26092a42dadda2e2012a153744d6b792939c015fe0a07","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.3\u002Fstrawberry_graphql_django-0.92.3-py3-none-any.whl",{"fileName":70,"sizeMb":54,"sha256":71,"downloadCount":50,"originUrl":72},"strawberry_graphql_django-0.92.3.tar.gz","3eef9abc0c14f7ba6b2c0fd3537058e5b0d7826b18e08db6bb730ee42d323ce3","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.3\u002Fstrawberry_graphql_django-0.92.3.tar.gz",{"tag":74,"publishAt":75,"semVer":76,"prerelease":44,"assets":78},"0.92.2","2026-10-05T14:53:22Z",[24,61,77],2,[79,83],{"fileName":80,"sizeMb":66,"sha256":81,"downloadCount":50,"originUrl":82},"strawberry_graphql_django-0.92.2-py3-none-any.whl","80c466a8d46534b08dff7c87b11958abeb320999cdbf4ef04a9c5cf92caf3cde","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.2\u002Fstrawberry_graphql_django-0.92.2-py3-none-any.whl",{"fileName":84,"sizeMb":54,"sha256":85,"downloadCount":50,"originUrl":86},"strawberry_graphql_django-0.92.2.tar.gz","d8555decd418cd2020e965b5db3ca348477fba2e1b31acf2d94037ab92da0a4c","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.2\u002Fstrawberry_graphql_django-0.92.2.tar.gz",{"tag":88,"publishAt":89,"semVer":90,"prerelease":44,"assets":91},"0.92.1","2026-10-04T10:03:52Z",[24,61,50],[92,96],{"fileName":93,"sizeMb":48,"sha256":94,"downloadCount":62,"originUrl":95},"strawberry_graphql_django-0.92.1-py3-none-any.whl","7720784311d2b4e6d3ef751b8f2c13fd4a30250b7315dcc8a7be0879dd637410","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.1\u002Fstrawberry_graphql_django-0.92.1-py3-none-any.whl",{"fileName":97,"sizeMb":54,"sha256":98,"downloadCount":62,"originUrl":99},"strawberry_graphql_django-0.92.1.tar.gz","6a37f8c890b8ca6ecbd1ddb3d7071d379d8c94c8b7ab5c0357ba6b6b9033b96b","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.1\u002Fstrawberry_graphql_django-0.92.1.tar.gz",{"tag":101,"publishAt":102,"semVer":103,"prerelease":44,"assets":104},"0.92.0","2026-10-01T15:48:54Z",[24,61,24],[105,109],{"fileName":106,"sizeMb":48,"sha256":107,"downloadCount":77,"originUrl":108},"strawberry_graphql_django-0.92.0-py3-none-any.whl","1bc612636aa1cc3379bfe109ee708594d15bc0ba29237b1d68d9fc4e98b583d0","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.0\u002Fstrawberry_graphql_django-0.92.0-py3-none-any.whl",{"fileName":110,"sizeMb":54,"sha256":111,"downloadCount":77,"originUrl":112},"strawberry_graphql_django-0.92.0.tar.gz","bf89857d4ac23484bcaff1cc9f335e3047fb64308ec358c720786b9b105f095f","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.92.0\u002Fstrawberry_graphql_django-0.92.0.tar.gz",{"tag":114,"publishAt":115,"semVer":116,"prerelease":44,"assets":118},"0.91.0","2026-10-01T15:34:14Z",[24,117,24],91,[119,123],{"fileName":120,"sizeMb":48,"sha256":121,"downloadCount":50,"originUrl":122},"strawberry_graphql_django-0.91.0-py3-none-any.whl","a803a0465bd7c0a9ca0ddff8e0cec8c73789f51ce234efe235b8612a1e109ffe","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.91.0\u002Fstrawberry_graphql_django-0.91.0-py3-none-any.whl",{"fileName":124,"sizeMb":54,"sha256":125,"downloadCount":50,"originUrl":126},"strawberry_graphql_django-0.91.0.tar.gz","284bb982221a5f33dff1e9c2c444db6fdc6748e0e92feac1318b700d060e01d6","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.91.0\u002Fstrawberry_graphql_django-0.91.0.tar.gz",{"tag":128,"publishAt":129,"semVer":130,"prerelease":44,"assets":132},"0.90.1","2026-09-30T16:53:36Z",[24,131,50],90,[133,137],{"fileName":134,"sizeMb":48,"sha256":135,"downloadCount":50,"originUrl":136},"strawberry_graphql_django-0.90.1-py3-none-any.whl","86ff6105afba687950199de4d7969a2fb62d329e751881579bbff39398e2dee7","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.90.1\u002Fstrawberry_graphql_django-0.90.1-py3-none-any.whl",{"fileName":138,"sizeMb":54,"sha256":139,"downloadCount":50,"originUrl":140},"strawberry_graphql_django-0.90.1.tar.gz","44bd0bcf9fd60254d8a69947da6b0bfb730e608ea24ebd26c68f0cbab0403028","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.90.1\u002Fstrawberry_graphql_django-0.90.1.tar.gz",{"tag":142,"publishAt":143,"semVer":144,"prerelease":44,"assets":145},"0.90.0","2026-09-26T09:37:02Z",[24,131,24],[146,150],{"fileName":147,"sizeMb":48,"sha256":148,"downloadCount":77,"originUrl":149},"strawberry_graphql_django-0.90.0-py3-none-any.whl","4a80ff7b8b3ea0f37bd9e24f283b4cf225f4088c26a60e023a7492c2e0a23d3f","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.90.0\u002Fstrawberry_graphql_django-0.90.0-py3-none-any.whl",{"fileName":151,"sizeMb":54,"sha256":152,"downloadCount":77,"originUrl":153},"strawberry_graphql_django-0.90.0.tar.gz","c77ae586dbc04c95b9964fa8f431d08952e5efdab0b3ad2076d9f086331f8f58","https:\u002F\u002Fgithub.com\u002Fstrawberry-graphql\u002Fstrawberry-django\u002Freleases\u002Fdownload\u002F0.90.0\u002Fstrawberry_graphql_django-0.90.0.tar.gz",[155,189,212,240,258,278],{"owner":156,"repo":157,"repoId":158,"category":37,"subgroup":38,"language":19,"tags":159,"starCount":179,"ownerUid":180,"latestTag":181,"platforms":182,"lastReleaseTime":186,"downloadCount":187,"description":188},"unslothai","unsloth",725205304,[160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,157],"agent","ai","chatgpt","deepseek","fine-tuning","gemma","image-generation","llama","llm","llms","openai","python","qwen","reinforcement-learning","self-hosted","stable-diffusion","text-to-speech","tts","ui",78618,150920049,"v0.1.911-beta",[183,184,185],"windows","mac","linux","2026-10-26T14:23:54Z",12443,"一个用于加速大型语言模型（LLM）微调的开源库，支持大幅降低显存占用并提升训练速度。",{"owner":190,"repo":191,"repoId":192,"category":37,"subgroup":38,"language":19,"tags":193,"starCount":205,"ownerUid":206,"latestTag":207,"platforms":208,"lastReleaseTime":209,"downloadCount":210,"description":211},"openbq-org","OpenBB",323048702,[161,194,195,196,197,198,199,200,201,202,171,203,204],"crypto","derivatives","economics","equity","finance","fixed-income","machine-learning","openbb","options","quantitative-finance","stocks",74466,328144346,"ODP",[183,184],"2026-09-30T01:47:43Z",1099,"OpenBB 是面向分析师、量化研究员和 AI Agent 的开放金融数据平台，以 Python 库与 REST API 形式聚合股票、期权、加密货币、宏观经济等多源数据，一次接入多处消费。",{"owner":213,"repo":214,"repoId":215,"category":37,"subgroup":38,"language":19,"tags":216,"starCount":232,"ownerUid":233,"latestTag":234,"platforms":235,"lastReleaseTime":237,"downloadCount":238,"description":239},"pathwaycom","pathway",571186647,[217,218,219,220,221,222,223,224,225,226,214,171,227,228,229,230,231],"batch-processing","data-analytics","data-pipelines","data-processing","dataflow","etl","etl-framework","iot-analytics","kafka","machine-learning-algorithms","real-time","rust","stream-processing","streaming","time-series-analysis",62092,25750857,"v0.32.1",[236],"other","2026-08-01T09:17:35Z",359,"Pathway 是一个 Python ETL 框架，统一处理批数据与流数据，适用于流处理、实时分析、LLM 管道与 RAG，底层由基于 Differential Dataflow 的 Rust 引擎驱动。",{"owner":241,"repo":242,"repoId":243,"category":37,"subgroup":38,"language":19,"tags":244,"starCount":251,"ownerUid":252,"latestTag":253,"platforms":254,"lastReleaseTime":255,"downloadCount":256,"description":257},"psf","requests",1362490,[245,246,247,248,249,171,250,242],"client","cookies","forhumans","http","humans","python-requests",54522,50630501,"v2.34.2",[236],"2026-05-14T19:27:15Z",1182,"Requests 是 Python 最流行的 HTTP 客户端库，用极简 API 发送 HTTP\u002F1.1 请求，自动处理查询串、表单编码、Cookie、认证与压缩解码。",{"owner":259,"repo":260,"repoId":261,"category":37,"subgroup":38,"language":19,"tags":262,"starCount":271,"ownerUid":272,"latestTag":273,"platforms":274,"lastReleaseTime":275,"downloadCount":276,"description":277},"run-llama","llama_index",560704231,[263,264,265,164,266,267,168,268,269,270],"agents","application","data","framework","llamaindex","multi-agents","rag","vector-database",52579,130722866,"v0.14.25",[236],"2026-09-21T16:22:27Z",35,"LlamaIndex 是一个面向大语言模型应用的开源数据框架（Python），提供数据连接器、索引、查询引擎与 Agent 编排，把私有数据接入 LLM 构建 RAG 与智能体应用。",{"owner":279,"repo":280,"repoId":281,"category":37,"subgroup":38,"language":19,"tags":282,"starCount":287,"ownerUid":288,"latestTag":289,"platforms":290,"lastReleaseTime":291,"downloadCount":292,"description":293},"pandas-dev","pandas",858127,[283,284,285,286,280,171],"alignment","data-analysis","data-science","flexible",50247,21206976,"v3.1.0",[236],"2026-10-22T13:20:42Z",164,"pandas 是 Python 最流行的数据分析与处理库，提供类似 R data.frame 的带标签数据结构 Series 与 DataFrame，覆盖清洗、对齐、分组聚合、时间序列等日常数据工作全流程。",{"description":295,"readmeHtml":296},"strawberry-django 是 Strawberry GraphQL 的 Django 集成扩展，可从 Django 模型自动生成 GraphQL 类型、查询与变更，并内置过滤、分页与查询优化能力。","\u003Ch2 id=\"项目概述\">项目概述\u003C\u002Fh2>\u003Cp>strawberry-django 是 Strawberry GraphQL 框架的 Django 扩展，为 Django 项目提供完整的 GraphQL 接入方案。它能基于 Django 模型自动生成带类型安全的 GraphQL 类型、查询、变更与解析器，并内置过滤、排序、分页与权限体系。配合查询优化器可自动改写数据库查询，避免 N+1 问题。\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>Django、Strawberry\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>MIT\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cblockquote>\n\u003Cp>用类型注解把 Django 模型直接变成 GraphQL API，少写一半样板代码。\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"主要功能\">主要功能\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>自动类型生成\u003C\u002Fstrong>：从 Django 模型生成 GraphQL 类型，全程类型安全\u003C\u002Fli>\n\u003Cli>\u003Cstrong>高级过滤\u003C\u002Fstrong>：支持 contains、exact、in 等查找表达式的过滤体系\u003C\u002Fli>\n\u003Cli>\u003Cstrong>分页方案\u003C\u002Fstrong>：内置 offset 与 Relay 游标两种分页\u003C\u002Fli>\n\u003Cli>\u003Cstrong>结果排序\u003C\u002Fstrong>：按任意字段自动生成排序参数\u003C\u002Fli>\n\u003Cli>\u003Cstrong>CRUD 变更\u003C\u002Fstrong>：自动生成创建、更新、删除变更并带校验\u003C\u002Fli>\n\u003Cli>\u003Cstrong>查询优化\u003C\u002Fstrong>：自动 \u003Ccode>select_related\u003C\u002Fcode> 与 \u003Ccode>prefetch_related\u003C\u002Fcode>，消除 N+1 查询\u003C\u002Fli>\n\u003Cli>\u003Cstrong>认证权限\u003C\u002Fstrong>：接入 Django 认证体系，权限规则灵活可配\u003C\u002Fli>\n\u003Cli>\u003Cstrong>调试工具\u003C\u002Fstrong>：集成 GraphiQL 与 Django Debug Toolbar 便于排查查询\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"适用人群\">适用人群\u003C\u002Fh2>\u003Cul>\n\u003Cli>Django 项目引入 GraphQL 的开发者\u003C\u002Fli>\n\u003Cli>需要强类型 API 层的团队\u003C\u002Fli>\n\u003Cli>从 Django REST 迁移或并存 GraphQL 的项目\u003C\u002Fli>\n\u003Cli>关注查询性能的后端工程师\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"快速上手\">快速上手\u003C\u002Fh2>\u003Col>\n\u003Cli>安装扩展：\u003Ccode>pip install strawberry-graphql-django\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>用装饰器声明 GraphQL 类型\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-python\">import strawberry_django\nfrom strawberry import auto\nfrom . import models\n\n@strawberry_django.type(models.Fruit)\nclass Fruit:\n    id: auto\n    name: auto\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"3\">\n\u003Cli>定义查询并启用优化器构建 schema\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-python\">import strawberry\nimport strawberry_django\nfrom strawberry_django.optimizer import DjangoOptimizerExtension\n\n@strawberry.type\nclass Query:\n    fruits: list[Fruit] = strawberry_django.field()\n\nschema = strawberry.Schema(query=Query, extensions=[DjangoOptimizerExtension])\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"4\">\n\u003Cli>在 \u003Ccode>urls.py\u003C\u002Fcode> 挂载视图：\u003Ccode>path(&#39;graphql\u002F&#39;, AsyncGraphQLView.as_view(schema=schema))\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>访问 \u003Ccode>http:\u002F\u002Flocalhost:8000\u002Fgraphql\u002F\u003C\u002Fcode> 在 GraphiQL 中调试\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch2 id=\"核心优势\">核心优势\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>样板代码少\u003C\u002Fstrong>：模型到类型的映射自动完成，接口层代码量大幅下降\u003C\u002Fli>\n\u003Cli>\u003Cstrong>查询性能好\u003C\u002Fstrong>：优化器按请求字段自动裁剪 SQL，避免 N+1\u003C\u002Fli>\n\u003Cli>\u003Cstrong>类型安全\u003C\u002Fstrong>：与 Strawberry 类型体系一致，mypy 校验友好\u003C\u002Fli>\n\u003Cli>\u003Cstrong>贴合 Django\u003C\u002Fstrong>：认证、权限、校验直接复用 Django 现成机制\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>Django\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>依赖\u003C\u002Ftd>\n\u003Ctd>strawberry-graphql\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"注意事项\">注意事项\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>版本配套\u003C\u002Fstrong>：需与 strawberry-graphql 主库版本保持配套升级\u003C\u002Fli>\n\u003Cli>\u003Cstrong>优化器需显式开启\u003C\u002Fstrong>：\u003Ccode>DjangoOptimizerExtension\u003C\u002Fcode> 要加入 schema 扩展才会生效\u003C\u002Fli>\n\u003C\u002Ful>\n",1793229097690]