Daniel Felix Ritchie School of Engineering and Computer Science

Using Rust with Python

In this course, MLOps expert Noah Gift presents a practical guide on how to use Rust with Python. After a short introduction to Rust and Python, learn how to install PyO3 and use the basic Rust library. Find out how to go from Rust to Python and explore the Rust ownership model. Examine a diagram of a PyO3 project and learn how to use the Python calculator CLI, PyO3 features, and PyO3 exceptions. Go over how to call Python from Rust, run Python with embedded Rust, and embed a Rust CLI diagram, Rust CLI, or Rust CLI test. Explore several Rust-built Python tools, the Polars CLI in Rust, and more. This course prepares you to integrate Rust with Python into your own workflows.

This course was created by Noah Gift. We are pleased to host this training in our library.

Learn More