The Real Python Podcast

The Real Python Podcast

By Real PythonTechnology
Download on the App Store

The Real Python Podcast episodes

  • Planning a Faster Future at the Python Language Summit

    Do you wonder what the future may hold for the Python language? Are there speed improvements coming soon? What if you could be in the room while the core developers discuss Python’s future? This week on the show, we have Joanna Jablonski, who was invited to the Python Language Summit 2021 as a journalist to summarize and document the event.

    A small group of core developers from the Python community gather to work toward a healthy future for the language. Through presentations and group discussions, they share insights, ideas, and potential problems.

    Joanna has been the executive editor at Real Python and she was invited to write a series of blog posts for the Python Software Foundation (PSF) that summarize the presentations and deeper conversations of the summit. We walk through the two days and discuss the topics covered.

    Several of the presentations focused on performance and speeding up CPython. There were conversations about packaging, documentation, the standard library, handling exceptions, testing, and more.

    Course Spotlight: Defining and Calling Python Functions

    In this course, you’ll learn how to define and call your own Python function. You’ll also learn about passing data to your function and returning data from your function back to its calling environment.

    Topics:

    • 00:00:00 – Introduction
    • 00:01:58 – What is the Python Language Summit?
    • 00:06:44 – How do you summarize the talks?
    • 00:08:17 – Terminology and technological level of the conversations
    • 00:13:02 – PEP 654 — Exception Groups and except*
    • 00:16:10 – Sponsor: Sentry
    • 00:17:12 – Progress on Running Multiple Python Interpreters in Parallel in the Same Process
    • 00:18:15 – CPython Performance Improvements at Instagram
    • 00:20:41 – Making CPython Faster
    • 00:23:22 – HPy — Present and Future
    • 00:25:07 – Lightning Talks, Round 1
    • 00:31:03 – Video Course Spotlight
    • 00:32:34 – The Challenges of Packaging Python for a Linux Distro
    • 00:36:12 – The Python Documentation Work Group
    • 00:39:11 – What Is the stdlib?
    • 00:42:07 – What Should I Work on as a Core Dev?
    • 00:44:34 – Fuzzing and Testing Python With Properties
    • 00:46:00 – Lightning Talks, Round 2
    • 00:53:41 – What are you excited about in the world of Python?
    • 00:54:46 – What do you want to learn next?
    • 00:55:57 – Shout out and social connections
    • 00:56:57 – Thanks and goodbye
    • Show Links:

      • Joanna Jablonski: Real Python Profile
      • Joanna Jablonski - Personal Site
      • Joanna’s Twitter
      • The 2021 Python Language Summit
      • The 2021 Python Language Summit: Welcome, Introductions, Guidelines
      • PEP 654 — Exception Groups and except*
      • Progress on Running Multiple Python Interpreters in Parallel in the Same Process
      • CPython Performance Improvements at Instagram
      • Making CPython Faster
      • HPy — Present and Future
      • Lightning Talks, Round 1
      • The Challenges of Packaging Python for a Linux Distro
      • The Python Documentation Work Group
      • What Is the stdlib?
      • What Should I Work on as a Core Dev?
      • Fuzzing and Testing Python With Properties
      • Lightning Talks, Round 2
      • Additional Links:

        • PEP 654 – Exception Groups and except*: Python Developer’s Guide PEP Index
        • Cinder: Instagram’s internal performance-oriented production version of CPython 3.8
        • CircuitPython: The easiest way to program microcontrollers
        • ABI - Application Binary Interface
        • Tiers of Execution in a high-performance interpreter for CPython
        • Mort, Elvis, Einstein, and You: Coding Horror
        • Ren’Py: A visual novel engine
        • Level up your Python skills with our expert-led courses:

          • Test-Driven Development With pytest
          • Python Inner Functions
          • Defining and Calling Python Functions
          • Support the podcast & join our community of Pythonistas

            59 min
          • Exploring the functools Module and Complex Numbers in Python

            Are you ready to expand your Python knowledge into the intermediate to advanced territory? What tools are awaiting your discovery inside Python’s functools module? This week on the show, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects.

            We discuss an article about the functools module, which adds functionality for caching, function overloading, better definitions for decorated functions, and more. David talks about a new Real Python article about working with complex numbers in Python. We also cover a tutorial about troubleshooting memory problems in Python.

            We cover several other articles and projects from the Python community including, DevOps interview questions, correlation analysis in Python, pivot and plot data with pandas, how to use Python and OpenCV to play online chess with a real chessboard, and generating hardware pinout diagrams as SVG images.

            Course Spotlight: Python Decorators 101

            In this course on Python decorators, you’ll learn what they are and how to create and use them. Decorators provide a simple syntax for calling higher-order functions in Python. By definition, a decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it.

            Topics:

            • 00:00:00 – Introduction
            • 00:01:56 – The Future of FastAPI and Pydantic Is Bright
            • 00:04:33 – Simplify Complex Numbers With Python
            • 00:10:37 – Functools: The Power of Higher-Order Functions in Python
            • 00:18:40 – Sponsor: Sentry
            • 00:19:42 – How to Pivot and Plot Data With Pandas
            • 00:23:06 – devops-exercises: DevOps Interview Questions
            • 00:32:09 – Video Course Spotlight
            • 00:33:25 – Correlation Analysis 101 in Python
            • 00:39:28 – How to Troubleshoot Memory Problems in Python
            • 00:46:16 – Use Python and OpenCV to Play Online Chess With a Real Chessboard
            • 00:49:28 – pinout: Generate Hardware Pinout Diagrams as SVG Images
            • 00:54:21 – Thanks and goodbyes
            • Show Links:

              The Future of FastAPI and Pydantic Is Bright – Not long ago there was some chatter on the internet about a change in Python 3.10 that would impact Python projects that check types at runtime. The discussion centered around FastAPI and Pydantic and had some folks worried about the future of those projects. In this article, FastAPI’s creator explains what the discussion was all about and why the future of FastAPI and Pydantic remains bright.

              Simplify Complex Numbers With Python – In this tutorial, you’ll learn about the unique treatment of complex numbers in Python. Complex numbers are a convenient tool for solving scientific and engineering problems. You’ll experience the elegance of using complex numbers in Python with several hands-on examples.

              Functools: The Power of Higher-Order Functions in Python – The functools module is one of the “hidden gems” of the Python standard library. This article takes you on a tour of everything in functools. You’ll learn how to implement caching, function overloading, and a whole lot more.

              How to Pivot and Plot Data With Pandas – One of the challenges of working with data is knowing how to manipulate the data format for a particular analysis. And there’s no single correct format. You need to know how to melt, pivot, and transpose data into a format that fits whatever you’re analyzing. If you enjoy this article, be sure to also check out Stefanie’s Pandas Workshop.

              devops-exercises: DevOps Interview Questions

              Correlation Analysis 101 in Python – Correlation analysis is a useful part of exploratory data analysis. It can help you identify potential relationships between various features of your data. In this helpful guide, you’ll learn how to do correlation analysis in a pandas DataFrame. You’ll see how to display a correlation matrix as a heatmap and explore some guidelines for identifying when correlation might imply causation.

              How to Troubleshoot Memory Problems in Python – Memory problems can be frustrating. They’re hard to diagnose and fix, and memory issues in Python applications can be especially frustrating thanks to the language’s garbage collection system. In this article, you’ll learn a six-step process for troubleshooting memory problems that the EvalML team used to solve a tricky problem with their library.

              Projects:

              • play-online-chess-with-real-chess-board: Use Python and OpenCV to Play Online Chess With a Real Chessboard
              • pinout: Generate Hardware Pinout Diagrams as SVG Images
              • Additional Links:

                • functools: Python 3 Documentation
                • Primer on Python Decorators: Real Python Guide
                • Caching in Python Using the LRU Cache Strategy: Real Python Article
                • Caching in Python With lru_cache: Real Python Video Course
                • Measuring Memory Usage in Python: It’s Tricky!
                • Fritzing: Electronics Made Easy
                • KiCad EDA: A Cross Platform and Open Source Electronics Design Automation Suite
                • PcbDraw: Convert your KiCAD boards into nice looking 2D drawings
                • Four stages of competence: Wikipedia article
                • Level up your Python skills with our expert-led courses:

                  • Python Decorators 101
                  • Plot With pandas: Python Data Visualization Basics
                  • Python Inner Functions
                  • Support the podcast & join our community of Pythonistas

                    56 min
                  • Securing Your Python Software Supply Chain With Dustin Ingram

                    How well do you know your software supply chain? When you PIP install a package, what steps can you take to minimize the risk of installing something malicious? This week on the show, we have Dustin Ingram, a director of the Python Software Foundation (PSF) and a maintainer of the Python Package Index (PyPI).

                    We talk about Dustin’s PyCon 2021 talk titled “Secure Software Supply Chains for Python”. Dustin shares the types of attacks you should be aware of and how you can make your supply chain more trustworthy. We cover tools, techniques, and best practices.

                    Dustin also discusses what it takes to keep the Python Package Index running and the players working to keep it going into the future.

                    Course Spotlight: A Beginner’s Guide to Pip

                    This course is a great introduction to pip for those who are getting started Python, and for those who want to understand more about what is happening when you install new packages into your environment. It’s a worthy investment of your time to understand the fundamentals of pip.

                    Topics:

                    • 00:00:00 – Introduction
                    • 00:01:51 – Developer Advocate at Google
                    • 00:04:34 – A director of the PSF
                    • 00:06:27 – A maintainer of PyPI
                    • 00:12:29 – Secure Software Supply Chains for Python - PyCon 2021
                    • 00:15:53 – Do I need to be a security expert as a Python developer?
                    • 00:17:23 – Typo-squatting of package names
                    • 00:19:46 – Sponsor: Scout APM
                    • 00:20:52 – Dependency confusion and private repos
                    • 00:26:00 – What are some best practices?
                    • 00:31:55 – How to lessen the scale of “I don’t know what I don’t know”?
                    • 00:36:33 – Tools and techniques that can help
                    • 00:44:11 – Video Course Spotlight
                    • 00:45:30 – Namespaces on PyPI
                    • 00:53:03 – What does it take to power the Python Package Index?
                    • 01:01:57 – What are you excited about in the world of Python?
                    • 01:03:55 – What do you want to learn next?
                    • 01:05:52 – What is something you thought you knew about Python, but were wrong about it?
                    • 01:08:46 – Shout outs and social information
                    • 01:10:16 – Thanks and goodbye
                    • Show Links:

                      • Dustin Ingram: Personal Website
                      • Python on Google Cloud
                      • Cloud Run: Develop and deploy highly scalable containerized applications on a fully managed serverless platform
                      • Python Software Foundation
                      • PSF Membership FAQ
                      • PyPI: The Python Package Index
                      • Secure Software Supply Chains for Python: PyCon 2021 - YouTube
                      • pip Documentation: Requirements Files
                      • pip Documentation: Hash-Checking Mode
                      • PEP-0440: Direct references for pip
                      • pip-tools: pip-tools keeps your pinned dependencies fresh
                      • PyPA: Python Packaging User Guide
                      • The Update Framework (TUF)
                      • tuf: A secure updater framework for Python
                      • pipx: Install and Run Python Applications in Isolated Environments
                      • How to Publish an Open-Source Python Package to PyPI - Real Python Article
                      • Poetry: Python packaging and dependency management made easy
                      • PyUp: Python Dependency Security
                      • Dependabot: Automated dependency updates
                      • Why Package Signing is not the Holy Grail: Donald Stufft
                      • Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies
                      • What Is Pip? A Guide for New Pythonistas - Real Python Article
                      • A ‘Worst Nightmare’ Cyberattack: The Untold Story Of The SolarWinds Hack
                      • Security scanners for Python and Docker: from code to dependencies
                      • What does it take to power the Python Package Index?
                      • Level up your Python skills with our expert-led courses:

                        • How to Publish Your Own Python Package to PyPI
                        • Python Modules and Packages: An Introduction
                        • A Beginner's Guide to pip
                        • Support the podcast & join our community of Pythonistas

                          1 hr 12 min
                        • Practicing Python With CSV Files and Extracting Values With "filter()"

                          Are you ready to practice your Python skills some more? There is a new set of practice problems prepared for you to tackle, and this time they’re based on working with CSV files. This week on the show, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects.

                          David shares an article about functional programming with a focus on the “filter” function. The tutorial covers how to process an iterable and extract the items that satisfy a given condition. It also covers combining filter with other functional tools, and compares it to coding with Pythonic tools like list comprehensions and generator expressions.

                          We cover several other articles and projects from the Python community including, Excel, Python, and the future of data science, a Bayesian analysis of Lego prices in Python, why can’t comments appear after a line continuation character, teaching Python on the Raspberry Pi400 at the public library, a cross-platform editor designed for writing novels built with Python and Qt, and a text user interface with rich as the renderer.

                          Spotlight: Python vs JavaScript for Python Developers

                          Python and JavaScript are two of the most popular programming languages in the world. In this course, you’ll take a deep dive into the JavaScript ecosystem by comparing Python vs JavaScript. You’ll learn the jargon, language history, and best practices from a Python developer’s perspective.

                          Topics:

                          • 00:00:00 – Introduction
                          • 00:02:29 – Excel, Python, and the Future of Data Science
                          • 00:07:50 – Python Practice Problems: Parsing CSV Files
                          • 00:17:09 – Sponsor: Digital Ocean’s App Platform
                          • 00:17:45 – A Bayesian Analysis of Lego Prices in Python With PyMC3
                          • 00:23:02 – Why Can’t Comments Appear After a Line Continuation Character?
                          • 00:28:40 – Python’s filter(): Extract Values From Iterables
                          • 00:34:57 – Video Course Spotlight
                          • 00:36:24 – How I Teach Python on the Raspberry Pi 400 at the Public Library
                          • 00:46:23 – novelWriter: Cross-Platform Editor Designed for Writing Novels Built With Python and Qt
                          • 00:48:02 – textual: A Text User Interface With Rich as the Renderer
                          • 00:54:58 – Thanks and goodbye
                          • Show Links:

                            Excel, Python, and the Future of Data Science – What’s the most widely used tool in data science? Is it pandas or NumPy? Is it the Python language itself? Not really. It’s Excel. You might argue that data scientists aren’t using Excel as their primary tool, and you might be right. But Excel enables non-technical users, like small business owners, to gain insights into their data. In this article, Anaconda CEO Peter Wang discusses his goal of making Python and PyData the “conceptual successor” to Excel.

                            Python Practice Problems: Parsing CSV Files – In this tutorial, you’ll prepare for future interviews by working through a set of Python practice problems that involve CSV files. You’ll work through the problems yourself and then compare your results with solutions developed by the Real Python team.

                            A Bayesian Analysis of Lego Prices in Python With PyMC3 – Follow along with this in-depth analysis of LEGO prices to see Bayesian analysis in action. Along the way, you’ll how pooled and unpooled linear models can be used to determine if a LEGO set is fairly priced. The article is quite technical, so experience with Bayesian statistics is recommended.

                            Why Can’t Comments Appear After a Line Continuation Character? – Chaining together many object methods can create long tines that break the PEP 8 79-character line length recommendation. You can use \ to break the chain of methods onto individual lines, but if you want to leave comments at the end of some of the lines, you’re out of luck. There’s another pattern, though, that solves this.

                            Python’s filter(): Extract Values From Iterables – In this step-by-step tutorial, you’ll learn how Python’s filter() works and how to use it effectively in your programs. You’ll also learn how to use list comprehension and generator expressions to replace filter() and make your code more Pythonic.

                            How I Teach Python on the Raspberry Pi 400 at the Public Library – Community-based programming courses are a great way to introduce folks to computer programming that otherwise may not have the means to do so. One of the barriers to learning to code is cost. You need a computer to program on, after all. But with the advent of tiny computers like the Raspberry Pi, computers aimed at education are more affordable than ever.

                            Projects:

                            • novelWriter: Cross-Platform Editor Designed for Writing Novels Built With Python and Qt
                            • textual: A Text User Interface With Rich as the Renderer
                            • Additional Links:

                              • Episode 27: Preparing for an Interview With Python Practice Problems
                              • PyMC3: Probabilistic Programming in Python
                              • Black: The uncompromising code formatter
                              • My review of the Raspberry Pi 400
                              • Will McGugan’s Blog: Introducing Textual
                              • Level up your Python skills with our expert-led courses:

                                • From Python's Functional Primitives to Parallelism
                                • Python's map() Function: Transforming Iterables
                                • Python vs JavaScript for Python Developers
                                • Support the podcast & join our community of Pythonistas

                                  56 min
                                • Expanding the International Python Community With the PSF

                                  The popularity of Python is continuing to grow Developers across the globe are embracing the language. How is Python being used in all of these different countries? How does an organization like the Python Software Foundation (PSF) work toward the goals in its mission statement for supporting and growing this international community? This week on the show, we have Marlene Mhangami, a PSF board member and part of the Diversity and Inclusion Work Group.

                                  Marlene lives in Zimbabwe on the continent of Africa. She has been organizing events not only locally in Zimbabwe but across all of Africa. She is the chair of Pycon Africa and has given talks at Pycon US, Pycon UK, and Pycon India.

                                  She has been working locally as an organizer and educator. We talk about the challenges of teaching technology and programming to a population of young people. Some of these students don’t have access to computers.

                                  She is also currently pursuing a computer science degree with the University of London. Along with her studies, she is also interning with NVidia. She is working with them on the RAPIDS project with a focus on the cuDF library.

                                  Spotlight: Introduction to Sorting Algorithms in Python

                                  In this course, you’ll learn all about five different sorting algorithms in Python from both a theoretical and a practical standpoint. You’ll also learn several related and important concepts, including Big O notation and recursion.

                                  Topics:

                                  • 00:00:00 – Introduction
                                  • 00:02:05 – Connecting during PyCon 2021
                                  • 00:03:08 – Roles with the Python Software Foundation (PSF)
                                  • 00:05:39 – Python in Africa
                                  • 00:10:31 – School overseas and return to Zimbabwe to build a Python community
                                  • 00:13:47 – Teaching technology and Python to students who don’t have computers
                                  • 00:22:14 – Sponsor: Digital Ocean’s App Platform
                                  • 00:22:50 – Work with the PSF and building geographic diversity
                                  • 00:27:49 – PSF work groups
                                  • 00:32:10 – Organizing PyCon Africa 2019 and bringing a continent of communities together
                                  • 00:35:51 – How is Python being used in Africa?
                                  • 00:38:05 – Video Course Spotlight
                                  • 00:39:24 – Working with NVidia RAPIDS and cuDF
                                  • 00:43:57 – What are you excited about in the world of Python?
                                  • 00:46:12 – What do you want to learn next?
                                  • 00:52:45 – What is something you thought you knew about Python but were wrong about it?
                                  • 00:59:41 – Thanks and goodbye
                                  • Show Links:

                                    • Marlene Mhangami: Personal Website
                                    • Python Software Foundation
                                    • PSF Membership
                                    • PyCon US 2021: YouTube Playlist
                                    • Real Python Interview With Marlene Mhangami
                                    • PyCon Africa Conference 2019 Highlights & Interviews: YouTube
                                    • Django Girls
                                    • RAPIDS: Open GPU Data Science
                                    • 10 Minutes to Data Science: Transitioning Between RAPIDS cuDF and CuPy Libraries
                                    • Level up your Python skills with our expert-led courses:

                                      • Hands-On Python 3 Concurrency With the asyncio Module
                                      • Introduction to Sorting Algorithms in Python
                                      • Using pandas to Make a Gradebook in Python
                                      • Support the podcast & join our community of Pythonistas

                                        1 hr 1 min
                                      • Detecting Deforestation With Python & Using GraphQL With Django and Vue

                                        Are you looking for an in-depth data science project to practice your skills on? Perhaps you would like to add new tools to your Python web development projects instead? This week on the show, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects.

                                        David shares an article about how to go about detecting deforestation from satellite images. He covers how a data science team built a machine learning (ML) solution to do just that, using FastAI for the modeling and Streamlit to create a dashboard.

                                        We also discuss a Real Python article about building a blog using Django, Vue.js, and GraphQL. GraphQL is a great tool to enhance your API to make it more flexible. The step by step project walks you through turning your Django blog data models into a GraphQL API.

                                        We cover several other articles and projects from the Python community including, the tools and tech used to run a one-woman hardware company, visualizing data in Python using plt.scatter(), why the sad face when using Black, how to iterate over dataframe rows (and should you?), pipx is now a PyPA member project, and real-time lossless audio compression in Python with pyFLAC.

                                        Spotlight: Explore Your Dataset With Pandas

                                        In this step-by-step course, you’ll learn how to start exploring a dataset with Pandas and Python. You’ll learn how to access specific rows and columns to answer questions about your data. You’ll also see how to handle missing values and prepare to visualize your dataset in a Jupyter Notebook.

                                        Topics:

                                        • 00:00:00 – Introduction
                                        • 00:02:11 – Build a Blog Using Django, Vue, and GraphQL
                                        • 00:10:06 – Detecting Deforestation From Satellite Images
                                        • 00:16:35 – Sponsor: Digital Ocean’s App Platform
                                        • 00:17:11 – The Tools and Tech I Use to Run a One-Woman Hardware Company
                                        • 00:29:13 – Visualizing Data in Python Using plt.scatter()
                                        • 00:34:24 – Why the Sad Face?
                                        • 00:40:20 – Video Course Spotlight
                                        • 00:41:26 – How to Iterate Over DataFrame Rows (And Should You?)
                                        • 00:48:31 – pyFLAC: Real-Time Lossless Audio Compression in Python
                                        • 00:53:47 – pipx: Install and Run Python Applications in Isolated Environments
                                        • 00:59:59 – Thanks and goodbye
                                        • Show Links:

                                          Build a Blog Using Django, Vue, and GraphQL – In this step-by-step project, you’ll build a blog from the ground up. You’ll turn your Django blog data models into a GraphQL API and consume it in a Vue application for users to read. You’ll end up with an admin site and a user-facing site you can continue to refine for your own use.

                                          Detecting Deforestation From Satellite Images – How would you go about detecting deforestation — a contributor to climate change — from satellite images? In this article, you’ll learn how one team built a machine learning (ML) solution to do just that, using FastAI for the modeling and Streamlit to create a dashboard. The article discusses methodology and results, and is a great read about building an ML solution. The project code is available on GitHub.

                                          The Tools and Tech I Use to Run a One-Woman Hardware Company – Winterbloom makes open-source, boutique synthesizers. There’s a lot that goes into running a hardware company. Someone has to design the hardware, code the firmware, write the documentation, not to mention administrate the company. Winterbloom does all of this with just one engineer — Stargirl Flowers. Learn what tools and tech Stargirl uses to run her company, and how Python fits into the big picture in more ways than one.

                                          Visualizing Data in Python Using plt.scatter() – In this tutorial, you’ll learn how to create scatter plots in Python, which are a key part of many data visualization applications. You’ll get an introduction to plt.scatter(), a versatile function in the Matplotlib module for creating scatter plots.

                                          Why the Sad Face? – The Black autoformatter adopts some conventions that might surprise you the first time you use it. One of those conventions — the “sadface dedent” — moves closing parentheses in function signatures and other block headers to their own lines. This creates a line containing nothing but “):”, which looks like a sad face emoji. Łukasz Langa, Black’s creator, explains why Black does this.

                                          How to Iterate Over DataFrame Rows (And Should You?) – How to iterate over pandas DataFrame rows is one of the top voted questions with the pandas tag on Stack Overflow. That question is also the most copied answer with a code block on the entire site. Clearly, lots of people want to iterate over the rows in a DataFrame. But should you do this, or are there better options?

                                          Projects

                                          • pyFLAC: Real-Time Lossless Audio Compression in Python
                                          • pipx: Install and Run Python Applications in Isolated Environments
                                          • Additional Links:

                                            • Django: The Web Framework for Perfectionists With Deadlines
                                            • Vue.js: The Progressive JavaScript Framework
                                            • GraphQL: A query language for your API
                                            • GraphQL? Here is what you need to know! - Syntax FM Episode
                                            • FastAI: Simplifies training fast and accurate neural nets using modern best practices
                                            • Streamlit: The fastest way to build and share data apps
                                            • Winterbloom: Magical Musical Machines
                                            • Black: The uncompromising code formatter
                                            • pyFLAC: Real-Time Lossless Audio Compression in Python
                                            • pipx Is Now a PyPA Member Project
                                            • Level up your Python skills with our expert-led courses:

                                              • Using Jupyter Notebooks
                                              • How to Set Up a Django Project
                                              • Explore Your Dataset With pandas
                                              • Support the podcast & join our community of Pythonistas

                                                1 hr 2 min
                                              • Create Web Applications Using Only Python With Anvil

                                                What if you could create an application and deploy it to the web with just Python? Wouldn’t it be nice to skip the additional full-stack development steps of learning three different languages in addition to Python? That’s the idea behind Anvil. This week on the show, we have Meredydd Luff, co-founder of Anvil.

                                                We talk about the history of Anvil and how the founders wanted to simplify web app creation. We discuss their choice to make the project open source and how it benefited the project’s development. We also cover creating a portfolio of projects and things that employers look for in the hiring process.

                                                Course Spotlight: Python’s map() Function: Transforming Iterables

                                                In this step-by-step course, you’ll learn how Python’s map() works and how to use it effectively in your programs. You’ll also learn how to use list comprehension and generator expressions to replace map() in a Pythonic and efficient way.

                                                Topics:

                                                • 00:00:00 – Introduction
                                                • 00:01:33 – What is Anvil?
                                                • 00:03:16 – Why did you choose Python for Anvil?
                                                • 00:06:47 – The three general groups of developers
                                                • 00:17:04 – Sponsor: Digital Ocean’s App Platform
                                                • 00:17:40 – What Python libraries are available to developers?
                                                • 00:19:48 – Working with PDFs and files
                                                • 00:22:17 – Free accounts scaling to business accounts and self hosting
                                                • 00:24:32 – Modularity of code and user management
                                                • 00:31:12 – High school students creating projects and starting programming
                                                • 00:35:33 – Video Course Spotlight
                                                • 00:36:45 – What is server code vs client code?
                                                • 00:41:35 – Designing the UI and responsive web design
                                                • 00:48:10 – Working with APIs and modularity of code
                                                • 00:49:47 – Building a portfolio of projects as a employment strategy
                                                • 00:52:29 – If you were to start this project over from scratch, what would you change?
                                                • 00:55:01 – What were the benefits to Anvil of making it open source?
                                                • 00:57:10 – What has been your biggest challenge?
                                                • 01:01:16 – Anvil is hiring
                                                • 01:05:18 – What are you excited about in the world of Python?
                                                • 01:07:35 – What do you want to learn next?
                                                • 01:09:54 – Thanks and goodbye
                                                • Show Links:

                                                  • Anvil: Full stack web apps with nothing by Python
                                                  • Anvil’s Open Source Platform
                                                  • Anvil Runtime and App Server: Github
                                                  • Full-Stack Web with Nothing But Python: A Deep Dive into Anvil” by: Meredydd Luff | YouTube
                                                  • Talk Python to Me #138: Anvil - All web, all Python
                                                  • Claris Filemaker
                                                  • Anvil: Job Openings
                                                  • Rust: A language empowering everyone to build reliable and efficient software
                                                  • PyCon 2021 Talks | YouTube
                                                  • Q&A with Guido van Rossum, Inventor of Python | YouTube
                                                  • Level up your Python skills with our expert-led courses:

                                                    • Understanding Python List Comprehensions
                                                    • Python's map() Function: Transforming Iterables
                                                    • How to Set Up a Django Project
                                                    • Support the podcast & join our community of Pythonistas

                                                      1 hr 11 min
                                                    • Selecting the Ideal Data Structure & Unravelling Python's "pass" and "with"

                                                      How do you know you’re using the correct data structure for your Python project? There are so many built into Python and even more that are importable from the collections module. This week on the show, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects. We discuss a recent three-part video course on selecting the ideal data structure.

                                                      Along with comparing the types of dictionaries, data records, arrays, stacks, and more, David covers a recent Real Python article about the namedtuple. This deep dive covers how to use the namedtuple to write cleaner code.

                                                      We also discuss new articles from previous guest Brett Cannon. He has added two posts to his Python syntactic sugar series about unravelling the pass and with statement.

                                                      We cover several other articles and projects from the Python community including, async in Flask 2.0, Python projects on Github that are examples of best practices and good architecture, how SpaceX sort of lands starship, the new ti-84 calculator with Python, and building a Python spell checker.

                                                      Spotlight: Stacks and Queues: Selecting the Ideal Data Structure

                                                      In this course, you’ll learn about three of Python’s data structures: stacks, queue and priority queues. You’ll look at multiple types and classes for all of these and learn which implementations are best for your specific use cases.

                                                      Topics:

                                                      • 00:00:00 – Introduction
                                                      • 00:02:06 – Write Pythonic and Clean Code With namedtuple
                                                      • 00:05:38 – Unravelling the pass Statement
                                                      • 00:10:31 – Unravelling the with statement
                                                      • 00:13:38 – Async in Flask 2.0
                                                      • 00:19:04 – Sponsor: Digital Ocean’s App Platform
                                                      • 00:19:40 – Python Projects on Github That Are Examples of Best Practices and Good Architecture
                                                      • 00:26:43 – How SpaceX Lands Starship (Sort Of)
                                                      • 00:32:00 – Stacks and Queues: Selecting the Ideal Data Structure
                                                      • 00:38:34 – Video Course Spotlight
                                                      • 00:40:39 – Texas Instruments To Release New TI-84 Calculator With Python
                                                      • 00:44:23 – spylls: Python spell checker
                                                      • 00:47:36 – Thanks and goodbye
                                                      • Show Links:

                                                        Write Pythonic and Clean Code With namedtuple – In this step-by-step tutorial, you’ll learn what Python’s namedtuple is and how to use it in your code. You’ll also learn about the main differences between named tuples and other data structures, such as dictionaries, data classes, and typed named tuples.

                                                        Unravelling the pass Statement – When you need to indicate that a bit of code intentionally does nothing, then you need to reach for Python’s pass statement. In the latest installment of Brett’s “Syntactic Sugar” series, you’ll learn how pass works, when to use it, and why it’s a uniquely Python concept.

                                                        Unravelling the with statement

                                                        Async in Flask 2.0 – This article looks at Flask 2.0’s new async functionality and how to leverage it in your Flask projects. You’ll learn how Flask processes requests asynchronously using a traditional WSGI server, instead of the ASGI server used by many other async web frameworks. You’ll also learn how to simulate Flask 2.0 async in Flask 1.X applications.

                                                        Python Projects on Github That Are Examples of Best Practices and Good Architecture – This Reddit thread is full of GitHub repos that might make for some good code reading.

                                                        How SpaceX Lands Starship (Sort Of) – While waiting for SN15 to launch, Thomas Goddard set out to pull together a 2-dimensional simulation of the Starship landing. Tying together knowledge of trajectory optimization, Thomas modeled the landing in Python with the CasADI library and used Matplotlib to generate an animation which, when played side-by-side with the footage of the landing, results in remarkable similarity to the actual landing dynamics.

                                                        Stacks and Queues: Selecting the Ideal Data Structure – Learn about three of Python’s data structures: stacks, queue and priority queues. You’ll look at multiple types and classes for all of these and learn which implementations are best for your specific use cases.

                                                        Projects:

                                                        • Texas Instruments To Release New TI-84 Calculator With Python
                                                        • spylls
                                                        • Additional Links:

                                                          • Episode 47: Unraveling Python’s Syntax to Its Core With Brett Cannon
                                                          • Resource acquisition is initialization (RAII) - Wikipedia Article
                                                          • The Social Contract of Open Source
                                                          • import asyncio: Learn Python’s AsyncIO #1 - The Async Ecosystem – YouTube
                                                          • David Lord’s Twitter Thread on Adding Type Annotations for Pallets Projects
                                                          • Episode 9: Leveling Up Your Python Literacy and Finding Python Projects to Study With Cecil Phillip
                                                          • requests: A simple, yet elegant, HTTP library
                                                          • Python Application Layouts: A Reference – Real Python Article
                                                          • Wily: A command-line application for tracking, reporting on complexity of Python tests and applications
                                                          • ERPNext: Free and open source ERP
                                                          • Kitsune: Mozilla platform that powers SuMo (support.mozilla.org)
                                                          • Black: The uncompromising code formatter
                                                          • The Architecture of Open Source Applications
                                                          • The Hitchhiker’s Guide to Python: Reading Great Code
                                                          • Episode 27: Preparing for an Interview With Python Practice Problems With Jim Anderson
                                                          • Common Python Data Structures (Guide) – Real Python Article
                                                          • Python Stacks, Queues, and Priority Queues in Practice – Real Python Article
                                                          • Do You Use the Python Console and the Python Math Libraries as a Calculator?
                                                          • I Forgot How to Spellcheck
                                                          • hunspell
                                                          • Level up your Python skills with our expert-led courses:

                                                            • Dictionaries and Arrays: Selecting the Ideal Data Structure
                                                            • Records and Sets: Selecting the Ideal Data Structure
                                                            • Stacks and Queues: Selecting the Ideal Data Structure
                                                            • Support the podcast & join our community of Pythonistas

                                                              49 min
                                                            • Scaling Data Science and Machine Learning Infrastructure Like Netflix

                                                              Would you move your data science project from a laptop to the cloud? Would you also like to have snapshots of your project saved along the way so that you can go back in time or share the state of your project with another team member? This week on the show, we have Savin Goyal from Netflix. Savin is the technical lead for machine learning infrastructure at Netflix. He joins us to talk about Metaflow, an open-source tool to simplify building, managing, and scaling data science projects.

                                                              Metaflow addresses the needs of the numerous data scientists who work at Netflix. Machine learning is key strength for the streaming service. They tried several existing tools to scale their own internal infrastructure and after this experimentation developed Metaflow.

                                                              We talk about the history of the project and how someone could get started with the open-source version. Savin also contrasts the cost of infrastructure as compared to data scientists and the cost of their time.

                                                              Course Spotlight: Simplify Python GUI Development With PySimpleGUI

                                                              In this step-by-step course, you’ll learn how to create a cross-platform graphical user interface (GUI) using Python and PySimpleGUI. A graphical user interface is an application that has buttons, windows, and lots of other elements that the user can use to interact with your application.

                                                              Topics:

                                                              • 00:00:00 – Introduction
                                                              • 00:01:53 – What is Metaflow?
                                                              • 00:04:15 – Savin’s background in data science and infrastructure
                                                              • 00:06:06 – Democratization of infrastructure and iteration of tools
                                                              • 00:10:34 – What information is saved about the infrastructure requirements for a project?
                                                              • 00:17:17 – How are the requirements annotated?
                                                              • 00:18:39 – Sponsor: Digital Ocean’s App Platform
                                                              • 00:19:15 – How do project snapshots work?
                                                              • 00:29:33 – Cost of infrastructure vs data scientists
                                                              • 00:32:28 – Working with data at Netflix scale
                                                              • 00:37:55 – Video Course Spotlight
                                                              • 00:39:06 – Getting an organization to use new tools and then making open-source
                                                              • 00:49:51 – Documentation of Metaflow and getting started on solving infrastructure problems
                                                              • 00:53:57 – What made you interested in working on infrastructure tools?
                                                              • 00:55:13 – What is something you are excited about in the world of Python?
                                                              • 00:56:18 – What do you want to learn next?
                                                              • 00:58:14 – Thanks and goodbye
                                                              • Show Links:

                                                                • Metaflow: A framework for real-life data science
                                                                • Metaflow: Tutorials
                                                                • More Data Science, Less Engineering with Netflix’s Metaflow By Savin Goyal - YouTube
                                                                • R: The R Project for Statistical Computing
                                                                • Tidyverse: R packages for data science
                                                                • Anything you can do, I can do (kinda). Tidyverse pipes in Pandas
                                                                • reticulate: R Interface to Python
                                                                • Apache Airflow: Programmatically author, schedule and monitor workflows
                                                                • Directed acyclic graph (DAG) - Wikipedia article
                                                                • Serializing Objects With the Python pickle Module - Real Python Course
                                                                • Level up your Python skills with our expert-led courses:

                                                                  • Using Jupyter Notebooks
                                                                  • Learn Text Classification With Python and Keras
                                                                  • Simplify Python GUI Development With PySimpleGUI
                                                                  • Support the podcast & join our community of Pythonistas

                                                                    1 hr
                                                                  • Building a Platform Game With Arcade and Covering Python News Monthly

                                                                    Did you know the Python Software Foundation is hiring! With the recent support of three Visionary Sponsors, the PSF has been able to open positions for a developer-in-residence and a Python packaging project manager. Real Python now has a monthly Python news article. Frequent guest of the show, David Amos compiles and summarizes the biggest Python news from the past month.

                                                                    This week on the show, David Amos is back, and he’s brought another batch of PyCoder’s Weekly articles and projects. We discuss David’s news article from the last month. We also discuss previous guest Jon Fincher’s new step-by-step tutorial about creating a platform game with the arcade framework.

                                                                    We cover several other articles and projects from the Python community including, how to use ipywidgets to make your Jupyter notebook interactive, the hidden performance overhead of Python C extensions, adding else to for loops, film simulations from scratch using Python, a gradual programming language named Hedy, and a Python raytracer.

                                                                    Spotlight: CPython Internals: Your Guide to the Python 3 Interpreter

                                                                    Unlock the Inner Workings of the Python Language, Compile the Python Interpreter From Source Code,

                                                                    And Participate in the Development of CPython

                                                                    Topics:

                                                                    • 00:00:00 – Introduction
                                                                    • 00:02:04 – How to Use ipywidgets to Make Your Jupyter Notebook Interactive
                                                                    • 00:06:07 – Build a Platform Game in Python With arcade
                                                                    • 00:12:35 – Sponsor: Digital Ocean’s App Platform
                                                                    • 00:13:11 – The Hidden Performance Overhead of Python C Extensions
                                                                    • 00:21:17 – For-Else: A Weird but Useful Feature in Python
                                                                    • 00:25:42 – Python News: What’s New From April 2021?
                                                                    • 00:39:43 – Spotlight: CPython Internals Now in Paperback!
                                                                    • 00:41:15 – Film Simulations From Scratch Using Python
                                                                    • 00:47:44 – hedy: Hedy Is a Gradual Programming Language, Which Increases in Syntactic Elements Level by Level
                                                                    • 00:50:27 – Python-Raytracer: A Basic Ray Tracer That Exploits NumPy Arrays and Functions to Work Fast
                                                                    • 00:53:31 – Thanks and goodbye
                                                                    • Show Links:

                                                                      How to Use ipywidgets to Make Your Jupyter Notebook Interactive – Jupyter Notebooks are great for exploratory data analysis. They’re also a good way to share results and analysis with other people, who can alter the notebook to further explore the data themselves. But there are some limitations to notebook interactivity. That’s where ipywidgets comes in! In this tutorial you’ll learn how to create widgets like check boxes, drop-down menus, sliders, and how to handle events like button clicks.

                                                                      Build a Platform Game in Python With arcade – Building games can be a fun way to learn new Python concepts and practice techniques you’ve already learned. Plus, they make for great projects to share! This step-by-step tutorial shows you how to build a platform game using the arcade library. You’ll learn techniques for designing levels, sourcing assets, and implementing advanced features

                                                                      The Hidden Performance Overhead of Python C Extensions – It’s no secret that Python is slower than compiled languages like C, C++, and Rust. If you need a performance boost, you can write compiled Python C extensions. But there are some hidden performance costs that you should be aware of if you decide to do this. This article explains two ways that Python C extensions can actually be slower than pure Python and discusses some solutions and work around for them.

                                                                      For-Else: A Weird but Useful Feature in Python – Python for loops have an unusual feature: they support an else block that only executes if there is no break in the loop. The pattern isn’t used very often with the argument against it being that it is a bit weird and potentially difficult to understand. But there may be times when for/else makes sense. This article presents three situations where for/else is useful and argues that, in these situations, the pattern makes the code more readable.

                                                                      Python News: What’s New From April 2021? – April 2021 was an eventful month in the world of Python. In this article, you’ll get up to speed on everything that happened in the past month, including new sponsorships for the PSF, changes to Python error messages, and a community-led discussion over the future of type annotations.

                                                                      Film Simulations From Scratch Using Python – In analog photography, you can achieve different “looks” for your photographs by selecting different kinds of film to shoot with. Digital camera manufacturers often include different presets to simulate different kinds of film. In this article, you’ll learn how to simulate different films on your own images using color lookup tables, or CLUTs, using NumPy and the Pillow image library.

                                                                      Projects:

                                                                      • hedy: Hedy Is a Gradual Programming Language, Which Increases in Syntactic Elements Level by Level
                                                                      • Python-Raytracer: A Basic Ray Tracer That Exploits NumPy Arrays and Functions to Work Fast
                                                                      • Additional Links:

                                                                        • The Python Arcade Library
                                                                        • Arcade: A Primer on the Python Game Framework
                                                                        • Kenney: Free game assets, no strings attached
                                                                        • Tiled: Free and Open Source, Flexible Level Editor
                                                                        • Episode 24: Options for Packaging Your Python Application: Wheels, Docker, and More
                                                                        • Your Code Is Without a Doubt the Worst I Have Ever Run
                                                                        • Welcoming Google as a Visionary Sponsor of the PSF
                                                                        • Welcoming Microsoft as a Visionary Sponsor
                                                                        • Python Job Board: Project Manager - Python Packaging
                                                                        • PEP 563 – Postponed Evaluation of Annotations
                                                                        • Episode 45: Processing Images in Python With Pillow
                                                                        • RawTherapee: A free, cross-platform raw image processing program
                                                                        • Level up your Python skills with our expert-led courses:

                                                                          • For Loops in Python (Definite Iteration)
                                                                          • Using Jupyter Notebooks
                                                                          • Make a 2D Side-Scroller Game With PyGame
                                                                          • Support the podcast & join our community of Pythonistas

                                                                            55 min

                                                                          About The Real Python Podcast

                                                                          From the publisher's feed

                                                                          A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community.

                                                                          More shows like The Real Python Podcast

                                                                          The Changelog: Software Development, Open Source by Changelog Media

                                                                          The Changelog: Software Development, Open Source

                                                                          290 Listeners

                                                                          Software Engineering Daily by Software Engineering Daily

                                                                          Software Engineering Daily

                                                                          624 Listeners

                                                                          Talk Python To Me by Michael Kennedy

                                                                          Talk Python To Me

                                                                          582 Listeners

                                                                          Soft Skills Engineering by Jamison Dance and Dave Smith

                                                                          Soft Skills Engineering

                                                                          296 Listeners

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

                                                                          Super Data Science: ML & AI Podcast with Jon Krohn

                                                                          301 Listeners

                                                                          Python Bytes by Michael Kennedy and Calvin Hendryx-Parker

                                                                          Python Bytes

                                                                          212 Listeners

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

                                                                          Syntax - Tasty Web Development Treats

                                                                          983 Listeners

                                                                          Darknet Diaries by Jack Rhysider

                                                                          Darknet Diaries

                                                                          8,075 Listeners

                                                                          Tech Brew Ride Home by Morning Brew

                                                                          Tech Brew Ride Home

                                                                          961 Listeners

                                                                          Practical AI by Daniel Whitenack and Chris Benson

                                                                          Practical AI

                                                                          203 Listeners

                                                                          AWS Podcast by Amazon Web Services

                                                                          AWS Podcast

                                                                          202 Listeners

                                                                          Django Chat by William Vincent and Carlton Gibson

                                                                          Django Chat

                                                                          75 Listeners

                                                                          Last Week in AI by Skynet Today

                                                                          Last Week in AI

                                                                          311 Listeners

                                                                          Machine Learning Street Talk (MLST) by Machine Learning Street Talk (MLST)

                                                                          Machine Learning Street Talk (MLST)

                                                                          98 Listeners

                                                                          The Pragmatic Engineer by Gergely Orosz

                                                                          The Pragmatic Engineer

                                                                          74 Listeners