Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Graphene

graphene-python.org

  • Free plan
  • Linux
  • Self-hosted

What Graphene is

Graphene is a free Python library for developers building GraphQL APIs with a code-first approach. Developers describe server data in a statically typed schema, and queries can return only the data requested. Graphene works with data from Django, SQLAlchemy, Mongo, and custom Python objects. Its documentation lists integrations for Django, Flask, SQLAlchemy, Google App Engine, Mongo, Starlette, and FastAPI, and compatibility with GraphQL clients including Relay, Apollo, and gql. Relay utilities cover nodes, connections, and mutations. The documented execution topics include middleware, dataloading, file uploads, subscriptions, and query validation. Security topics include query-depth limits and disabling introspection. A test client can simulate queries and mutations and inspect responses. Graphene is installed with pip and is intended for self-hosted Linux use. The README gives `pip install "graphene>=3.1"` as an installation command. The quickstart for its documented Graphene 3.0 setup lists Python 3.6 through 3.10 and PyPy. The project identifies its license as MIT and invites participation through Discord and open issues.

Who it suits

Graphene suits Python developers building and operating their own GraphQL APIs. It can fit projects using the documented framework integrations or GraphQL clients such as Relay, Apollo, and gql.

Good to know, and what to watch

  • Defines APIs with a statically typed schema.
  • Supports several documented framework integrations.
  • Includes a client for testing queries and mutations.
  • MIT-licensed and free to use.
  • The documented Graphene 3.0 setup lists Python 3.6 through 3.10 and PyPy.
  • The listed deployment model is self-hosted.
  • The project is a Python library, not a hosted service.

Graphene

Free

Free plan

The verdict

Graphene gives Python developers schema-based tools for building GraphQL APIs, with integrations, Relay utilities, and query-testing support. It is a self-hosted library, so teams need to operate it within their own setup.

What the maker publishes

Data sources
Graphene supports data from Django, SQLAlchemy, Mongo, and custom Python objects. source
Execution features
The documentation covers middleware, dataloading, file uploads, subscriptions, and query validation. source
Framework integrations
The documentation lists integrations for Django, Flask, SQLAlchemy, Google App Engine, Mongo, Starlette, and FastAPI. source
GraphQL clients
The project says Graphene is compatible with GraphQL clients including Relay, Apollo, and gql. source
Headquarters
San Francisco, United States source
Installation
The project README gives `pip install "graphene>=3.1"` as its installation command. source
Intended users
The project describes Graphene as a library for developers building GraphQL APIs in Python. source
License
The project repository identifies its license as MIT. source
Purpose
Graphene is a Python library for building GraphQL APIs using a code-first approach. source
Python requirements
The quickstart lists Python 3.6 through 3.10 and PyPy as requirements for its documented Graphene 3.0 setup. source
Relay support
Graphene provides support and utilities for integrating Relay, including nodes, connections, and mutations. source
Schema and responses
It lets developers define server data in a statically typed schema and return only the data requested by a query. source
Security controls
The documentation includes query validation topics for depth limits and disabling introspection. source
Support and community
The project repository invites users to join its community on Discord and contribute through open issues. source
Testing
Graphene includes a test client for simulating queries and mutations and inspecting responses. source

Checked against the maker's pages on 8 Oct 2026.