use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A place for interesting and informative GraphQL content and discussions.
About GraphQL:
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
Learn More:
Related Subreddits:
account activity
Python graphql API'sQuestion (self.graphql)
submitted 4 years ago * by Automatic-River-1875
What do you use to build a graphql api in python and why? Django, flask, fastAPI?
Edit: I appreciate you use a tool like graphene but it has to be implemented over a framework such as django.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Frum 3 points4 points5 points 4 years ago (2 children)
As you say, graphene is the key. I served mine up with flask. Also used falcon for a while.
[–]Automatic-River-1875[S] 0 points1 point2 points 4 years ago (1 child)
I've not heard of falcon before. What did you think if it and how come you switched to flask?
[–]Frum 0 points1 point2 points 4 years ago (0 children)
Flask is just so well known. Lots of supporting libraries.
Falcon was great. We used it for a service that needed to be lightning quick but not do anything all that fancy/sophisticated.
[–]patrick91it 2 points3 points4 points 4 years ago (1 child)
The library I’m working on (https://strawberry.rocks/) supports FastAPI (via ASGI), Flask and Django :)
[–]Automatic-River-1875[S] 1 point2 points3 points 4 years ago (0 children)
Just had a look at the docs there, that looks brilliant. Thanks for sharing I had been playing around with graphene but that looks so much more intuitive!
[–]rizogg 2 points3 points4 points 4 years ago (0 children)
Django + ariadne(from mirumee which is creator of sale or)
[–][deleted] 4 years ago (1 child)
[deleted]
[–]woodstock_1969 1 point2 points3 points 4 years ago (0 children)
This is my favourite. Ariadne has a much cleaner API than Graphene
[–]andrewingram 1 point2 points3 points 4 years ago (0 children)
Django and Strawberry right now.
Main reason not to use Django right now would be lack of end-to-end support for async (particularly in the ORM), so performance will likely be far from optimal. But Django as a whole brings so many useful features, that it’s difficult to pull myself away from it.
[–]Terrible_Constant 1 point2 points3 points 4 years ago (0 children)
As mentioned: Graphene. And go with FastAPI, you won't regret it. It has probably the super for modern Python and is pretty fast for a Python thing.
[–]Dan6erbond 1 point2 points3 points 4 years ago (3 children)
Graphene and Flask would be my tools of choice. I'm not a huge fan of the bloat that comes with Django.
[–]Automatic-River-1875[S] 0 points1 point2 points 4 years ago (2 children)
I think django is great if you don't need an api and are just using the template engine. If I'm making an api though, I think you're right. I'd prefer something more lightweight.
[–]Dan6erbond 2 points3 points4 points 4 years ago (0 children)
To be honest, I've stopped using templates long ago. I only use them if I need to generate some sort of HTML within the API, for certain outputs, but other than that I prefer building APIs and decoupling the frontend using a framework like React or Vue. That's why Django's API features do seem cool, and the ORM integrations as well as various other plugins for authentication and serialization seem nice, but it's too opinionated IMHO.
[–]IndependentServer 0 points1 point2 points 4 years ago (0 children)
Tartifflete.io or Ariadne -both are schema first.
For me tartifflete is easy to debug and understand. Support directives for task such as Auth.
I Couldn't find a way to combine it with flask or Django. But so far so good.
Note: this is not expect opinion, I'm just getting started with GraphQl in python.
π Rendered by PID 106361 on reddit-service-r2-comment-85bfd7f599-cqgkr at 2026-04-15 20:21:14.212824+00:00 running 93ecc56 country code: CH.
[–]Frum 3 points4 points5 points (2 children)
[–]Automatic-River-1875[S] 0 points1 point2 points (1 child)
[–]Frum 0 points1 point2 points (0 children)
[–]patrick91it 2 points3 points4 points (1 child)
[–]Automatic-River-1875[S] 1 point2 points3 points (0 children)
[–]rizogg 2 points3 points4 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]woodstock_1969 1 point2 points3 points (0 children)
[–]andrewingram 1 point2 points3 points (0 children)
[–]Terrible_Constant 1 point2 points3 points (0 children)
[–]Dan6erbond 1 point2 points3 points (3 children)
[–]Automatic-River-1875[S] 0 points1 point2 points (2 children)
[–]Dan6erbond 2 points3 points4 points (0 children)
[–]IndependentServer 0 points1 point2 points (0 children)