Building GraphQL APIs in Django with Graphene

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • graph_wrap

    Transform a Django REST Framework or Tastypie based API into a fully compliant GraphQL API.

  • u/deyemiee u/dontworryimnotacop this is kind of partially what I hoped to address with https://github.com/PaulGilmartin/graph_wrap, which builds you a graphene API at runtime based on your Django REST API

  • strawberry

    A GraphQL library for Python that leverages type annotations 🍓

  • https://strawberry.rocks feels a lot more pythonic using dataclassed, typing for GraphQL schema building.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Hasura

    Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.

  • Still waiting for some killer library to come along and make it all easier (something like https://hasura.io/ maybe?), but until then REST/JSON-RPC continue to do the job predictably and reliably with minimal confusion.

  • fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

  • We just use plain old Django to build standard REST APIs that return JSON. Occasionally we'll sprinkle in some https://fastapi.tiangolo.com/ or DRF, but most of the time we don't even use those unless we're building a really huge app.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts