
Running Python Locally in a Sandbox
Episode 301
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.
Publisher
The Real Python Podcast
Link
realpython.com/podcasts/rpp/301/
Published
July 3, 2026
Duration
46 min
Format
Podcast
Category
Issues · Tech News
Source
RSS feed
Host
Real Python
The Real Python Podcast
@realpythonpodcast
#runningpythonlocally #sandbox
