Skip to content

Rust for Python - an introduction #194

@DataEnggNerd

Description

@DataEnggNerd

Title of the talk

Build your first Rust extension for Python

Description

This session introduces Python developers to the power of Rust for creating high-performance Python extensions. Learn how to leverage Rust's speed and memory safety to supercharge your Python applications without sacrificing Python's ease of use and flexibility.

Perfect for both beginners curious about Rust and experienced developers looking to optimize performance bottlenecks, this presentation walks through the complete process of creating, packaging, and using Rust extensions in Python projects. We'll cover setting up your development environment, writing your first Rust function accessible from Python, and implementing a practical example that demonstrates significant performance improvements over pure Python implementations.

Through live coding demonstrations, you'll see how the PyO3 framework makes language interoperability surprisingly straightforward, allowing you to write critical code paths in Rust while maintaining your existing Python codebase. By the end of this session, you'll have the knowledge to identify which parts of your Python applications could benefit from Rust's performance and the skills to implement these optimizations in your own projects.

Join us to discover how combining these two languages gives you the best of both worlds: Python's rapid development and vast ecosystem alongside Rust's blazing speed and ironclad safety guarantees.

Table of contents

  • Setting Up the Environment
  • Hello World: Your First Rust Function
  • Extending Rust code to Python using maturin and PyO3
  • Comparison of performance
  • Publishing your first package to PyPI

Duration (including Q&A)

30 mins

Prerequisites

No response

Speaker bio

I work as an Associate Architect at InfoBeans, where I focus on building backend systems with Python and AWS. For my personal side quest, I've been learning Rust and building developer tools for Python devs. I'm currently developing a logging library for Python through Rust called lo3. I want to share what I've learned about leveraging Rust to accelerate Python runtime performance.

LinkedIn - https://www.linkedin.com/in/santhosh-solomon/
Github - https://github.com/DataEnggNerd

The talk/workshop speaker agrees to

Metadata

Metadata

Assignees

No one assigned

    Labels

    scheduledThe scheduled talkstalk-proposalNew talk of Python Pune meetup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions