graphene
GraphQL Framework for Python
Decision gist · record as of 2026-08-14
Yes, with conditions. Graphene is production-stable (Development Status 5) and has zero known vulnerabilities. However, the 643-day gap since the last release raises a maintenance concern—verify that the project's release cadence matches your risk tolerance. The aging status and reliance on external integrations for framework support mean you should confirm that your specific stack has an actively maintained integration package.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel distribution.
- Maintenance status is aging—last release was 643 days ago—but the repository remains active with recent commits and substantial community engagement (8234 stars).
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations.
last release 2024-11-09 (643 days) · last repo commit 2025-09-04 · 8,234 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 41,575,770 downloads/mo, #671 on PyPI
Alternatives
Verify before relying
pip install graphene
import graphene
class Query(graphene.ObjectType):
hello = graphene.String()
def resolve_hello(self, info):
return 'World'
schema = graphene.Schema(query=Query)
result = schema.execute('{ hello }')- Whether the 643-day gap since last release indicates active maintenance or maintenance hiatus despite recent commits
- Python version floor and ceiling support (classifiers list 3.8–3.13 but requires_python is unspecified)
- Current maintenance status of framework-specific integrations (graphene-django, graphene-sqlalchemy, graphene-mongo)
What it is and what it does
Graphene is a declarative GraphQL framework for Python that lets you define schemas using Python classes and decorators rather than raw GraphQL schema strings. It handles type resolution, field mapping, and query execution, and integrates with popular ORMs and databases through separate packages. The library depends on graphql-core for the GraphQL execution engine, graphql-relay for Relay cursor pagination support, python-dateutil for date handling, and typing-extensions for type hints.
You define your schema by subclassing graphene.ObjectType, declaring fields as class attributes, and writing resolver methods. Graphene then converts this into a GraphQL schema that can execute queries. It supports Relay-style pagination out of the box and works with any data source—SQL databases, NoSQL stores, or plain Python objects—by writing custom resolvers.
Use it for
- Build a GraphQL API on top of a Django application using framework-specific integration
- Expose a SQLAlchemy ORM model as a queryable GraphQL endpoint
- Implement Relay-style cursor pagination for large result sets in a GraphQL schema
- Define custom GraphQL types and resolvers for non-database data sources
- Create a federated GraphQL schema compatible with Apollo Federation
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Graphene is production-stable (Development Status 5) and has zero known vulnerabilities. However, the 643-day gap since the last release raises a maintenance concern—verify that the project's release cadence matches your risk tolerance. The aging status and reliance on external integrations for framework support mean you should confirm that your specific stack has an actively maintained integration package.
Install
graphene on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 643 days ago—but the repository remains active with recent commits and substantial community engagement (8234 stars).
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations.
Quickstart
pip install graphene
import graphene
class Query(graphene.ObjectType):
hello = graphene.String()
def resolve_hello(self, info):
return 'World'
schema = graphene.Schema(query=Query)
result = schema.execute('{ hello }')
Verify before relying
- Whether the 643-day gap since last release indicates active maintenance or maintenance hiatus despite recent commits
- Python version floor and ceiling support (classifiers list 3.8–3.13 but requires_python is unspecified)
- Current maintenance status of framework-specific integrations (graphene-django, graphene-sqlalchemy, graphene-mongo)
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesgraphql-coregraphql-relaypython-dateutiltyping-extensions |
| Maintenance | Aging 643 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 41,575,770 / month, #671 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries |
Evidence: graphene-3.4.3-py2.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 › “graphql schema builder python”
- grapheneGraphene is a Python library for building GraphQL schemas and types…
- strawberry-graphqlStrawberry GraphQL is a Python library for building GraphQL APIs…
- ariadne-codegenGenerates fully typed, asynchronous Python GraphQL clients from a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also graphene-django · graphene-federation · graphene-sqlalchemy · graphene-file-upload · graphene-django-optimizer · ariadne · graphene-pydantic · starlette-graphene3 · graphql-relay · gql