Using Rust to write Python modules
summary
Demonstrates using PyO3 and maturin to write Rust-backed CPython extensions, showing a real library built from Sequoia Rust code and the cryptography rewrite as examples, compiled into shared objects that import at runtime and publish multiple wheels per Python version. Shows a PySide desktop app "Johnny Can Encrypt" that uses Rust modules for OpenPGP operations, explains mapping Rust Result errors into Python exceptions to avoid panics, and reports the workflow actually works for development, packaging, and cross‑Python distribution.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 4:03Python in Rust ecosystem
- 10:13Rewriting Python modules in Rust
- 13:22Rust-Python integration demo
- 17:25Real-world Rust-Python projects
- 21:44Tumpa for OpenPGP users
- 23:50Rust-Python ecosystem examples
- 25:55Future of Rust in Python
- 26:16Question and answer session
related talks
03h 19mPyO3 101 - Writing Python modules in Rust
44mHow Python Harnesses Rust through PyO3
36mPumping up Python modules using Rust
46mPython + Rust = ?
26mShipping Python Extensions in Rust Two Million Times a Day
29mThe Art of Extending Python with other languages
44mDo Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart
34mRust for the Python dev
