The Real Python Podcast

Using GraphQL in Django With Strawberry & Prototype Purgatory


Listen Later

How do you integrate GraphQL into your Python web development? How about quickly building graph-based APIs inside Django’s battery-included framework? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

Christopher shares a recent tutorial for building GraphQL APIs in Django using the Python library Strawberry. The tutorial digs into creating a project, defining models, and creating GraphQL queries and mutations using Strawberry.

We discuss a blog post from Nat Bennet titled “Why do prototypes suck?” We dig into the common pitfalls of building prototypes and the misconceptions between developers and end users.

We also share several other articles and projects from the Python community, including a news roundup, using HTMX with FastAPI, creating an unbelievably stupid airline Wi-Fi package, extracting wisdom from conference videos, writing pixel images to the terminal, and a macOS app for Jupyter Notebooks.

This episode is sponsored by Mailtrap.

Course Spotlight: Building a URL Shortener With FastAPI and Python

In this video course, you’ll build an app to create and manage shortened URLs. Your Python URL shortener can receive a full target URL and return a shortened URL. You’ll also use the automatically created documentation of FastAPI to try out your API endpoints.

Topics:

  • 00:00:00 – Introduction
  • 00:02:27 – Python 3.13.0 Beta 4 Released
  • 00:03:15 – Using HTMX With FastAPI
  • 00:09:51 – Free, Unbelievably Stupid Wi-Fi on Long-Haul Flights
  • 00:13:37 – Sponsor: Mailtrap
  • 00:14:13 – “Extracting Wisdom” From Conference Videos
  • 00:22:34 – Developing GraphQL APIs in Django With Strawberry
  • 00:30:01 – Video Course Spotlight
  • 00:31:33 – Why do prototypes suck?
  • 00:42:53 – Satyrn: macOS App for Jupyter Notebooks
  • 00:46:41 – rich-pixels: A Rich-compatible library for writing pixel images
  • 00:48:23 – Thanks and goodbye
  • News:

    • Python 3.13.0 Beta 4 Released
    • Topics:

      • Using HTMX With FastAPI – This tutorial looks at how use HTMX with FastAPI by creating a simple todo web app and deploying it on Render.
      • Free, Unbelievably Stupid Wi-Fi on Long-Haul Flights – Deep in a need to procrastinate on a flight between London and San Francisco, Robert discovered that changing his name on an airline’s frequent flyer account was free over the plane’s WiFi. What’s a developer to do? Work on their tickets? No, create an entire TCP/IP protocol using this loophole. The result is the PySkyWiFi package.
      • “Extracting Wisdom” From Conference Videos – There are so many conferences and so many videos, you can’t possibly watch them all. This post shows you how to extract information to summarize a talk so you can quickly decide what you want to watch.
      • Developing GraphQL APIs in Django With Strawberry – This tutorial details how to integrate GraphQL with Django using Strawberry.
      • Discussion:

        • Why do prototypes suck?
        • Project:

          • Satyrn: macOS App for Jupyter Notebooks
          • darrenburns/rich-pixels: A Rich-compatible library for writing pixel images and ASCII art to the terminal.
          • Additional Links:

            • htmx - high power tools for html
            • Using FastAPI to Build Python Web APIs – Real Python
            • Ollama
            • fabric: An open-source framework for augmenting humans using AI
            • A modern GraphQL library for Python - 🍓 Strawberry GraphQL
            • Satyrn Discord
            • Level up your Python skills with our expert-led courses:

              • Sneaky REST APIs With Django Ninja
              • Building a URL Shortener With FastAPI and Python
              • Python REST APIs With FastAPI
              • Support the podcast & join our community of Pythonistas

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

                The Real Python PodcastBy Real Python

                • 4.7
                • 4.7
                • 4.7
                • 4.7
                • 4.7

                4.7

                134 ratings


                More shows like The Real Python Podcast

                View all
                Hanselminutes with Scott Hanselman by Scott Hanselman

                Hanselminutes with Scott Hanselman

                378 Listeners

                Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

                Software Engineering Radio - the podcast for professional software developers

                262 Listeners

                The Changelog: Software Development, Open Source by Changelog Media

                The Changelog: Software Development, Open Source

                285 Listeners

                LINUX Unplugged by Jupiter Broadcasting

                LINUX Unplugged

                263 Listeners

                Thoughtworks Technology Podcast by Thoughtworks

                Thoughtworks Technology Podcast

                43 Listeners

                Talk Python To Me by Michael Kennedy

                Talk Python To Me

                585 Listeners

                Software Engineering Daily by Software Engineering Daily

                Software Engineering Daily

                630 Listeners

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

                Super Data Science: ML & AI Podcast with Jon Krohn

                295 Listeners

                Python Bytes by Michael Kennedy and Brian Okken

                Python Bytes

                212 Listeners

                Data Engineering Podcast by Tobias Macey

                Data Engineering Podcast

                142 Listeners

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

                Syntax - Tasty Web Development Treats

                984 Listeners

                CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

                CoRecursive: Coding Stories

                185 Listeners

                DataFramed by DataCamp

                DataFramed

                267 Listeners

                Practical AI by Practical AI LLC

                Practical AI

                196 Listeners

                The Stack Overflow Podcast by The Stack Overflow Podcast

                The Stack Overflow Podcast

                63 Listeners