Skip to main content

Accelerating Python with Rust: The PyO3 Revolution

Track:
Python Libraries & Tooling
Type:
Talk
Level:
beginner
Room:
Terrace 2B
Start:
11:35 on 10 July 2024
Duration:
30 minutes

Abstract

Are you curious about integrating the high-performance and memory efficiency of Rust into your Python applications? Rust can significantly enhance the speed and efficiency of Python programs, and this integration is made seamless with PyO3.

This presentation will delve into the capabilities of PyO3, a tool that allows the creation of native Python modules using Rust. With PyO3, importing Rust code as a Python module is straightforward. It offers seamless type conversion between Python and Rust and includes macros that simplify the process of exposing Rust functions to Python.

Moreover, with the growing trend towards asynchronous programming, PyO3-asyncio emerges as a vital tool for those working with async functions in Python or looking to generate Python bindings for an async Rust library. It streamlines the task of translating async functions between Python and Rust. Furthermore, PyO3 facilitates easy implementation of parallelism within Rust code, enhancing performance and efficiency.


The speaker

Roshan R Chandar

Roshan R Chandar

Roshan is an enthusiastic Python dev, with a love for exploring the endless possibilities of Python magic! He is a talented presenter with experience at conferences like PyCon Thailand 2023.

He has also achieved success in numerous hackathons and have actively led various Python training sessions. An avid FOSS enthusiast, he has contributed to many open source organisations like the GNOME project and maintains several popular applications.

Currently, Roshan leverages his Python expertise as a backend developer at Strollby, working with Python microservices and GraphQL.