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.
Embedded Rust CLI diagram - Rust Tutorial
From the course: Using Rust with Python
Embedded Rust CLI diagram
- [Instructor] Here we have a PyO3 embedded Python CLI tool here that uses Rust as the main framework to invoke Python, and you can see here that I have an embedded Python function that takes an input, a very simple input that if the string matches marco, it returns back python. If it doesn't, it returns back no python. So it's pretty simple bit of code here, but it's wrapped up with PyO3. So that part is in some ways the straightforward part, but the next question that many people that are working in production environments may want to think about is, what are the next steps that make this a real-world production tool? So the next step, in my opinion, for most interfaces is to start with a command line interface, and with the Rust language, there are many excellent command line tool frameworks. In fact, they allow you to do very sophisticated things like binary deploy, which is one of my favorite ways to deploy a CLI, since you don't have to tell anybody about how to package the…
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
-