PYTHON INTEROP & PYO3
Move heavy lifting from Python to Rust. Creating native modules that outperform pure Python by 100x+.
PyO3 User Guide
Official guide for writing Python extensions in Rust. Covers classes, functions, exception handling, and the GIL.
Maturin — build and publish PyO3 modules
Tool for building and publishing Rust-based Python packages. Use alongside PyO3 to ship native extensions to PyPI.
Rust + Python: Writing Native Extensions
Practical walkthrough of building a zero-copy Rust extension for Python using PyO3 and ndarray.