Cloudflare Python Workers Reach General Availability

Cloudflare Python Workers Reach General Availability

You can now run full Python applications on Cloudflare's edge without touching JavaScript glue code.

Cloudflare announced that Python Workers are now generally available after two years in preview. Built on top of Pyodide—a WebAssembly-compiled interpreter—the runtime treats Python as a first-class language. You can run frameworks like FastAPI, Django, and Flask directly on the platform using built-in ASGI and WSGI connectors, letting Cloudflare handle traffic scaling instead of servers like Uvicorn.

Why it matters: Passing data to Cloudflare bindings used to require explicit JavaScript conversion code. The runtime and Python SDK now handle type conversions automatically, so you can connect Python apps directly to Workers AI, R2, D1, and Queues using standard Python dictionaries and objects.

Here's the gist for running a FastAPI app inside a Worker:

from fastapi import FastAPI
from workers import asgi

app = FastAPI()

@app.get("/")
async def root():
    return {"message": "Hello, world!"}

Default = asgi.entrypoint(app)

Serverless Python at the edge is officially ready for production.