strawberry-graphql-django
Strawberry GraphQL Django extension
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a real problem—bridging Django models to GraphQL without manual type duplication. It supports current Python versions and includes practical features (query optimization, pagination, permissions) that would otherwise require custom code. No known vulnerabilities. Suitable for both new GraphQL projects and retrofitting GraphQL onto existing Django applications.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 5.2 or 6.0 and Python 3.10 or later; asgiref and strawberry-graphql are runtime dependencies.
- Low friction install with a pure-Python wheel.
- Actively maintained with a release 8 days old and recent commits; the project has 501 GitHub stars and supports current Python versions.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-08-06 (8 days) · last repo commit 2026-08-11 · 501 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,365,443 downloads/mo, #3,999 on PyPI
Alternatives
Verify before relying
pip install strawberry-graphql-django
from django.db import models
class Fruit(models.Model):
name = models.CharField(max_length=20)
# In types.py, decorate your model with the integration
# Then import and use in your schema with strawberry-graphql- Whether the automatic query optimizer works for all relationship types without manual tuning.
- Performance characteristics when handling large datasets or deeply nested queries.
- Compatibility with custom Django model managers or non-standard ORM patterns.
- Exact syntax and import patterns for the decorator-based type generation workflow.
What it is and what it does
Strawberry GraphQL Django bridges Django models and GraphQL APIs by automatically generating GraphQL types, fields, and resolvers from your model definitions, eliminating boilerplate type definitions. The package includes built-in support for filtering, pagination (both offset and cursor-based), ordering, and Django's authentication and permission system. It also includes a query optimizer that automatically applies select_related and prefetch_related to prevent N+1 database queries.
You define your Django models normally, apply decorators, and the package generates a working GraphQL schema. It integrates with Django views (both sync and async), forms, and validation. The result is a GraphiQL interface at a URL you specify, ready to query your data with full type safety and optimized database access.
Use it for
- Build a GraphQL API from an existing Django application without rewriting model definitions.
- Generate CRUD mutations automatically for Django models with built-in validation.
- Implement filtering and pagination on GraphQL queries backed by Django ORM queries.
- Prevent N+1 database queries in GraphQL resolvers using automatic query optimization.
- Expose Django authentication and permission checks in a GraphQL schema.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive license, and solves a real problem—bridging Django models to GraphQL without manual type duplication. It supports current Python versions and includes practical features (query optimization, pagination, permissions) that would otherwise require custom code. No known vulnerabilities. Suitable for both new GraphQL projects and retrofitting GraphQL onto existing Django applications.
Install
strawberry-graphql-django on PyPI
Before you install
Low friction install with a pure-Python wheel. Actively maintained with a release 8 days old and recent commits; the project has 501 GitHub stars and supports current Python versions.
Requires Django 5.2 or 6.0 and Python 3.10 or later; asgiref and strawberry-graphql are runtime dependencies.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install strawberry-graphql-django
from django.db import models
class Fruit(models.Model):
name = models.CharField(max_length=20)
# In types.py, decorate your model with the integration
# Then import and use in your schema with strawberry-graphql
Verify before relying
- Whether the automatic query optimizer works for all relationship types without manual tuning.
- Performance characteristics when handling large datasets or deeply nested queries.
- Compatibility with custom Django model managers or non-standard ORM patterns.
- Exact syntax and import patterns for the decorator-based type generation workflow.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesasgirefdjangostrawberry-graphql |
| Maintenance | Actively maintained 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,365,443 / month, #3,999 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: strawberry_graphql_django-0.87.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “automatic graphql types from models”
- strawberry-graphql-djangoGenerates GraphQL types, queries, mutations, and resolvers…
- graphene-djangoGraphene-Django bridges Django models and GraphQL APIs, automatically…
- graphene-pydanticConverts Pydantic models into GraphQL object types and input types…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also strawberry-graphql · graphene-django · ariadne-codegen · gql · ariadne · graphene-django-optimizer · graphql-relay · django-graphql-jwt · django-graphiql-debug-toolbar · algoliasearch-django