跳到正文
原文
Simon Willison·· 29 天前AI 评分40

Cloudflare Python Workers 正式上线

Cloudflare Python Workers are now generally available

AI 导读

Cloudflare Python Workers 平台经过两年的预览期后,现已正式上线,支持在服务器端运行 Python 代码。该平台通过 Pyodide 将 Python 编译为 WebAssembly,在 V8 基础的 workerd 运行时中运行。

原文

21st September 2026 - Link Blog

Cloudflare Python Workers are now generally available (via) After a two year preview, Cloudflare's support for running Python code in their server-side Workers platform is now stable: "Python is now a first-class, fully supported language on the Cloudflare Developer Platform".

A neat thing about this is how it works. Cloudflare are running Python compiled to WebAssembly via Pyodide in their V8-based workerd runtime.

This comes with some limitations, documented here - most notably both multiprocessing and threading are non-functional in the WebAssembly VM.

One particularly interesting detail of this is the local development environment story - their pywrangler development tool (confusingly packaged as workers-py on PyPI) runs a full local simulation of their stack, including executing code with Pyodide in WebAssembly in V8 in a 123MB workerd binary, which for me ended up in node_modules/@cloudflare/workerd-darwin-arm64/bin/workerd.

Python Workers represent a significant investment in the wider Python ecosystem by Cloudflare. The release announcement is credited to Gyeongjae Choi, Dominik Picheta, and Hood Chatham - Gyeongjae and Hood are both Pyodide core maintainers.

来源:Simon Willison · simonwillison.net