Midterms 2026See who we think should earn your vote, based on our standardsThe guide →
WRITTEN IN PLAIN AMERICAN ENGLISH.
CLAY TRIBUNE.
Advertisement

Cloudflare’s Python Workers Advance From Beta to Production

Cloudflare makes Python a first-class language on its platform, with GA support across Workers, storage, and queues.

By mitch·4 min read
A cloud icon hovers above a rack of servers, surrounded by glowing code symbols.

Cloudflare has turned its Python preview into a full production feature. The company announced today that Python Workers are now generally available, which means Python is now a first-class language on the Cloudflare Developer Platform. Developers can run Python code, libraries, and frameworks directly in Workers, with full support for the platform’s AI, storage, and queue services.

The announcement comes from Gyeongjae Choi, Dominik Picheta, and Hood Chatham, who introduced Python Workers two years ago. Their goal was simple: make it as easy to write Workers in Python as it is in TypeScript. Today, they say, Python developers can bring their existing code and connect it seamlessly to Cloudflare’s R2 storage, D1 database, Hyperdrive, Durable Objects, Queues, and Workflows.

The Wasm Story

Cloudflare Workers has supported WebAssembly since 2018. That gave the company the environment it needed to run a Wasm-compiled Python interpreter. The team used Pyodide, a project that brings Python to the web via WebAssembly, to support a wide range of Python applications.

Advertisement

The result is the first platform for infinitely scalable Python apps, the team says. It should be as easy and performant as developing Python apps anywhere else.

GA Means Production-Ready

Generally available means Python is now fully supported. You can use the language without a preview label. The platform bindings that previously required explicit conversion between Python and TypeScript objects now work automatically.

One example from the announcement shows the old way. Sending a Python dictionary into a Cloudflare Queue required converting it to a JavaScript object at the RPC boundary, using glue code like this:

python
from pyodide.ffi import to_js
import js
self.env.QUEUE.send(to_js({"key": "value"}, dict_converter=js.Object.fromEntries))

Now the conversion happens inside the Workers runtime and the Python SDK. You send the dictionary directly:

python
self.env.QUEUE.send({"key": "value"})

That removes a common source of error for both humans and AI agents.

The platform bindings that previously required explicit conversion between Python and TypeScript objects now work automatically. The GA status means Python is fully supported on the platform.

Web Frameworks Now Work

The announcement covers three popular Python web frameworks: FastAPI, Django, and Flask. Each can now run inside Python Workers.

The team built a connector that translates incoming JavaScript requests into the standard WSGI or ASGI structures that Python applications expect. Those standards — WSGI for synchronous apps and ASGI for asynchronous ones — let developers build applications that are completely server-agnostic.

In a traditional deployment, web servers like Uvicorn or Gunicorn handle multiple concurrent client connections and threads to scale traffic. Web frameworks like FastAPI focus purely on the application logic. In Cloudflare Workers, the platform itself serves as the web server. The global network already handles load balancing and infinite scaling.

The workers.asgi and workers.wsgi connectors act as a thin, optimized bridge. They pipe the response back out with minimal overhead. Developers get the best of both worlds: they write and organize code with their favorite web frameworks, while the Cloudflare Workers platform scales the API across the globe without ever configuring a server.

Hyperdrive and Relational Databases

If you are building a Python application with PostgreSQL or MySQL, you can now integrate Hyperdrive into Python Workers. That was previously blocked because Python Workers did not support TCP sockets.

The GA release covers the gap. The Workers runtime and SDK handle type conversion automatically. Developers can send a Python dictionary directly into a Queue without converting it to a JavaScript object first.

What This Actually Changes

The GA status changes what developers can commit to. Previously, Python support was a preview. Today it is a production-ready feature. That matters for teams building cloud services that need to stay online.

The platform bindings that previously required explicit conversion are now automatic. That removes a common source of error for both humans and AI agents. The connectors work with any Python web framework that uses the WSGI or ASGI interface.

  1. Python is a first-class language on the Cloudflare Developer Platform.
  2. The Workers runtime and SDK handle type conversion automatically.
  3. FastAPI, Django, and Flask run inside Python Workers.
  4. Hyperdrive now works with Python applications.
  5. The feature is production-ready for everyone.

The Team’s Goal

The team’s stated goal was to make Python as simple to write in Workers as TypeScript. They have done that. The automatic type conversion, the supported frameworks, and the production-ready status all point in the same direction.

The GA status is a signal that the work is done.

The WSGI and ASGI connectors are clever. By translating JavaScript requests into standard Python structures, the team sidestepped the need to run a full server inside Workers.

Source material: “Python Workers are now generally available,” cloudflare.com.

The Notebook

Get the Notebook.

The day's best stories and every fresh verdict, in plain English, in your inbox by seven. One email a day, no more.

We send one note to confirm. Every issue has a one-click way out.

Advertisement

Leave a Reply

Your email address will not be published. Required fields are marked *

As an Amazon Associate, Clay Tribune earns from qualifying purchases.