Table of Contents 1Steps1.1Using kwargs 2TODOs Using PyO3 and maturin, it’s very easy to call Rust code from Python. I’m mostly following the guide at pyo3.rs, but leaving out some thing related to python environments. 1 Steps Install maturin. I use the Arch package but you can also do a pip install in the environment below. Make sure you have a lib target, and add cdylib as a crate-type.