Writing Python extensions in Rust

Friday, May 26

15:15 - 17:15
Audience levelIntermediate
Seats left1
    Elevator pitch

    Many times we have to write Python extensions, particularly in C. To do various system operations, or doing calculations in a faster manner. But, writing safe C code is always difficult, even for an experienced developer. This is where writing Python extensions in Rust is becoming more popular among


    If you are using latest cryptography in any of your project (which you most probably already do), you are using one of the most powerful and trusted Python module where a part is written in Rust.

    In this workshop we will go through a given git repository (no prior Rust knowledge is required) and start building a Python extension module step by step.


    Initial module creation single function functions with arguments Help documentation Functions to read files Exception generation Dictionaries, lists Creating your own class A module with some real life work done in Rust

    participant photo

    Kushal Das

    Kushal Das is a public interest technologist working at Sunet ( where he helps to build secure and privacy focused tools and services. He is Cpython core developer & a director at the Python Software Foundation. He is also part of the core team of the Tor Project, and a long time contributor to Fedora Project. In 2004 he founded Linux Users’ Group of Durgapur. He also helps out journalists with digital security trainings.