Hacker News front page9 min readrelease notesintermediate
Python Workers are now generally available
Summary
Python Workers are now GA on Cloudflare Workers. The runtime uses Pyodide‑compiled WebAssembly to run Python, adds first‑class support for Cloudflare bindings (queues, KV, etc.) without manual JS conversion, provides built‑in ASGI/WSGI adapters for FastAPI, Django, Flask, and implements a socket syscall bridge so standard Python DB drivers work via Hyperdrive. The team also pushed PEP 783 to stan…
- Python code runs in Cloudflare Workers via a Wasm‑compiled Pyodide interpreter.
- All Cloudflare bindings are now usable directly from Python (e.g., `env.QUEUE.send({"key": "value"})`).
- ASGI/WSGI adapters let you deploy FastAPI, Django, Flask, or any WSGI/ASGI app without a separate web server.
- A custom socket syscall layer maps Python's `socket` API to the Workers TCP‑socket API, enabling standard async DB drivers (aiomysql, asyncpg) through Hyperdrive.
Brings the full Python ecosystem—including popular web frameworks and database drivers—to a globally distributed, edge‑first serverless platform, opening low‑latency, scalable Python use‑cases without managing servers or containers.
5/10



