Home Books Browse by series All books Agentic AI Engineering Series From Spreadsheets to Code Data Science Foundations Series The Applied Python Library Rust in Practice Cybersecurity for Absolute Beginners Go For Absolute Beginners The TypeScript for Absolute Beginners AI-Powered Excel Automation Kotlin For Absolute Beginners Blog Download Data About Us Contact Browse Library →
Rust For Python Developers cover
Book 1 of the Rust in Practice series

Rust For Python Developers

Write the Fast Part in Rust, Keep the Rest in Python

by Roan Whitaker

4.5/5 · 2 reviews
Kindle
$12.35 $5.99 -51%
Paperback
$29.99 $16.99 -43%

Your Python code works. It is just too slow.

You know the moment. A loop over a few million records that should take seconds takes minutes. A report arrives late because one function has quietly become the bottleneck. You have tried the usual answers: vectorize it, cache it, throw a bigger machine at it. It is still slow because you have hit the floor of what an interpreted language can do.

This is the book that gets you past that floor—without abandoning Python.

RUST FOR PYTHON DEVELOPERS is written for one specific reader: a competent Python programmer who has never written a line of a compiled language. Not a systems programmer. Not a C++ veteran looking for a safer language. If you are comfortable with functions, classes, and pip, this book was written with you in mind.

Every low-level idea is built from first principles, at the exact moment you need it, in vocabulary a Python developer already owns. Nothing is assumed. Nothing is hand-waved.

WHAT YOU WILL BE ABLE TO DO

  • Read and write real Rust, starting from Python concepts you already know
  • Understand ownership, moves, and borrowing—the one hard idea behind Rust
  • Replace exceptions with Option and Result, checked by the compiler
  • Parse CSV and JSON at speed with serde
  • Build zero-cost data pipelines with iterators and closures
  • Test and debug Rust code with confidence
  • Compile Rust into a Python module with PyO3 and import it like any other package

THE STRATEGY: DO NOT REWRITE EVERYTHING

You do not need to become a Rust developer. You need the hot 5 percent of your codebase to stop being the bottleneck. This book teaches the surgical approach: profile, isolate the slow function, rewrite it in Rust, expose it to Python with PyO3, and leave the other 95 percent exactly as it is. Your team keeps writing Python while your pipeline becomes dramatically faster.

The book closes with a complete capstone project: a log analyzer built in Rust and called from Python, transforming a painfully slow workload into one that finishes in a fraction of the time.

HOW THE BOOK IS BUILT

PART 1 (Ch. 1–5) Foundations: toolchain, types, control flow, pattern matching, and collections.
PART 2 (Ch. 6–8) Ownership, moves, borrowing, and the borrow checker.
PART 3 (Ch. 9–11) Structs, enums, methods, and error handling without exceptions.
PART 4 (Ch. 12–15) Serde, CSV, JSON, iterator pipelines, testing, and the PyO3 capstone.

15 chapters. 232 pages. Every chapter ends with a quiz, with fully explained answers in Appendix A.

WHY THIS BOOK AND NOT THE OTHERS

Most Rust books assume experience with a compiled language and explain ownership using C++ concepts. This book explains Rust from a Python developer's perspective, making ownership intuitive instead of intimidating.

It is also honest about the hard parts. Ownership takes time to learn, and the book spends three full chapters making sure it finally clicks.

PREREQUISITES

Working Python. That is all. No C, no C++, no systems programming background, and no computer science degree required.

Part of the RUST IN PRACTICE series from Waskey Press. Every volume stands completely alone—no previous volume required.

Scroll up and start writing the fast part in Rust today.

Pages239
ISBNB0GX39Z7KJ
PublisherWaskey Press
FormatPaperback & Kindle
Share this book

Reader reviews (2)

D
Danny
Aug 17, 2026

An excellent bridge from Python to Rust. As a Python developer, I found this book to be an excellent introduction to Rust.

J
Julien Morel
Aug 11, 2026

I really enjoyed the practical approach of this book. The idea of keeping Python for the parts where it works well and using Rust where performance really matters is particularly useful for developers coming from the Python ecosystem. The explanations make the transition to Rust much less intimidating, especially when dealing with concepts that are very different from Python. I also appreciated the focus on practical use cases rather than simply learning Rust syntax.
I gave it four stars because some sections require a bit more time and concentration, especially for readers who are completely new to systems programming. However, that is also part of the value of the book: it encourages you to understand what is happening under the hood rather than simply copying code.
Overall, a very useful book for Python developers who want to explore Rust without abandoning the language and ecosystem they already know. Definitely worth considering if you want to make the performance-critical parts of your Python applications faster.

Leave a review

Share your experience with this book. Reviews are moderated before publication to keep discussions useful and respectful.

Reviews are moderated and appear once approved.

You might also like

View all books →
Buy on Amazon →