redshiftzero
  • Categories
  • Tags
  • About

Creating Python extensions in Rust using PyO3

 2020.12.6  2025.2.10  Post/Rust  1439  7 mins

This post describes how I approached writing a Python extension in Rust. The post covers:

  • why one would even want to do this 🙃
  • the approaches for calling Rust code from Python
  • an overview of how to create a Python module in Rust using PyO3
  • some tricky parts, e.g. inheritance
  • building and distributing wheels

Let’s get started.

Read More »
  • < Newer
  • Older >
© 1969–2025 
Powered by Hugo | Theme is MemE
CC BY-NC-SA 4.0