CLOUDFLARE has announced general availability for Python Workers, allowing developers to deploy Python applications in the company’s WebAssembly-based Workers environment. The platform includes connectors for the WSGI and ASGI standards, enabling frameworks including Django, Flask and FastAPI to run without a separate application server such as Gunicorn or Uvicorn.
Cloudflare says its Workers platform handles incoming connections, load balancing and scaling, while the connectors translate requests between JavaScript and the structures expected by Python applications.
The release also adds support for PostgreSQL and MySQL connections through Hyperdrive. Cloudflare previously lacked TCP socket support in Python Workers, preventing common database drivers from working; it has now implemented socket operations using the Workers `connect` API. The company says drivers such as `aiomysql` and `asyncpg` can therefore operate without modification, subject to the packages supported by its documentation.
Cloudflare also highlights broader WebAssembly package support. Python Workers are built on Pyodide, and packages containing native C, C++ or Rust extensions must be cross-compiled. Cloudflare says the accepted PEP 783 proposal standardises the PyEmscripten platform for distributing such packages, while updated tooling and `cibuildwheel` support should make builds easier for maintainers. Networking changes also allow libraries including `openai`, `langchain` and `mcp` to use JavaScript’s `fetch` API.
Cloudflare provides examples covering AI orchestration, Bluesky Jetstream stream processing, MCP servers and retrieval-augmented generation, and says it plans further performance, memory-efficiency and package improvements.