Exposing Rust DataFusion UDFs to Python via the PyCapsule protocol

How to bridge a Rust-only DataFusion crate into datafusion-python with datafusion-ffi, PyO3 and a single PyCapsule dunder, no fork of datafusion-python needed.

September 2, 2026 · 2 min