Python Workers are now generally available
5 hours ago
- Python Workers are now generally available (GA) as a first-class language on the Cloudflare Developer Platform.
- Seamless integration with Cloudflare services (Workers AI, R2, D1, Hyperdrive, Durable Objects, Queues, Workflows) and popular Python frameworks (FastAPI, Django, Flask).
- Improved type conversion enables Pythonic use of Cloudflare bindings without JavaScript glue code.
- Built-in ASGI/WSGI connectors allow running web frameworks directly on Workers without external servers.
- TCP socket support via custom syscall implementation enables database drivers (e.g., aiomysql, asyncpg) and Hyperdrive integration.
- WebAssembly package ecosystem expanded through PEP 783 (PyEmscripten) and cibuildwheel support for cross-compiled packages.
- AI libraries like openai, langchain, and mcp now work natively, combined with Workers AI and AI Gateway.
- Production-ready examples include AI image generation, real-time Bluesky Jetstream processing, MCP servers, and RAG with Vectorize.
- Cloudflare documentation now includes Python code snippets alongside JavaScript/TypeScript.
- Future plans focus on performance, memory efficiency, and broader package support.