Python Workers are now generally available
Cloudflare made Python Workers generally available, adding native platform bindings plus FastAPI, Django, and Flask support without JavaScript glue code.
Cloudflare announced Python Workers general availability, making Python a first-class language on its Workers runtime via a Pyodide WebAssembly interpreter. Native bindings to Workers AI, R2, D1, Hyperdrive, Durable Objects, and Queues now handle Python-to-JavaScript type conversion automatically, eliminating error-prone glue code. Built-in workers.asgi and workers.wsgi connectors let FastAPI, Django, and Flask apps run with the Workers edge network acting as the web server, and Hyperdrive adds PostgreSQL/MySQL connectivity from Python. Example code demonstrates invoking the gpt-oss-120b model through Workers AI from a FastAPI handler.
- Python is now first-class on Cloudflare Workers via Pyodide over WebAssembly
- Native bindings remove JavaScript glue code for Queues, R2, D1, Workers AI
- FastAPI, Django, and Flask run via built-in ASGI/WSGI connectors
- Hyperdrive enables PostgreSQL and MySQL access from Python Workers
From the original article
9 min read at blog.cloudflare.com
Python Workers allow developers to run Python web frameworks and AI orchestration libraries natively in the Cloudflare Workers runtime. You can seamlessly integrate with Cloudflare's ecosystem including D1, R2, and Workers AI without writing any JavaScript glue code.
By Gyeongjae Choi · blog.cloudflare.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.