Cloudflare

Workers RPC now works across Python and JavaScript

Aug 3, 2026Dominik Picheta, Gyeongjae Choi
Workers RPC now works across Python and JavaScript
SummaryAI, from the source post

This post introduces cross-language RPC support for Cloudflare Workers, enabling seamless communication between JavaScript and Python Workers. It details the use of Pyodide's FFI and a custom `workers-runtime-sdk` Python package for automatic type conversion and handling of Workers-specific objects like Request and Response. The post provides examples of calling methods across languages, sharing objects, and using Python packages from JavaScript Workers. It also highlights the open-source nature of the implementation within `workerd` and `workers-runtime-sdk`.

More from the Edge Computing with Cloudflare Workers trail