Definition

Python Workers is cloudflare’s serverless edge runtime making Python a first-class language on the Workers platform, with native bindings to Workers AI, R2, D1, Hyperdrive, Durable Objects, Queues, and Workflows.

Key Points

  • 2026-09-21: Generally available (GA) — production-ready Python on edge (2026-09-21-cloudflare-python-workers-ga)
  • Framework support: FastAPI/Django/Flask via built-in ASGI/WSGI connectors
  • Database: Hyperdrive integration for PostgreSQL/MySQL (beta as of Sep 2026)
  • AI libraries: Native support for langchain, openai on edge
  • Package ecosystem: PEP 783 PyEmscripten progress — not full standard Python pip ecosystem

Hyperdrive in Python Workers requires compatibility_date ≥ 2026-09-08. Async SQLAlchemy not yet supported.

Sources