The Python Podcast.__init__

Building GraphQL APIs in Python Using Graphene with Syrus Akbary


Listen Later

Summary

The web has spawned numerous methods for communicating between applications, including protocols such as SOAP, XML-RPC, and REST. One of the newest entrants is GraphQL which promises a simplified approach to client development and reduced network requests. To make implementing these APIs in Python easier, Syrus Akbary created the Graphene project. In this episode he explains the origin story of Graphene, how GraphQL compares to REST, how you can start using it in your applications, and how he is working to make his efforts sustainable.

Preface
  • Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.
  • When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so check out Linode. With 200 Gbit/s private networking, scalable shared block storage, node balancers, and a 40 Gbit/s public network, all controlled by a brand new API you’ve got everything you need to scale up. Go to pythonpodcast.com/linode to get a $20 credit and launch a new server in under a minute.
  • And to keep track of how your team is progressing on building new features and squashing bugs, you need a project management system designed by software engineers, for software engineers. Clubhouse lets you craft a workflow that fits your style, including per-team tasks, cross-project epics, a large suite of pre-built integrations, and a simple API for crafting your own. Podcast.__init__ listeners get 2 months free on any plan by going to pythonpodcast.com/clubhouse today and signing up for a trial.
  • Visit the site to subscribe to the show, sign up for the newsletter, and read the show notes. And if you have any questions, comments, or suggestions I would love to hear them. You can reach me on Twitter at @Podcast__init__ or email [email protected])
  • To help other people find the show please leave a review on iTunes, or Google Play Music, tell your friends and co-workers, and share it on social media.
  • Join the community in the new Zulip chat workspace at pythonpodcast.com/chat
  • Your host as usual is Tobias Macey and today I’m interviewing Syrus Akbary about Graphene, a python library for building your APIs with GraphQL
  • Interview
    • Introductions
    • How did you get introduced to Python?
    • What is GraphQL and what is the benefit vs a REST-based API?
      • How does it compare to specifications such as OpenAPI (formerly Swagger) or RAML?

      • Can you explain what Graphene is and your motivation for building it?

        • In addition to the Python implementation there is also a JavaScript library. Is that primarily for use as a client or can it also be used in Node for serving APIs?

        • What is involved in building a GraphQL API?

          • What does Graphene do to simplify this process?

          • How is Graphene implemented and how has that evolved since you first started working on it?

            • Is there a set of tests for verifying the compliance of Graphene or a specific API with the GraphQL specification?

            • What are some of the most complex or confusing aspects of building a GraphQL API?

            • What are some of the unique capabilities that are offered by building an application with GraphQL as the communication interface?

            • While reading through documentation in preparation for our conversation I noticed the Quiver project. Can you explain what that is and how it fits with the other Graphene projects?

              • What is it doing under the hood to optimize serving of the API?

              • For someone who is interested in adding a GraphQL interface to an existing application, what would be involved?

              • The documentation mentions creation of a schema, as well as defining queries. Is it possible for a client to craft queries that don’t match directly with those defined in the server layer?

              • What are some of the most interesting or surprising uses of Graphene and GraphQL that you have seeen?

              • What are some cases where it would be more practical to implement an API using REST instead of GraphQL?

              • What are some references that you would recommend for anyone who wants to learn more about GraphQL and its ecosystem?

              • What are your plans for the future of Graphene?

              • Keep In Touch
                • syrusakbary on GitHub
                • Website
                • @syrusakbary on Twitter
                • Picks
                  • Tobias
                    • Audible

                    • Syrus

                      • Web Assembly

                      • Links
                        • Graphene
                        • GraphQL
                        • REST (REpresentational State Transfer
                        • OpenAPI
                        • RAML
                        • PHP
                        • Facebook Engineering
                        • Graphene-SQLAlchemy
                        • Graphene-Django
                        • GraphiQL
                        • PyJade
                        • Django Rest Framework
                        • How To GraphQL
                        • Python 3.7 Dataclasses
                          • Graphene GitHub Issue

                          • The intro and outro music is from Requiem for a Fish The Freak Fandango Orchestra / CC BY-SA

                            ...more
                            View all episodesView all episodes
                            Download on the App Store

                            The Python Podcast.__init__By Tobias Macey

                            • 4.4
                            • 4.4
                            • 4.4
                            • 4.4
                            • 4.4

                            4.4

                            100 ratings


                            More shows like The Python Podcast.__init__

                            View all
                            The Changelog: Software Development, Open Source by Changelog Media

                            The Changelog: Software Development, Open Source

                            283 Listeners

                            Data Skeptic by Kyle Polich

                            Data Skeptic

                            482 Listeners

                            Chat With Traders by Tessa Dao

                            Chat With Traders

                            1,979 Listeners

                            Talk Python To Me by Michael Kennedy

                            Talk Python To Me

                            593 Listeners

                            Software Engineering Daily by Software Engineering Daily

                            Software Engineering Daily

                            624 Listeners

                            The TWIML AI Podcast (formerly This Week in Machine Learning & Artificial Intelligence) by Sam Charrington

                            The TWIML AI Podcast (formerly This Week in Machine Learning & Artificial Intelligence)

                            445 Listeners

                            Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

                            Super Data Science: ML & AI Podcast with Jon Krohn

                            298 Listeners

                            Python Bytes by Michael Kennedy and Brian Okken

                            Python Bytes

                            215 Listeners

                            Data Engineering Podcast by Tobias Macey

                            Data Engineering Podcast

                            142 Listeners

                            Machine Learning Guide by OCDevel

                            Machine Learning Guide

                            764 Listeners

                            Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

                            Syntax - Tasty Web Development Treats

                            982 Listeners

                            DataFramed by DataCamp

                            DataFramed

                            267 Listeners

                            Practical AI by Practical AI LLC

                            Practical AI

                            189 Listeners

                            The Real Python Podcast by Real Python

                            The Real Python Podcast

                            140 Listeners

                            Hard Fork by The New York Times

                            Hard Fork

                            5,426 Listeners