
Developing PyO3 to bring Rust 🦀 and Python 🐍 together. Working with the team at Pydantic to build software that developers love. @davidhewitt@fosstodon.org
Oxford, England
Joined April 2011
- Tweets153
- Following108
- Followers915
- Likes164
I'm really looking forward to speaking at @RustNationUK 2025! I have a ton of crazy Rust stuff we've done in PyO3 which I can't wait to get your take on 😁
Speaker Announcement 🚨
For the past five years, David Hewitt (@davidhewittdev) has been on a journey exploring the evolving relationship between Rust and Python.
Join David's talk "Techniques learned from five years finding the way for Rust in Python" at #rustnationuk25, where he’ll share hard-earned insights from contributing to PyO3, revealing the Rust techniques and "proc-macro magic" behind building powerful, user-friendly APIs—all without compromising performance.
Get your early bird ticket now 🎟️ buff.ly/3y02Grr
We're having a lot of fun scaling up greenfield Rust services to power the backend of @pydantic Logfire!
To do that faster we'd love some additional firepower; interested in Rust & distributed database engineering? Read below 👇
Come and join us working on @pydantic Logfire.
You get to work with me and, more importantly @davidhewittdev — Rust legend, maintainer of PyO3.
Had a great time at the @pycon sprints yesterday leading a group working on PyO3! I'll be back in room 321 again today before I head back to the UK tonight. Come say hi!
Had a great experience giving my first talk at PyCon US just now! Thanks to everyone who came to hear me enthuse about Rust and Python! 😁
PyO3 0.21.2 just released! A few compile-time fixups, nothing particular to highlight.
github.com/PyO3/pyo3/release…
Also, for anyone wondering where the PyO3 development streams have gone - family responsibilities have filled my April slots, I'm hoping in May we can resume!
New in the PyO3 Discord: a #hiring channel. Are you looking for developers who can work on mixed Rust/Python codebases? Are you a developer who wants to work on one?
Join the Discord server at discord.gg/33kcChzH7f
That feeling when the bug report immediately following a patch release tells you the patch in question didn't quite address all the edge cases...
If only I'd caught it in the first review! github.com/PyO3/pyo3/pull/40…
3
325
PyO3 0.21 was released last week, unlocking the performance opportunities of the new API to all Rust/Python projects based on it. I'm looking forward to hearing how adoption goes!
github.com/PyO3/pyo3/release…
Thank you to all contributors who helped implement the new API. There was an enormous amount of effort that went into preparing this release:
364 files changed
22092 insertions(+)
7597 deletions(-)
Work doesn't stop here, we are already looking towards PyO3 0.22 which will continue with removing PyO3's old API now that we've introduced the new one. I'll also soon be looking at Python 3.13's "freethreaded" Python and how we support it in PyO3.
Thanks everyone who came to my PyO3 tutorial earlier at @RustNationUK!
For those who didn't make it - I keep being asked to do a tutorial stream on PyO3 - now I have the content I have no excuse!
(Well, just need to find the time. Stay tuned 😂)
Being at the tutorial of David Hewitt - Getting started with Pyo3. #rustlang interop with Python.
Besides ML, Python is also used in many R&D departments, e.g. in the chemical industry.
#rustnationuk24
To anyone interested in helping bring Rust and Python together, maturin is part of our secret sauce to make it easy to work on projects mixing the languages.
If you've been wondering about doing some OSS contributions, go check out these issues!
We have a few good-first-issues in maturin in case someone is interested in contributing to python packaging of Rust based extension modules.
github.com/PyO3/maturin/issu…
I'm planning a series of Friday morning streams preparing PyO3 for Python 3.13 support! But I'm going to have to take a short streaming pause until mid April first 😬
My family is better now but I'm a bit behind on - and very busy preparing for - @RustNationUK and @PyConLT in the coming two weeks. I won't be able to stream while I'm there. For folks attending, I look forward to seeing you in person!
1
11
891
Afraid no stream again this week, my family and I are not well today.
I'm going to get on quietly with a couple of tidy ups to PyO3 following the 0.21 beta release. Hopefully we can have a 0.21 release stream next week!
2
11
659
PyO3 0.21.0-beta.0 is now live. If you want to test the new Bound API before final release, please do so now! I'm aiming to see the 0.21.0 final live at the end of this week.
github.com/PyO3/pyo3/release…
This week I've written about PyO3's upcoming 0.21 release and in particular explained the huge change incoming in PyO3's new "Bound" API.
I am very excited to be giving this API to users soon. It has been a long long journey to reach this point.
polar.sh/davidhewitt/posts/r…
#python #rust #pyo3
No stream today, I'm travelling. Stay tuned to hear news about PyO3 0.21 beta / final in the coming week!
An early adopter testing PyO3 0.21's upcoming Bound API. Up to 47% speedups on their project, many in the 25-30% range.
Hugely satisfying to see this work beginning to pay off! Will get to work updating @pydantic very very soon...
This week I've written about PyO3's upcoming 0.21 release and in particular explained the huge change incoming in PyO3's new "Bound" API.
I am very excited to be giving this API to users soon. It has been a long long journey to reach this point.
polar.sh/davidhewitt/posts/r…
#python #rust #pyo3
Petr and I are just getting started, see you there!
Special stream announcement - youtube.com/live/E_hczlgDqus
Join me and CPython Core Dev @encukou on YouTube at the link above, 14:30 UTC tomorrow (Friday 1st March).
We will collaborate on a new CPython C API for reading Python string data! This is a direct follow-up to my stream from a few weeks ago where chat and I proposed a PR for CPython to solve challenges Rust/PyO3 has with the existing API
Visit the YouTube link now to see the time in your timezone and subscribe for a reminder.
#python #c #streaming
2
473
I'm looking forward to seeing everyone at #rustnationuk24!
The folks at @oxfordpython are having a preview of my tutorial tonight, so we should have all the kinks ironed out in time for the conference next month!
Have you considered using Py03 for your #rust project?
David Hewitt (@__davidhewitt__), Staff Software Engineer @pydantic and lead maintainer of Py03 will be joining us at #rustnationuk24. He'll share an introduction to Py03 and how it was used to build dual-language projects.
Special stream announcement - youtube.com/live/E_hczlgDqus
Join me and CPython Core Dev @encukou on YouTube at the link above, 14:30 UTC tomorrow (Friday 1st March).
We will collaborate on a new CPython C API for reading Python string data! This is a direct follow-up to my stream from a few weeks ago where chat and I proposed a PR for CPython to solve challenges Rust/PyO3 has with the existing API
Visit the YouTube link now to see the time in your timezone and subscribe for a reminder.
#python #c #streaming










