Tutorials - Cheuk Ting Ho: PyO3 101 - Writing Python modules in Rust

  Рет қаралды 682

PyCon US

PyCon US

Ай бұрын

In recent years, Rust has been getting more and more popular over other similar programming languages like C and C++ due to its robust compiler checking and ownership rules to make sure memory is safe. Hence there are more and more Python libraries that have been written in Rust natively with a Python API interface. One of the tools that have been driving this movement is PyO3, a toolset that proves Rust bindings for Python and tools for creating native Python extension modules.
In this interactive workshop, we will cover the very basics of using PyO3. There will be hands-on exercises to go from how to set up the project environment to writing a "toy" Python library written in Rust using PyO3. We will cover a lot of expectations of the API provided by PyO3 to create Python functions, modules, handling errors and converting types.
Goal
To give developers who are not familiar with PyO3 an introduction to PyO3 so they can consider building their Python libraries with Rust to make use of Rust's memory-safe property and parallelism ability.
Target audiences
Any developers who are interested in developing Python libraries using Rust. It will be an advantage if the attendees are comfortable writing in Rust. However, attendees are not required to be familiar with Rust as all the Rust codes will be provided. Basic knowledge of Python will be assumed from the attendees.

Пікірлер
How To Make Your Python Packages Really Fast With RUST
5:16
Isaac Harris-Holt
Рет қаралды 39 М.
5 Tips To Organize Python Code
12:16
Tech With Tim
Рет қаралды 224 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
3 Types of Projects That Will Make You a Programmer
8:12
Andy Sterkowitz
Рет қаралды 1 МЛН
Robin Raymond:  Rusty Python - A Case Study
28:47
PyData
Рет қаралды 2,1 М.
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46
The Rust Standard Library is SO Confusing...Until Now!
11:45
Travis Media
Рет қаралды 26 М.
Why Are There No Computers in DUNE When Space Travel Exists ?
14:49
Kroft talks about Movies
Рет қаралды 4,4 М.
Calling Rust code from Python
8:23
Let's Get Rusty
Рет қаралды 38 М.
Combining Rust and Python: The Best of Both Worlds?
11:08
ArjanCodes
Рет қаралды 69 М.
Rust's Alien Data Types 👽 Box, Rc, Arc
11:54
Code to the Moon
Рет қаралды 139 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН