Cloudflare announced that its Python Workers service has moved from preview to general availability.
Cloudflare announced that its Python Workers service has moved from preview to general availability. The offering lets developers execute Python code within the company's serverless platform, extending the runtime that previously supported JavaScript, TypeScript and Rust.
When first unveiled two years ago, Python Workers aimed to bring the language to the same level of simplicity as TypeScript for building edge applications. The company emphasized making existing Python packages and frameworks operate without modification, and allowing developers to connect their code to Cloudflare's suite of services including Workers AI, R2 storage, D1 databases, Hyperdrive, Queues, and Durable Objects.
General availability marks the point at which Python is treated as a fully supported language on the Cloudflare Developer Platform. The company states that developers can now use their existing Python applications, libraries, and design patterns directly within the environment, linking them to other platform components.
Technical details reveal that Python Workers now support major web frameworks such as FastAPI, Django, and Flask. These frameworks can run through built-in connectors that translate incoming requests into the ASGI or WSGI standards expected by Python applications. Instead of requiring developers to run separate servers like uvicorn, the platform provides a lightweight bridge that handles request routing and response handling.
Database integration received attention through Hyperdrive, which now works with Python Workers. Previously, Python's socket-based database drivers could not function in the WebAssembly sandbox. Cloudflare addressed this by implementing custom socket system calls that map Python socket operations to the platform's JavaScript fetch API, enabling connections to PostgreSQL and MySQL databases through Hyperdrive bindings.
The company also highlighted progress on expanding the package ecosystem. Python packages with native extensions must be compiled to WebAssembly to function in the sandbox. To simplify this process, Cloudflare helped standardize the PyEmscripten platform through a proposed PEP 783, which establishes a common interface for running Python in WebAssembly environments. This development allows package maintainers to publish wheels that work across multiple platforms.
AI and machine learning workloads represent another key use case. Libraries such as openai, langchain, and mcp, which typically depend on standard HTTP clients, now operate within Python Workers after Cloudflare contributed patches to route network calls through the platform's fetch API. This enables developers to build AI pipelines that combine Workers AI inference with edge storage and queuing services.
Examples of production patterns are documented in a public repository. These include asynchronous AI orchestration that chains Workers AI models with Cloudflare Queues and R2 storage, real-time event processing using Bluesky's Jetstream WebSocket backed by Durable Objects, and MCP server implementations for AI assistants.
The company indicates ongoing development plans to improve performance, reduce memory consumption, and expand supported packages. Documentation and example code are available for developers seeking to build applications using the platform.
- Publisher
- Hacker News
- Reliability
- high
- Published
- 9/22/2026, 12:25:23 PM
- Retrieved
- 9/22/2026, 12:25:23 PM
- Relevance
- 80%
- Confidence
- 85%

