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.
Polars CLI in Rust - Rust Tutorial
From the course: Using Rust with Python
Polars CLI in Rust
- [Instructor] Using Rust with Polars is a great solution because of the performance, but even better is to integrate a command line interface. Fortunately, Rust has many options for this, including the CLAP interface that I'm going to use here. Let's go ahead and take a look at how CLAP allows you to build a very fast command line tool interface. Alright, let's go ahead and CD into Polars CLI here, which has all the code that we're going to work with. So I'm going to CD into Polars CLI and next up I'm going to take a look at the code first in the source directory. So a couple things to be aware of here. Whenever you're looking at a Rust based project, one nice thing that I like to do is do tree -I and then do target. And what this does is shows me a nice structure for what is inside of my project. So if you're looking at somebody else's project, for example, if you run tree -I target, so basically, you know, exclude that directory, but show me the tree of everything else here. You…
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
-