Cloudflare announced on September 21, 2026 that Python Workers are now generally available, after months in an experimental release. Python becomes a first-class language on the Cloudflare Workers platform, on par with JavaScript, with native interoperability that removes the type-conversion glue code developers previously had to write.
What changed since the beta
During the experimental phase, sending a plain Python dictionary to a Cloudflare Queue required explicit conversion code between Python objects and their underlying JavaScript representation. Cloudflare says it has now encapsulated the entire conversion process inside the runtime, so Python objects can be worked with directly, with no glue code required.
Web frameworks running natively
FastAPI, Django and Flask now run natively on Workers through WSGI and ASGI connectors. An existing Python project built on any of these frameworks can be deployed on Cloudflare’s infrastructure without a rewrite to JavaScript, which lowers the barrier for teams already invested in Python.
Database access through Hyperdrive
PostgreSQL and MySQL connectivity, previously unavailable because of WebAssembly’s socket limitations, is now reachable through Hyperdrive. This was one of the main blockers developers reported during the beta: a Python Worker could not easily talk to a standard relational database.
| Aspect | Before (beta) | Since September 21, 2026 |
|---|---|---|
| JS/Python interoperability | Manual type conversion | Conversion handled by the runtime |
| Web frameworks | Partial support | FastAPI, Django, Flask natively via WSGI/ASGI |
| Databases | PostgreSQL/MySQL unavailable | Access through Hyperdrive |
| WebAssembly packages | Limited ecosystem | Expanded via the PyEmscripten standard (PEP 783) |
| AI | Limited integration | OpenAI, LangChain and MCP compatible with Workers AI |
On the AI side, the OpenAI and LangChain libraries, along with the MCP protocol, work directly with Workers AI. A project that already exposes a server compliant with the MCP specification can therefore be hosted on Workers without switching languages.
A minimal Python Worker example
A generally-available Python Worker is now declared with a minimal wrangler.toml configuration and a standard entry point:
from workers import WorkerEntrypoint, Response
class Default(WorkerEntrypoint):
async def fetch(self, request):
db = self.env.HYPERDRIVE
return Response("Python Worker in production")
Python is now a first-class language on Cloudflare’s developer platform, on par with JavaScript.
What it means for teams already on Cloudflare
For a team already running part of its application infrastructure on Cloudflare, the general availability of Python Workers opens the door to migrating an existing Python service without a full rewrite, while keeping the usual command-line workflow already built around Wrangler.
Key takeaways
Cloudflare has taken Python Workers out of experimental status and is positioning them as a credible alternative to JavaScript on its serverless platform, with native support for FastAPI, Django and Flask, plus relational database access through Hyperdrive. The main point to watch remains the still-partial coverage of native Python extensions under WebAssembly.
This kind of announcement matters more than it looks for teams that refuse to treat JavaScript as an infrastructure prerequisite. The open question is how many scientific packages (numerical computing, image processing) will actually clear the WebAssembly bar in production over the coming months — that is usually where general-availability announcements meet their first real-world limits. — Simon Janvier
Further reading: Cloudflare’s official announcement.
