Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Bringing Python to Workers using Pyodide and WebAssembly

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Hood Chatham, Garrett Gu, Dominik Picheta
Word Count
4,030
Language
English
Hacker News Points
389
Summary

Starting today, Cloudflare is launching an open beta for writing Cloudflare Workers in Python. This new feature integrates a Python implementation directly into workerd, the open-source Workers runtime. Bindings to various resources such as Vectorize, Workers AI, R2, Durable Objects, and more are supported from day one. The Python execution environment is provided for users, mirroring how Workers written in JavaScript already work. This feature is made possible by Pyodide, a port of CPython to WebAssembly that interprets Python code without any need to precompile the Python code itself to any other format.