Cloudflare 宣布 Python Workers 正式上市(GA),使 Python 成为 Cloudflare Workers 运行时的第一类、完全支持的语言 1。开发者现在可以用 Python 编写应用,并集成 FastAPI、Django、Flask 等主流框架 1。
Python Workers 提供了与 Cloudflare 开发者平台的原生绑定,无需手动类型转换 1。该平台支持与 Workers AI、R2、D1、Hyperdrive、Durable Objects、Queues、Workflows 等 Cloudflare 服务无缝连接 1。此外,新增了 PostgreSQL 和 MySQL 通过 Hyperdrive 的支持 1,并实现了 WebAssembly 沙箱中的 TCP socket 系统调用 1。
Cloudflare 还通过 PEP 783 标准化了 PyEmscripten 平台,扩展 WebAssembly Python 包生态 1。Python Workers 同时支持 openai、langchain、mcp 等 AI 库 1。
Cloudflare has announced the general availability of Python Workers, establishing Python as a first-class, fully supported language for the Cloudflare Workers runtime 1. Developers can now build applications using popular Python frameworks including FastAPI, Django, and Flask, with seamless integration into Cloudflare's platform services 1.
The platform offers native support for Cloudflare developer bindings without requiring manual type conversion 1. Python Workers can connect to Workers AI, R2, D1, Durable Objects, Queues, and Workflows services 1. The release also introduces support for PostgreSQL and MySQL databases through Hyperdrive 1. Additionally, Python Workers now implements TCP socket system calls within WebAssembly sandboxes 1, and supports AI libraries such as OpenAI, LangChain, and MCP 1.
Cloudflare has further standardized the PyEmscripten platform through PEP 783, expanding the ecosystem of WebAssembly-compatible Python packages 1.
评论
还没有评论,欢迎留下第一条。