Using Rust with Python
1h 32mIntermediate2024-07-09
Authors
Noah Gift
MLOps Expert | Solopreneur | Author | Adjunct Professor | CTO
Course details
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.
Skills covered
RustProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off
Concepts
1. Using Rust with Python
- 01 - Introduction - Instructor
- 02 - Introduction - Rust and Python
- 03 - PyO3 installation
- 04 - Basic Rust library
- 05 - Rust to Python
- 06 - Rust ownership model
- 07 - Diagram of a PyO3 project
- 08 - Python calculator CLI
- 09 - PyO3 features
- 10 - PyO3 exceptions
- 11 - Call Python from Rust
- 12 - Run Python with embedded Rust
- 13 - Embedded Rust CLI diagram
- 14 - Embedded Rust CLI
- 15 - Embedded Rust CLI test
- 16 - Rust-built Python tools
- 17 - Using the Rust Ruff linter
- 18 - Using Polars in Python with Rust
- 19 - Polars CLI in Rust
- 20 - Polars CLI test in Rust
- 21 - Polars CLI integration test
- 22 - Polars criterion benchmarking