The Real Python Podcast

Running Python Locally in a Sandbox


Listen Later

How do you avoid the risk of running a Python application locally that could be malicious, break your code, or leak private data? How can you create a sandboxed local environment using WASM and MicroPython? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.

We cover a recent article by previous guest Simon Willison titled “Running Python code in a sandbox with MicroPython and WASM.” Simon has been experimenting for years on how to run Python code in a sandbox to reduce the risk of trying out new software, untrusted libraries, and wild ideas. He’s developed a solution using WASM and MicroPython and is sharing it as an alpha package on PyPI.

We also share other articles and projects from the Python community, including new releases, community announcements, a roundup of recent Real Python tutorials and video courses, a plugin case study using Pluggy, a look at whether you’re expected to run five type-checkers now, wrapping programs using the subprocess module, a project for star charts and maps, and a tool for trend detection in Python.

This episode is sponsored by DataDriven.

Spotlight: Codex for Python Developers: Hands-On Agentic Coding Course

Most Python developers use AI as fancy autocomplete. This 2-day live course teaches you to build entire projects with Codex, an AI agent that works inside your codebase.

Topics:

  • 00:00:00 – Introduction
  • 00:02:48 – PSF Board Election Dates for 2026
  • 00:03:28 – Python 3.15.0 beta 3 is here!
  • 00:03:58 – PEP 835: Shorthand Syntax for Annotated Type Metadata
  • 00:05:13 – Announcing the Search for a DSF Executive Director
  • 00:05:53 – Django 6.1 beta 1 released
  • 00:06:24 – PyData London 26 Videos Released
  • 00:06:50 – Implementing Interfaces in Python: ABCs and Protocols
  • 00:07:36 – Building Python Skills for the Job Market
  • 00:08:21 – Context Engineering for Python Codebases
  • 00:09:14 – Python for Data Analysis: A Practical Guide
  • 00:09:47 – Using LlamaIndex for RAG in Python
  • 00:10:07 – Django Tasks: Exploring the Built-in Tasks Framework
  • 00:10:59 – Plugins Case Study: Pluggy
  • 00:15:10 – Sponsor: DataDriven
  • 00:15:57 – Pyodide 314.0 Release
  • 00:18:54 – Python in a Sandbox With MicroPython and WASM
  • 00:22:35 – The subprocess Module: Wrapping Programs With Python
  • 00:30:08 – Spotlight: Codex for Python Developers
  • 00:31:51 – Are You Expected to Run 5 Type-Checkers Now?
  • 00:39:41 – starplot: ✨ Star charts and maps in Python
  • 00:42:01 – marimo-tutorials: Collection of Marimo Tutorials
  • 00:42:48 – pytrendy: Trend Detection in Python
  • 00:44:35 – Thanks and goodbye
  • News:

    • PSF Board Election Dates for 2026
    • Python 3.15.0 beta 3 is here! - Python Insider
    • PEP 835: Shorthand Syntax for Annotated Type Metadata (Added)
    • Announcing the Search for a DSF Executive Director
    • Django 6.1 beta 1 released - Django Weblog
    • PyData London 26 Videos Released
    • Real Python News:

      • Implementing Interfaces in Python: ABCs and Protocols
      • Building Python Skills for the Job Market
      • Context Engineering for Python Codebases
      • Python for Data Analysis: A Practical Guide
      • Using LlamaIndex for RAG in Python
      • Django Tasks: Exploring the Built-in Tasks Framework
      • Topics:

        • Plugins Case Study: PluggyPluggy is an open source plugin system used by frameworks such as pytest and tox. This article introduces you to how it works and what you can do with it.
        • Pyodide 314.0 Release – This post announces the Pyodide 314.0 release and describes its features, including a focus on standardization and packaging. You can now build Pyodide wheels and post them to PyPI.
        • Python in a Sandbox With MicroPython and WASM – Simon’s been in search of the perfect code sandbox. This article is about his latest attempt and covers why he wants a sandbox and what tech he’s used to achieve it.
        • The subprocess Module: Wrapping Programs With Python – Python’s subprocess module allows you to run shell commands and manage external processes directly from your Python code. By using subprocess, you can execute shell commands like ls or dir, launch applications, and handle both input and output streams.
        • Are You Expected to Run 5 Type-Checkers Now? – Library maintainers may feel overwhelmed by the plurality of type checkers that exist. We offer some guidance on how to focus their efforts where they matter most.
        • Projects:

          • starplot: ✨ Star charts and maps in Python
          • marimo-tutorials: Collection of Marimo Tutorials
          • pytrendy: Trend Detection in Python
          • Additional Links:

            • Episode #226: PySheets: Spreadsheets in the Browser Using PyScript
            • Datasette: An open source multi-tool for exploring and publishing data
            • Exploring Astrophysics in Python With pandas and Matplotlib
            • Using Astropy for Astronomy With Python
            • Investigating Quasar Data With Polars and Interactive marimo Notebooks
            • JupyterLite — JupyterLite 0.8.0 documentation
            • DataDriven - Data Engineer Interview Practice Problems
            • Level up your Python skills with our expert-led courses:

              • Using Astropy for Astronomy With Python
              • Using LlamaIndex for RAG in Python
              • Building Python Skills for the Job Market
              • Support the podcast & join our community of Pythonistas

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

                The Real Python PodcastBy Real Python

                • 4.7
                • 4.7
                • 4.7
                • 4.7
                • 4.7

                4.7

                139 ratings


                More shows like The Real Python Podcast

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

                The Changelog: Software Development, Open Source

                289 Listeners

                Software Engineering Daily by Software Engineering Daily

                Software Engineering Daily

                626 Listeners

                Talk Python To Me by Michael Kennedy

                Talk Python To Me

                583 Listeners

                Soft Skills Engineering by Jamison Dance and Dave Smith

                Soft Skills Engineering

                288 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

                213 Listeners

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

                Syntax - Tasty Web Development Treats

                982 Listeners

                Darknet Diaries by Jack Rhysider

                Darknet Diaries

                8,051 Listeners

                Tech Brew Ride Home by Morning Brew

                Tech Brew Ride Home

                963 Listeners

                Practical AI by Daniel Whitenack and Chris Benson

                Practical AI

                208 Listeners

                AWS Podcast by Amazon Web Services

                AWS Podcast

                203 Listeners

                Django Chat by William Vincent and Carlton Gibson

                Django Chat

                75 Listeners

                Last Week in AI by Skynet Today

                Last Week in AI

                314 Listeners

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

                Machine Learning Street Talk (MLST)

                99 Listeners

                The Pragmatic Engineer by Gergely Orosz

                The Pragmatic Engineer

                74 Listeners