From the course: Using Rust with Python
Unlock this course with a free trial
Join today to access over 23,200 courses taught by industry experts.
PyO3 features - Rust Tutorial
From the course: Using Rust with Python
PyO3 features
- [Instructor] Here are some key features of PyO3, which allows you to use Rust and Python together. First up here we have Rust extensions in Python. Some of the things that you can do include allowing developers to write a Python extension in the Rust programming language. So, this means that you can do a high performance safe code, and you also can use it seamlessly in the Python environment. And the packaging is always excellent when you work with Rust. We also have Rust calling Python. So, in the case of the reason for this is that there are many readability issues with Python where it's really simple to look at the code. There's also lots of legacy code in Python you may want to interact with. And the libraries are extensive because the languages were around for 30 plus years. It's a very popular language as well. So, the idea here is that by allowing Rust code to call Python directly, it allows you to do things like call scripts, functions, manipulate python objects. We also…
Contents
-
-
Introduction: Instructor45s
-
Introduction: Rust and Python5m
-
PyO3 installation4m 15s
-
(Locked)
Basic Rust library4m 46s
-
(Locked)
Rust to Python3m 33s
-
(Locked)
Rust ownership model4m 59s
-
(Locked)
Diagram of a PyO3 project3m 40s
-
(Locked)
Python calculator CLI3m 54s
-
(Locked)
PyO3 features2m 38s
-
(Locked)
PyO3 exceptions4m 21s
-
(Locked)
Call Python from Rust5m 53s
-
(Locked)
Run Python with embedded Rust4m 47s
-
(Locked)
Embedded Rust CLI diagram3m 34s
-
(Locked)
Embedded Rust CLI4m 31s
-
(Locked)
Embedded Rust CLI test4m 59s
-
(Locked)
Rust-built Python tools3m 52s
-
(Locked)
Using the Rust Ruff linter5m 15s
-
(Locked)
Using Polars in Python with Rust4m 9s
-
(Locked)
Polars CLI in Rust4m
-
(Locked)
Polars CLI test in Rust4m 21s
-
(Locked)
Polars CLI integration test3m 29s
-
(Locked)
Polars criterion benchmarking5m 39s
-