Cloudflare Python Workers are now generally available

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Python developers can now build on Cloudflare Workers without switching to JavaScript, though no threading or multiprocessing means CPU-heavy workloads stay unsuitable.

Read this as

Cloudflare, a company that runs websites and online services, now officially supports the Python programming language on its 'Workers' platform, where developers run code that powers apps. After two years of testing, Python joins JavaScript as a fully supported option. The trick is converting Python code into WebAssembly, a format that runs inside the browser-style engine Cloudflare uses. Developers who prefer Python no longer need to learn JavaScript to build on Cloudflare.

Cloudflare has made Python generally available on its Workers serverless platform after a two-year preview, lowering a barrier for the large Python developer population it previously excluded. The implementation carries real constraints: no threading or multiprocessing, so compute-heavy applications may not fit the platform. Engineering investment is significant, the work involved Pyodide core maintainers Gyeongjae Choi and Hood Chatham. Teams choosing where to host backend code now have one more credible, stable option.

Cloudflare Workers now run Python, generally available after two years of preview, by compiling Python to WebAssembly via Pyodide inside the V8-based workerd runtime. Local development uses the pywrangler CLI (published on PyPI as workers-py), which simulates the full stack: Pyodide in WebAssembly in V8 within a 123MB workerd binary. Key limitation: multiprocessing and threading are non-functional in the WebAssembly VM. Credits go to Gyeongjae Choi, Dominik Picheta, and Hood Chatham.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Cloudflare Workers Python WebAssembly Pyodide workerd pywrangler workers-py

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading