The Real Python Podcast

The Real Python Podcast

By Real PythonTechnology
Download on the App Store

The Real Python Podcast episodes

  • Python's Command-Line Utilities & Music Information Retrieval Tools

    What are the built-in Python modules that can work as useful command-line tools? How can these tools add more functionality to Windows machines? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

    Christopher shares an article by Trey Hunner about Python’s extensive collection of command-line utilities? The piece digs into general-purpose tools that format JSON data or start a simple web server and additional utilities for working with your Python code from the terminal.

    We cover a set of Jupyter Notebooks for teaching and learning the art of music processing and Music Information Retrieval (MIR). The notebooks are resources for working through the textbook, “Fundamentals of Music Processing: Audio, Analysis, Algorithms, Applications.”

    We also share several other articles and projects from the Python community, including a news roundup, a discussion of CRUD operations, a description of Python’s built-in bytes sequence, favorite essays on development and programming, Python resources for working with Excel, and a project for creating finite state machines in Python.

    This episode is sponsored by APILayer.

    Course Spotlight: Binary, Bytes, and Bitwise Operators in Python

    In this course, you’ll learn how to use Python’s bitwise operators to manipulate individual bits of data at the most granular level. With the help of hands-on examples, you’ll see how you can apply bitmasks and overload bitwise operators to control binary data in your code.

    Topics:

    • 00:00:00 – Introduction
    • 00:02:21 – Python 3.12.4 Released
    • 00:02:52 – Python 3.13.0 Beta 2 Released
    • 00:03:01 – PEP 712 Rejected
    • 00:04:18 – Django in Action - Mr. Trudeau’s Book has Launched!
    • 00:06:23 – What Are CRUD Operations?
    • 00:10:12 – Python’s Many Command-Line Utilities
    • 00:14:04 – Sponsor: APILayer
    • 00:14:55 – Notebooks for Fundamentals of Music Processing
    • 00:22:55 – bytes: The Lesser-Known Python Built-in Sequence
    • 00:26:57 – Video Course Spotlight
    • 00:28:34 – Essays on Programming I Think About a Lot
    • 00:41:28 – Python Resources for Working With Excel
    • 00:46:13 – Python Finite State Machines Made Easy
    • 00:50:10 – Thanks and goodbye
    • News:

      • Python 3.12.4 Released – See the full list of changes in this release
      • Python 3.13.0 Beta 2 Released
      • PEP 712 Rejected – This Python Enhancement Proposal “Adding a ‘converter’ parameter to dataclasses.field” was determined to have an insufficient number of use cases.
      • Django in Action
      • Show Links:

        • What Are CRUD Operations? – CRUD operations are the cornerstone of application functionality. Whether you access a database or interact with a REST API, you usually want to create, retrieve, update, and delete data. In this tutorial, you’ll explore how CRUD operations work in practice.
        • Python’s Many Command-Line Utilities – This article describes every command-line tool included with Python, each of which can be run with python -m module_name.
        • Notebooks for Fundamentals of Music Processing – This is a collection of Python Notebooks for teaching and learning the fundamentals of music processing. Examples include illustrations, sound samples, math, and more.
        • bytes: The Lesser-Known Python Built-in Sequence – The bytes data type looks a bit like a string, but it isn’t a string. This article explores it and also looks at the main Unicode encoding, UTF-8
        • Discussion:

          • Essays on Programming I Think About a Lot – A collection of essays on software from a variety of sources. Content includes how to choose your tech stack, products, abstractions, and more.
          • Falsehoods programmers believe about time - Infinite Undo
          • Falsehoods programmers believe about email
          • Falsehoods programmers believe about geography – Thias の blog
          • awesome-falsehood: 😱 Falsehoods Programmers Believe In
          • Projects:

            • Python Resources for Working With Excel
            • Python Finite State Machines Made Easy
            • Additional Links:

              • SQLite and SQLAlchemy in Python: Move Your Data Beyond Flat Files – Real Python
              • Unicode in Python: Working With Character Encodings – Real Python
              • Fundamentals of Music Processing - Editions of the Book
              • Editing Excel Spreadsheets in Python With openpyxl – Real Python
              • My thoughts on Python in Excel
              • The Microsoft Excel superstars throw down in Vegas
              • Level up your Python skills with our expert-led courses:

                • Playing and Recording Sound in Python
                • Unicode in Python: Working With Character Encodings
                • Binary, Bytes, and Bitwise Operators in Python
                • Support the podcast & join our community of Pythonistas

                  52 min
                • Detecting Outliers in Your Data With Python

                  How do you find the most interesting or suspicious points within your data? What libraries and techniques can you use to detect these anomalies with Python? This week on the show, we speak with author Brett Kennedy about his book “Outlier Detection in Python.”

                  Brett describes initially getting involved with detecting outliers in financial data. He discusses various applications and techniques in security, manufacturing, quality assurance, and fraud. We also dig into the concept of explainable AI and the differences between supervised and unsupervised learning.

                  This episode is sponsored by APILayer.

                  Course Spotlight: Using k-Nearest Neighbors (kNN) in Python

                  In this video course, you’ll learn all about the k-nearest neighbors (kNN) algorithm in Python, including how to implement kNN from scratch. Once you understand how kNN works, you’ll use scikit-learn to facilitate your coding process.

                  Topics:

                  • 00:00:00 – Introduction
                  • 00:01:56 – Describing the book
                  • 00:03:22 – How did you get involved in outlier detection?
                  • 00:06:50 – Initially looking at the data to spot errors
                  • 00:08:22 – Amount of fraud and financial errors
                  • 00:09:50 – Understanding the nature of the outliers
                  • 00:12:15 – Industries that would be interested in detection
                  • 00:18:21 – Sponsor: APILayer.com
                  • 00:19:15 – Who is the intended audience for the book?
                  • 00:22:16 – Differences between supervised vs unsupervised learning
                  • 00:25:48 – Autonomous vehicles detecting anomalous imagery
                  • 00:29:08 – What is explainable AI?
                  • 00:36:21 – Video Course Spotlight
                  • 00:37:43 – Detecting an outlier across multiple columns
                  • 00:44:32 – Detection of LLM and bot activity
                  • 00:49:49 – Proving you are a human checkbox
                  • 00:52:25 – What are Python libraries for outlier detection?
                  • 00:53:57 – Creating synthetic data to work through examples
                  • 00:57:10 – Tools developed and described in the book
                  • 01:01:29 – How to find the book
                  • 01:02:27 – What are you excited about in the world of Python?
                  • 01:04:55 – What do you want to learn next?
                  • 01:05:52 – How can people follow your work online?
                  • 01:06:16 – Thanks and goodbye
                  • Show Links:

                    • Outlier Detection in Python
                    • Episode #169: Improving Classification Models With XGBoost – The Real Python Podcast
                    • XGBoost Documentation — xgboost 1.7.6 documentation
                    • SHAP (SHapley Additive exPlanations) Documentation
                    • I’m a teacher and this is the simple way I can tell if students have used AI to cheat in their essays - Daily Mail Online
                    • pyod: A Comprehensive and Scalable Python Library for Outlier Detection (Anomaly Detection)
                    • DeepOD: Deep learning-based outlier/anomaly detection
                    • scikit-learn: machine learning in Python — scikit-learn 1.5.0 documentation
                    • DataConsistencyChecker: A Python tool to examine datasets for consistency
                    • Brett Kennedy - LinkedIn
                    • Brett-Kennedy - GitHub
                    • Level up your Python skills with our expert-led courses:

                      • Starting With Linear Regression in Python
                      • Data Cleaning With pandas and NumPy
                      • Using k-Nearest Neighbors (kNN) in Python
                      • Support the podcast & join our community of Pythonistas

                        1 hr 8 min
                      • Decomposing Software Problems & Avoiding the Trap of Clever Code

                        How do you effectively break a software problem into individual steps? What are signs you’re writing overly clever code? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                        We discuss an article about de-warping images of book pages. We both found the piece a good study on decomposing a complex software problem.

                        Christopher discusses an article titled “Clever code is probably the worst code you could write.” Early in a programming career, it’s easier to write complex and difficult-to-read code. The real challenge is progressing towards writing clearer and readable code.

                        We also share several other articles and projects from the Python community, including a news roundup, what the __pycache__ folder is for in Python, what’s new in Django 5.1, a discussion about software engineering hiring and firing, a project for setting up repeated tasks, and a simple way to create reusable template components in Django.

                        This episode is sponsored by Sentry.

                        Course Spotlight: Efficient Iterations With Python Iterators and Iterables

                        In this video course, you’ll learn what iterators and iterables are in Python. You’ll learn how they differ and when to use them in your code. You’ll also learn how to create your own iterators and iterables to make data processing more efficient.

                        Topics:

                        • 00:00:00 – Introduction
                        • 00:02:18 – PEP 667: Consistent Views of Namespaces (Accepted)
                        • 00:03:08 – PEP 649 Re-targeted to 3.14
                        • 00:03:50 – Untold Stories From 6 Years Working on Python Packaging
                        • 00:04:38 – What Is the __pycache__ Folder in Python?
                        • 00:09:57 – Sponsor: Sentry
                        • 00:11:04 – What’s New in Django 5.1
                        • 00:17:48 – Page Dewarping
                        • 00:26:55 – Video Course Spotlight
                        • 00:28:26 – Clever Code Is Probably the Worst Code You Could Write
                        • 00:33:19 – Software Engineering Hiring and Firing
                        • 00:51:22 – Metronomes: An Easy Way to Set Up Regular Tasks
                        • 00:52:26 – django-web-components: Create reusable template components in Django
                        • 00:54:03 – Thanks and goodbye
                        • News:

                          • PEP 667: Consistent Views of Namespaces (Accepted)
                          • PEP 649 Re-targeted to 3.14 – Python Enhancement Proposal 649: Deferred Evaluation Of Annotations Using Descriptors has been re-targeted to the Python 3.14 release
                          • Untold Stories From 6 Years Working on Python Packaging – Sumana gave the closing keynote address at PyCon US this year and this posting shares all the links and references from the talk.
                          • Show Links:

                            • What Is the __pycache__ Folder in Python? – In this tutorial, you’ll explore Python’s __pycache__ folder. You’ll learn about when and why the interpreter creates these folders, and you’ll customize their default behavior. Finally, you’ll take a look under the hood of the cached .pyc files.
                            • What’s New in Django 5.1 – Django 5.1 has gone alpha so the list of features targeting this release has more or less solidified. This article introduces you to what is coming in Django 5.1.
                            • Page Dewarping – This article shows the techniques behind a page flattening algorithm. It starts with images of a book’s page which are curled from the spine of the book, and creates a resulting PDF that is a flat version.
                            • Clever Code Is Probably the Worst Code You Could Write – When you come across a clever bit of code, it is hard not to admire it, but often times, clear, readable code is the hardest code to write.
                            • Discussion:

                              • Software Engineering Hiring and Firing – This article is a deep dive on the hiring and firing practices in the software field, and unlike most articles focuses on senior engineering roles. It isn’t a “first job” post, but a “how the decision process works” article.
                              • Projects:

                                • Metronomes: An Easy Way to Set Up Regular Tasks
                                • django-web-components: A simple way to create reusable template components in Django
                                • Level up your Python skills with our expert-led courses:

                                  • For Loops in Python (Definite Iteration)
                                  • Getting Started With Django: Building a Portfolio App
                                  • Efficient Iterations With Python Iterators and Iterables
                                  • Support the podcast & join our community of Pythonistas

                                    56 min
                                  • Building Python Unit Tests & Exploring a Data Visualization Gallery

                                    How do you start adding unit tests to your Python code? Can the built-in unittest framework cover most or all of your needs? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                    We dig into a recent tutorial by Leodanis Pozo Ramos about writing unit tests using Python’s unittest. The tutorial covers organizing your tests, exploring assert methods, creating test fixtures, and debugging failing tests.

                                    We explore a collection of Python data visualizations and tutorials from the Python Graph Gallery. The website features hundreds of charts and graphs built using popular plotting libraries. Each chart type features a foundational tutorial that introduces the structure and application.

                                    We also share several other articles and projects from the Python community, including a news roundup, the new REPL coming in Python 3.13, a pytest daemon to 10X test iteration speed, a discussion about software friction, a Raspberry Pi document scanner, and a project for controlling time per iteration loop.

                                    Course Spotlight: Building a Python GUI Application With Tkinter

                                    In this video course, you’ll learn the basics of GUI programming with Tkinter, the de facto Python GUI framework. Master GUI programming concepts such as widgets, geometry managers, and event handlers. Then, put it all together by building two applications: a temperature converter and a text editor.

                                    Topics:

                                    • 00:00:00 - Introduction
                                    • 00:02:08 - Python Software Foundation Board Election Dates for 2024
                                    • 00:02:35 - 2023 PSF Annual Impact Report
                                    • 00:03:03 - Python’s unittest: Writing Unit Tests for Your Code
                                    • 00:09:41 - What’s New in Python 3.13
                                    • 00:10:38 - The New REPL in Python 3.13
                                    • 00:13:39 - Best Python Chart Examples
                                    • 00:15:27 - Animation with text that highlights important events
                                    • 00:16:39 - Sankey Diagram with Python and Plotly
                                    • 00:18:55 - Video Course Spotlight
                                    • 00:20:25 - Pytest Daemon: 10X Local Test Iteration Speed
                                    • 00:23:58 - Software Friction
                                    • 00:35:41 - A Raspberry Pi Document Scanner
                                    • 00:39:00 - pacemaker: For Controlling Time Per Iteration Loop in Python
                                    • 00:41:55 - Thanks and goodbye
                                    • News:

                                      • Python Software Foundation Board Election Dates for 2024
                                      • 2023 PSF Annual Impact Report
                                      • Show Links:

                                        • Python’s unittest: Writing Unit Tests for Your Code – In this tutorial, you’ll learn how to use the unittest framework to create unit tests for your Python code. Along the way, you’ll also learn how to create test cases, fixtures, test suites, and more.
                                        • What’s New in Python 3.13 – Python 3.13 has gone into beta, which means the feature freeze is now in place. This is the official listing of the new features in 3.13. This release includes changes to the REPL, new typing features, experimental support for disabling the GIL, dead battery removal, and more.
                                        • The New REPL in Python 3.13 – Python 3.13 just hit feature freeze with the first beta release, and it includes a host of improvements to the REPL. Automatic indenting, block-level editing, and more make the built-in REPL more powerful and easier to use.
                                        • Best Python Chart Examples
                                        • Animation with text that highlights important events - Python Graph Gallery
                                        • Sankey Diagram with Python and Plotly - Python Graph Gallery
                                        • Pytest Daemon: 10X Local Test Iteration Speed – Discord has a large Python monolith with lots of imports, which now takes 13 seconds to start up. On the server that’s not a problem but to run a test it is. Ruby’s solution is to have a daemon that hot loads a test on a process that already has the imports completed.
                                        • Discussion:

                                          • Software Friction – Friction is everywhere in software development. Two setbacks are more than twice as bad as one setback. This article discusses the sources of software friction and what you can do about it.
                                          • Projects:

                                            • A Raspberry Pi Document Scanner
                                            • pacemaker: For Controlling Time Per Iteration Loop in Python
                                            • Additional Links:

                                              • unittest — Unit testing framework — Python 3.12.3 documentation
                                              • Testing with Python (part 1): the basics - Bite code!
                                              • Sankey Diagrams – A Sankey diagram says more than 1000 pie charts
                                              • tidytuesday: Official repo for the #tidytuesday project
                                              • tidytuesday - dataset_announcements
                                              • Chaos Monkey
                                              • OpenCV: OpenCV modules
                                              • How to Train Your Robot
                                              • Level up your Python skills with our expert-led courses:

                                                • Creating PyQt Layouts for GUI Applications
                                                • Testing Your Code With pytest
                                                • Building a Python GUI Application With Tkinter
                                                • Support the podcast & join our community of Pythonistas

                                                  43 min
                                                • Considering Accessibility & Assistive Tech as a Python Developer

                                                  What’s it like to learn Python as a visually impaired or blind developer? How can you improve the accessibility of your Python web applications and learn current guidelines? This week on the show, Real Python community member Audrey van Breederode discusses her programming journey, web accessibility, and assistive technology.

                                                  Audrey shares her background as a system administrator and instructor. While she was learning Python, she discovered Real Python. Audrey provided some feedback about the built-in video player’s accessibility. Dan reached out and worked with Audrey on some website improvements for the visually impaired.

                                                  We discuss navigating modern websites and using assistive technology. Audrey also provides resources Python developers can use to improve the accessibility of their applications.

                                                  Course Spotlight: HTML and CSS Foundations for Python Developers

                                                  There’s no way around HTML and CSS when you want to build web apps. Even if you’re not aiming to become a web developer, knowing the basics of HTML and CSS will help you understand the Web better. In this video course, you’ll get an introduction to HTML and CSS for Python programmers.

                                                  Topics:

                                                  • 00:00:00 – Introduction
                                                  • 00:03:12 – Work background
                                                  • 00:08:30 – Language for assistive tools and programming
                                                  • 00:10:30 – What led you to learning Python?
                                                  • 00:13:48 – Screen readers, braille display, and white space
                                                  • 00:17:22 – Discovering Real Python
                                                  • 00:22:41 – Accessibility survey and navigating websites
                                                  • 00:30:04 – Digging deeper into learning Python
                                                  • 00:35:42 – Video Course Spotlight
                                                  • 00:37:03 – Navigating changes in code
                                                  • 00:39:53 – Working with the terminal
                                                  • 00:42:14 – Accessibility of Python GUI libraries
                                                  • 00:44:22 – Django framework
                                                  • 00:47:11 – Screen readers and JAWS
                                                  • 00:53:19 – What are you excited about in the world of assistive technology?
                                                  • 00:57:03 – What are you excited about in the world of Python?
                                                  • 00:59:11 – What do you want to learn next?
                                                  • 01:00:09 – Thanks and goodbye
                                                  • Show Links:

                                                    • JAWS® – Freedom Scientific
                                                    • What is JAWS? - YouTube
                                                    • Retinal detachment - Wikipedia
                                                    • Focus 80 Blue 5th Gen – Freedom Scientific
                                                    • WebAIM: Screen Reader User Survey #10 Results
                                                    • Web Content Accessibility Guidelines (WCAG) 2.2
                                                    • SecureCRT - The rock-solid Telnet and SSH client for Windows, macOS, and Linux
                                                    • P1 Monitor docker container for smart meters - Marcel Claassen
                                                    • Python Basics: Introduction to Python (Learning Path) – Real Python
                                                    • The web framework for perfectionists with deadlines - Django
                                                    • Surf’s Up! Surfing the Internet with JAWS
                                                    • NV Access - Download NVDA
                                                    • Picture Smart Challenges – Freedom Scientific
                                                    • Level up your Python skills with our expert-led courses:

                                                      • Getting Started With Django: Building a Portfolio App
                                                      • Python Basics: Dictionaries
                                                      • HTML and CSS Foundations for Python Developers
                                                      • Support the podcast & join our community of Pythonistas

                                                        1 hr 1 min
                                                      • Querying OpenStreetMaps via API & Lazy Evaluation in Python

                                                        Would you like to get more practice working with APIs in Python? How about exploring the globe using the data from OpenStreetMap? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                                        We share an article from the Pybites blog about building queries using the Overpass API for OpenStreetMap. The post explores the data structures, tags, query formats, and how to use Overpass in Python.

                                                        Christopher discusses a Real Python article by recent guest Stephen Gruppetta about lazy evaluation in Python. The piece covers the advantages of generator expressions or functions and the potential disadvantages of using lazy versus eager evaluation methods.

                                                        We also share several other articles and projects from the Python community, including a news roundup, handling control-c in asyncio, preventing data leakage in pandas and scikit-learn, discussing the Django developer survey results, asking developers why they aren’t shipping faster, using UV to install into isolated environments, and a couple of tools for retrying in Python.

                                                        This episode is sponsored by Sentry.

                                                        Course Spotlight: How to Set Up a Django Project

                                                        In this course, you’ll learn the necessary steps that you’ll need to take to set up a new Django project. You’ll learn the basic setup for any new Django project, which needs to happen before programming the specific functionality of your project.

                                                        Topics:

                                                        • 00:00:00 – Introduction
                                                        • 00:02:33 – PyPy v7.3.16 Release
                                                        • 00:02:54 – PEP 745: Python 3.14 Release Schedule
                                                        • 00:03:31 – The BASIC programming language turns 60
                                                        • 00:05:24 – Asyncio Handle Control-C (SIGINT)
                                                        • 00:07:37 – OpenStreetMaps, Overpass API and Python
                                                        • 00:11:53 – What’s Lazy Evaluation in Python?
                                                        • 00:16:10 – Sponsor: Sentry
                                                        • 00:17:17 – How to Prevent Data Leakage in pandas & scikit-learn
                                                        • 00:24:09 – Django Developers Survey 2023 Results
                                                        • 00:33:07 – Video Course Spotlight
                                                        • 00:34:21 – I Asked 100 Devs Why They Aren’t Shipping Faster?
                                                        • 00:47:03 – pipxu: Install in Isolated Environments Using UV
                                                        • 00:49:05 – tenacity: Retrying Library for Python
                                                        • 00:50:04 – stamina: Production-Grade Retries for Python
                                                        • 00:52:00 – Thanks and goodbye
                                                        • News:

                                                          • PyPy v7.3.16 Release
                                                          • PEP 745: Python 3.14 Release Schedule
                                                          • The BASIC programming language turns 60 - Ars Technica
                                                          • Show Links:

                                                            • Asyncio Handle Control-C (SIGINT) – When the user presses CTRL-C on the keyboard, the OS raises an interrupt signal to your program. When writing concurrent code this can get complicated as the signal goes to the process. This article shows you how to handle capturing CTRL-C elegantly when using asyncio.
                                                            • OpenStreetMaps, Overpass API and Python – OpenStreetMaps (OSM) is an open source mapping project that allows people to browse the world map and to plan routes. Not only does it have the expected web interface, but it also has an API known as Overpass. This article shows you two ways to use Python to query Overpass.
                                                            • What’s Lazy Evaluation in Python? – This tutorial explores lazy evaluation in Python and looks at the advantages and disadvantages of using lazy and eager evaluation methods. By the end of this tutorial, you’ll clearly understand which approach is best for you, depending on your needs.
                                                            • How to Prevent Data Leakage in pandas & scikit-learn – How you impute missing values in machine learning data sets can affect the quality of your training. This article teaches you what data leakage is and what steps you should take to avoid it.
                                                            • Discussion

                                                              • Django Developers Survey 2023 Results
                                                              • I Asked 100 Devs Why They Aren’t Shipping Faster? – Daksh asked 100 developers why they aren’t shipping faster and this blog post shares what he learned. Problems include dependency bugs, overly complicated code bases, waiting on requirements, and more.
                                                              • Projects:

                                                                • pipxu: Install in Isolated Environments Using UV
                                                                • tenacity: Retrying Library for Python
                                                                • stamina: Production-Grade Retries for Python
                                                                • Additional Links:

                                                                  • NASA’s Voyager 1 spacecraft finally phones home after 5 months of no contact - Space
                                                                  • Python & APIs: A Winning Combo for Reading Public Data – Real Python
                                                                  • Loading Data from OpenStreetMap with Python and the Overpass API - Nikolai Janakiev
                                                                  • Leakage (machine learning) - Wikipedia
                                                                  • Djangonaut Space - Where Contributors launch!
                                                                  • Debris That Fell Off a Boeing 767 Found Outside the House of Lawyer
                                                                  • Level up your Python skills with our expert-led courses:

                                                                    • Getting Started With Django: Building a Portfolio App
                                                                    • Python Generators 101
                                                                    • How to Set Up a Django Project
                                                                    • Support the podcast & join our community of Pythonistas

                                                                      54 min
                                                                    • Embarking on a Relaxed and Friendly Python Coding Journey

                                                                      Do you get stressed while trying to learn Python? Do you prefer to build small programs or projects as you continue your coding journey? This week on the show, Real Python author Stephen Gruppetta is here to talk about his new book, “The Python Coding Book.”

                                                                      Stephen has been teaching Python to adults and children for many years. With his new book, he wants to share the relaxed and friendly learning environment he’s developed. We discuss using analogies to explain programming concepts and constructing complete programs as chapter goals.

                                                                      Over the last year, Stephen focused on writing. He started his newsletter, The Python Coding Stack, wrote more tutorials for Real Python and authored the book.

                                                                      This episode is sponsored by Mailtrap.

                                                                      Course Spotlight: Python Basics: Code Your First Python Program

                                                                      In this video course, you’ll write your first Python program. Along the way, you’ll learn about errors, declare variables and inspect their values, and try your hand at writing comments.

                                                                      Topics:

                                                                      • 00:00:00 – Introduction
                                                                      • 00:02:32 – Education and programming background
                                                                      • 00:05:50 – Developing a teaching style
                                                                      • 00:10:36 – A friendly and relaxed programming book
                                                                      • 00:14:31 – Making mistakes
                                                                      • 00:18:29 – Sponsor: Mailtrap
                                                                      • 00:19:03 – What was your curation process like?
                                                                      • 00:21:22 – First chapter building an actual program
                                                                      • 00:25:08 – Glossary terms and exercises
                                                                      • 00:27:48 – Why feature an IDE?
                                                                      • 00:34:07 – Monty and the White Room analogy
                                                                      • 00:37:46 – What, no turtle?
                                                                      • 00:42:21 – Video Course Spotlight
                                                                      • 00:44:00 – Shift toward teaching
                                                                      • 00:46:50 – Teaching adults and children
                                                                      • 00:51:23 – Python sequences tutorial
                                                                      • 00:53:48 – Building community and social media
                                                                      • 00:58:12 – What are you excited about in the world of Python?
                                                                      • 01:00:49 – What do you want to learn next?
                                                                      • 01:03:07 – Thanks and goodbye
                                                                      • Show Links:

                                                                        • Learn Python Coding - The Python Coding Book
                                                                        • Rambling Reflections - Twelve Months of The Python Coding Stack
                                                                        • On Writing: A Memoir of the Craft - Stephen King - Wikipedia
                                                                        • Episode #4: Learning Python Through Errors – The Real Python Podcast
                                                                        • Build a Python Turtle Game: Space Invaders Clone – Real Python
                                                                        • Python Sequences: A Comprehensive Guide – Real Python
                                                                        • Django in Action
                                                                        • The Python Coding Place – The Place to Learn Python
                                                                        • Stephen Gruppetta (@s_gruppetta_ct) / X
                                                                        • Level up your Python skills with our expert-led courses:

                                                                          • Python Turtle for Beginners
                                                                          • Python Basics: Setting Up Python
                                                                          • Python Basics: Code Your First Python Program
                                                                          • Support the podcast & join our community of Pythonistas

                                                                            1 hr 5 min
                                                                          • Pydantic Data Validation & Python Web Security Practices

                                                                            How do you verify and validate the data coming into your Python web application? What tools and security best practices should you consider as a developer? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

                                                                            We discuss the recent Real Python tutorial “Pydantic: Simplifying Data Validation in Python.” The piece covers installing the library with optional dependencies, working with base models, validating functions, and managing environment variables.

                                                                            We continue our conversation about web development with another article about Python security best practices. This article covers several Python libraries and crucial steps you can take to help make your web-based applications more secure.

                                                                            We also share several other articles and projects from the Python community, including a news roundup, why Python lists multiply oddly, inline run dependencies in pipx, a discussion about open-source contribution assignments, playing sounds in Python, and a Python library to access ISO country definitions.

                                                                            This episode is sponsored by Mailtrap.

                                                                            Course Spotlight: Using raise for Effective Exceptions

                                                                            In this video course, you’ll learn how to raise exceptions in Python, which will improve your ability to efficiently handle errors and exceptional situations in your code. This way, you’ll write more reliable, robust, and maintainable code.

                                                                            Topics:

                                                                            • 00:00:00 – Introduction
                                                                            • 00:02:40 – Python 3.12.3, Python 3.11.9, and 3.13.0a6 Released
                                                                            • 00:03:43 – Django Bugfix Release Issued: 5.0.4
                                                                            • 00:04:48 – PEP 738 Accepted: Adding Android as a Supported Platform
                                                                            • 00:05:53 – EuroPython Tickets on Sale: Prague/Remote July 8-14
                                                                            • 00:06:38 – PyCon Portugal 2024
                                                                            • 00:07:17 – Pydantic: Simplifying Data Validation in Python
                                                                            • 00:15:24 – Sponsor: Mailtrap
                                                                            • 00:15:58 – Why Do Python Lists Multiply Oddly?
                                                                            • 00:22:21 – Best Python Security Practices for Web Developers
                                                                            • 00:34:13 – Video Course Spotlight
                                                                            • 00:35:38 – Inline Run Dependencies in pipx 1.4.2
                                                                            • 00:40:16 – So Your Teacher Wants You to Do Open Source
                                                                            • 00:54:49 – nava: Play Sounds in Python
                                                                            • 00:56:25 – pycountry: A Python library to access ISO country definitions
                                                                            • 00:58:18 – Thanks and goodbye
                                                                            • News:

                                                                              • Python 3.12.3 and 3.13.0a6 Released
                                                                              • Python 3.11.9 Released
                                                                              • Django Bugfix Release Issued: 5.0.4
                                                                              • PEP 738 Accepted: Adding Android as a Supported Platform
                                                                              • PEP 742 Accepted: Narrowing Types With TypeIs
                                                                              • EuroPython Tickets on Sale: Prague/Remote July 8-14
                                                                              • PyCon Portugal 2024
                                                                              • Show Links:

                                                                                • Pydantic: Simplifying Data Validation in Python – Discover the power of Pydantic, Python’s most popular data parsing, validation, and serialization library. In this hands-on tutorial, you’ll learn how to make your code more robust, trustworthy, and easier to debug with Pydantic.
                                                                                • Why Do Python Lists Multiply Oddly? – In Python you can use the multiplication operator on sequences to return a repeated version of the value. When you do this with a list containing an empty list you get what might be unexpected behavior. This article explains what happens and why.
                                                                                • Best Python Security Practices for Web Developers – Coding on the web means you have to be more security conscious as everyone has access to your software. This article discusses key steps you can take to help make your code more secure.
                                                                                • Inline Run Dependencies in pipx 1.4.2 – PEP 723 adds the ability to specify dependencies within a Python script itself. The folks who write pipx have added an experimental feature that takes advantage of this future language change. This article shows you how the new feature looks and what pipx does with it.
                                                                                • Install and Execute Python Applications Using pipx – In this tutorial, you’ll learn about a tool called pipx, which lets you conveniently install and run Python packages as standalone command-line applications in isolated environments. In a way, pipx turns the Python Package Index (PyPI) into an app marketplace for Python programmers.
                                                                                • Discussion:

                                                                                  • So Your Teacher Wants You to Do Open Source – Sometimes teachers or mentors ask students to contribute to an open source project, without the context of what that entails. This opinion piece covers just how much noise that causes for the projects and why you shouldn’t do it unless you truly mean to contribute.
                                                                                  • 503 Days Working Full-Time on FOSS: Lessons Learned – For a year and a half, Rodrigo worked at Textualize the company behind the popular open source Python projects Rich and Textual. This blog post talks about what he learned while he was there.
                                                                                  • Projects:

                                                                                    • nava: Play Sounds in Python
                                                                                    • pycountry: A Python library to access ISO country, subdivision, language, currency and script definitions and their translations
                                                                                    • Additional Links:

                                                                                      • Pydantic
                                                                                      • François Fleuret on X: “2h of debugging. Whatever you say, that’s counter intuitive.”
                                                                                      • bandit: Security oriented static analyzer for Python code - PyPI
                                                                                      • Dependency Management With Python Poetry – Real Python
                                                                                      • OWASP Top Ten - OWASP Foundation
                                                                                      • pipx
                                                                                      • Governance - The Pallets Projects
                                                                                      • Textual
                                                                                      • How to Contribute to Open Source - Open Source Guides
                                                                                      • Djangonaut Space - Where contributors launch!
                                                                                      • Level up your Python skills with our expert-led courses:

                                                                                        • Lists and Tuples in Python
                                                                                        • Sorting Data in Python With pandas
                                                                                        • Using raise for Effective Exceptions
                                                                                        • Support the podcast & join our community of Pythonistas

                                                                                          1 hr
                                                                                        • Decoupling Systems to Get Closer to the Data

                                                                                          What are the benefits of using a decoupled data processing system? How do you write reusable queries for a variety of backend data platforms? This week on the show, Phillip Cloud, the lead maintainer of Ibis, will discuss this portable Python dataframe library.

                                                                                          Phillip contrasts Ibis’s workflow with other Python dataframe libraries. We discuss how “getting close to the data” speeds things up and conserves memory.

                                                                                          He describes the different approaches Ibis provides for querying data and how to select a specific backend. We discuss ways to get started with the library and how to access example data sets to experiment with the platform.

                                                                                          Phillip discovered Ibis while looking for a tool that allowed him to reuse SQL queries written for a specific data platform on a different one. He recounts how he got involved with the Ibis project, sharing his background in open source and learning how to contribute to a first project.

                                                                                          This episode is sponsored by Mailtrap.

                                                                                          Course Spotlight: Creating Web Maps From Your Data With Python Folium

                                                                                          You’ll learn how to create web maps from data using Folium. The package combines Python’s data-wrangling strengths with the data-visualization power of the JavaScript library Leaflet. In this video course, you’ll create and style a choropleth world map showing the ecological footprint per country.

                                                                                          Topics:

                                                                                          • 00:00:00 – Introduction
                                                                                          • 00:02:18 – How did you get started with Ibis?
                                                                                          • 00:08:10 – First contribution to open source
                                                                                          • 00:13:46 – Comparing Ibis to other dataframe libraries
                                                                                          • 00:20:09 – Sponsor: Mailtrap
                                                                                          • 00:20:43 – What goes into the selection of backend?
                                                                                          • 00:27:07 – Database connections vs SQL compilers
                                                                                          • 00:30:03 – Raw SQL approach
                                                                                          • 00:34:06 – Dataframe approach
                                                                                          • 00:38:31 – What does “getting close to the data” mean?
                                                                                          • 00:41:52 – Video Course Spotlight
                                                                                          • 00:43:24 – Phillip in the cloud - YouTube channel
                                                                                          • 00:44:56 – Access to sample data sets
                                                                                          • 00:50:11 – Additional resources
                                                                                          • 00:52:50 – What are some of the backends Ibis supports?
                                                                                          • 00:54:13 – Entry points to the platform
                                                                                          • 00:55:00 – How are you supported?
                                                                                          • 00:57:10 – Exporting a SQL query
                                                                                          • 00:59:23 – What are you excited about in the world of Python?
                                                                                          • 01:04:28 – What do you want to learn next?
                                                                                          • 01:07:12 – How can people follow your work online?
                                                                                          • 01:08:00 – Thanks and goodbye
                                                                                          • Show Links:

                                                                                            • Ibis - the portable Python dataframe library
                                                                                            • The Leading Designer and Builder of Enterprise Data Systems - Voltron Data
                                                                                            • PEP 249 – Python Database API Specification v2.0
                                                                                            • sqlglot: Python SQL Parser and Transpiler - GitHub
                                                                                            • Ibis – getting_started
                                                                                            • ibis-examples: A repository of runnable examples using ibis
                                                                                            • Ibis – Reference Documentation
                                                                                            • PyScript - Run Python in your HTML
                                                                                            • pixi - Prefix.dev
                                                                                            • uv: An extremely fast Python package installer and resolver, written in Rust
                                                                                            • PyCon US 2024
                                                                                            • LearnCraft Spanish – Fluency for Serious Learners
                                                                                            • ibis: the portable Python dataframe library - GitHub
                                                                                            • Ibis – Blog Posts
                                                                                            • Phillip in the Cloud - YouTube
                                                                                            • Phillip Cloud (@cpcloudy) / X
                                                                                            • cpcloud (Phillip Cloud) · GitHub
                                                                                            • Level up your Python skills with our expert-led courses:

                                                                                              • Building Python Project Documentation With MkDocs
                                                                                              • Creating Web Maps From Your Data With Python Folium
                                                                                              • Using raise for Effective Exceptions
                                                                                              • Support the podcast & join our community of Pythonistas

                                                                                                1 hr 9 min
                                                                                              • Avoiding Error Culture and Getting Help Inside Python

                                                                                                What is error culture, and how do you avoid it within your organization? How do you navigate alert and notification fatigue? Hey, it’s episode #200! Real Python’s editor-in-chief, Dan Bader, joins us this week to celebrate. Christopher Trudeau also returns to bring another batch of PyCoder’s Weekly articles and projects.

                                                                                                We discuss an article series about error culture. We dig into false positives, hero culture, and the tendency to start ignoring alerts. We contrast our personal experiences and propose possible remedies. Dan describes configuring Real Python’s alert system.

                                                                                                We also share several other articles and projects from the Python community, including a news roundup, reading and writing WAV files in Python, moving beyond flat files toward SQLite and SQLAlchemy, getting help in Python, exploring four kinds of optimization, a framework for building web scrapers, and a project to simply subprocesses.

                                                                                                This week’s episode is brought to you by Sentry.

                                                                                                Course Spotlight: SQLite and SQLAlchemy in Python: Move Your Data Beyond Flat Files

                                                                                                In this video course, you’ll learn how to store and retrieve data using Python, SQLite, and SQLAlchemy as well as with flat files. Using SQLite with Python brings with it the additional benefit of accessing data with SQL. By adding SQLAlchemy, you can work with data in terms of objects and methods.

                                                                                                Topics:

                                                                                                • 00:00:00 – Introduction
                                                                                                • 00:02:42 – PyPI Hiring a Support Specialist
                                                                                                • 00:03:19 – PyPI Temporarily Halted New Users and Projects
                                                                                                • 00:04:14 – What we know about the xz Utils backdoor
                                                                                                • 00:05:38 – CPython, PyPI, and the backdoor of xz
                                                                                                • 00:07:18 – Episode 200 appreciation and the journey
                                                                                                • 00:09:18 – A visit from Dan
                                                                                                • 00:14:14 – Reading and Writing WAV Files in Python
                                                                                                • 00:19:56 – Sponsor: Sentry
                                                                                                • 00:21:03 – SQLite and SQLAlchemy in Python
                                                                                                • 00:27:36 – Getting Help (In Python)
                                                                                                • 00:32:49 – Laurence Tratt: Four Kinds of Optimization
                                                                                                • 00:40:54 – Video Course Spotlight
                                                                                                • 00:42:26 – Discussion: Error Culture
                                                                                                • 00:58:03 – botasaurus: The All in One Framework to Build Awesome Scrapers
                                                                                                • 01:01:04 – suby: Slightly Simplified Subprocesses
                                                                                                • 01:02:50 – Thanks and goodbye
                                                                                                • News:

                                                                                                  • PyPI Hiring a Support Specialist (Remote)
                                                                                                  • PyPI Temporarily Halted New Users and Projects – To fend off a supply-chain attack, PyPI temporarily halted new users and projects for about 10 hours last week. This article discusses why, and the scourge of supply-chain attacks.
                                                                                                  • What we know about the xz Utils backdoor that almost infected the world - Ars Technica
                                                                                                  • CPython, PyPI, and many Python packages are not affected by the backdoor of xz - Core Development - Discussions on Python.org
                                                                                                  • Topics:

                                                                                                    • Reading and Writing WAV Files in Python – In this tutorial, you’ll learn how to work with WAV audio files in Python using the standard-library wave module. Along the way, you’ll synthesize sounds from scratch, visualize waveforms in the time domain, animate real-time spectrograms, and apply special effects to widen the stereo field.
                                                                                                    • SQLite and SQLAlchemy in Python: Beyond Flat Files – In this video course, you’ll learn how to store and retrieve data using Python, SQLite, and SQLAlchemy as well as with flat files. Using SQLite with Python brings with it the additional benefit of accessing data with SQL. By adding SQLAlchemy, you can work with data in terms of objects and methods.
                                                                                                    • How SQLite Is Tested – The page describes how SQLite is rigorously tested using four test harnesses, fuzz testing, anomaly testing like crash and I/O error simulations, and other techniques to ensure reliability.
                                                                                                    • Getting Help (In Python) – When trying to remember just where sleep() was in the Python standard library, Ishaan stumbled through the built-in help and learned how to use it to answer just these kinds of questions.
                                                                                                    • Laurence Tratt: Four Kinds of Optimization – “Premature optimization might be the root of all evil, but overdue optimization is the root of all frustration. No matter how fast hardware becomes, we find it easy to write programs which run too slow.” Read on to learn what to do about it.
                                                                                                    • Discussion:

                                                                                                      • Error Culture
                                                                                                      • Error Culture Part II
                                                                                                      • Error Culture Part III
                                                                                                      • Projects:

                                                                                                        • botasaurus: The All in One Framework to Build Awesome Scrapers
                                                                                                        • suby: Slightly Simplified Subprocesses
                                                                                                        • Additional Links:

                                                                                                          • xkcd: Exploits of a Mom
                                                                                                          • How SQLite Is Tested
                                                                                                          • SettingWithCopyWarning in pandas: Views vs Copies – Real Python
                                                                                                          • 99% Invisible - Mini-Stories: Volume 4
                                                                                                          • Level up your Python skills with our expert-led courses:

                                                                                                            • Playing and Recording Sound in Python
                                                                                                            • Exploring Scopes and Closures in Python
                                                                                                            • SQLite and SQLAlchemy in Python: Move Your Data Beyond Flat Files
                                                                                                            • Support the podcast & join our community of Pythonistas

                                                                                                              1 hr 6 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