Save this video free

Cloudflare Python Workers - Talk Python to Me Ep. 568

Talk Python · 1:06:46 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Cloudflare Python Workers - Talk Python to Me Ep. 568 Watch on YouTube →

Overview

Dominic, Jay, and Hood explain how Cloudflare Python Workers run Pyodide and WebAssembly inside Cloudflare's globally distributed Workers runtime, bringing Python execution close to users across more than 350 points of presence. They cover Pyodide's packaging and compatibility work, deployment and local development, services including D1 and Hyperdrive, and performance constraints such as 128 MB memory and CPU limits, with memory snapshots helping reduce startup work.

Key takeaways

Chapters

0:00 Dominic, Jay, and Hood: Paths into Python and Pyodide
10:20 Pyodide Runs Python Wherever JavaScript and WebAssembly Run
13:15 Pyodide's Progress and CPython's Emscripten Support
19:00 PEP 783 Moves Pyodide Package Builds Toward PyPI
27:24 Pyodide Compatibility: Async I/O Works, Native System Features Vary
30:26 Cloudflare Workers Execute Code at the Edge
33:29 Deploy Python with uv and Develop Locally Using workerd
36:21 D1, Hyperdrive, and R2 Provide Edge-Connected Data Services
41:00 Node.js Sockets and Event-Loop Integration Enable Database Access
45:26 General Availability, Package Flexibility, and Memory Snapshots
52:22 FastAPI Apps, Worker Limits, and Safe CPU-Time Interruptions
58:34 Best Fits: I/O-Bound Services, Not Heavy Data Science
1:04:04 Getting Started with Python Workers and WebAssembly

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:02 Dominic J Hood, welcome to all of you to talk Python to me. Awesome to have you here. It's nice to be here. Yeah, I'm really excited to talk about Python on the Edge. It's very exciting what you all have announced. And I know it's been out there on Cloudflare for a little bit, but it's now officially formalized, officially supported, it a little more smooth. So Python workers, very, very cool topic. Before we get to that, though, let's just do a quick, who are you? Just give me a little bit of your background and what you do and so on. Dominic, we'll just go around the squares here. Dominic, go first. Sure. I mean, I can get started how I got into Python. And that starts at, I guess, a very young age when I was playing with Visual Basic.net and I realized that I hate Windows.

0:55 I needed to get to Linux and Visual Basic.net back then did not support Linux at all. So a couple of my friends were using Python. So that's how I got into it. Afterwards, I actually got a little bit annoyed that Python was interpreted. So I looked for alternatives and I got involved in the NIM programming language, and I became one of the core developers of that for a while. Fast forward a lot, I was working at Meta, and then I moved to Cloudflare to work on the workers runtime team, working there on a bunch of features for workers in general. I actually was the person, I guess that kind of experimented with Pyodide at Cloudflare and got it working and running. And then eventually we got Hoodin to help us out with that.

1:54 And we started Python workers and I've been working on that ever since as well and still do.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Talk Python.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.