Hacker ApprovedDepartments

PyO3

Hacker Approved

The most recommended of 3 binding generators

People recommend PyO3 for writing Python extensions in Rust, citing safe wrappers, easy use and a large ecosystem. Critics say it adds bloat and is far from perfect.

People recommend PyO3 for writing Python extensions in Rust, citing safe wrappers, easy use and a large ecosystem. Critics say it adds bloat and is far from perfect.

17 people gave an opinion

recommend it
16
criticize it
1
approval share
94%
Each figure is one person. RecommendsCriticizes

Recommended in 10 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 16 people recommend itNeeds 10 or more, met.
  • 16 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 10 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Safe and easier than alternatives

    “PyO3 is designed in such a way that it's a lot easier to avoid many of these issues”

    Comment from 8 Mar 2026 in “Notes on Writing WASM”

    “PyO3 to just write "safe" wrappers on top of cpython APIs”

    Comment from 8 Mar 2026 in “Notes on Writing WASM”

    “pyo3 is safer and easier to use to build said modules”

    Comment from 13 Sep 2026 in “Libraries Run Rust Inside Python (With PyO3)”
  • Widely used, strong ecosystem

    “PyO3 is an extraordinarily popular project, and there are (tens of?) thousands of Python packages using it.”

    Comment from 24 Oct 2026 in “Bringing uv and ty together”

    “So basically well known and very good Open Source”

    Comment from 22 Dec 2025 in “Show HN: Rust/WASM lighting data toolkit – parses legacy formats, generates SVGs”

    “PyO3's excellent ecosystem”

    Comment from 2 Jan 2026 in “WebAssembly as a Python Extension Platform”
  • Gradual path from Python to Rust

    “I've personally had great success using python, then gradually rewriting the tool I have with py03”

    Comment from 17 May 2026 in “Mercurial, 20 years and counting: how are we still alive and kicking? [video]”

    “Writing a Python extension would a good way to dip your toes into Rust”

    Comment from 10 Jul 2026 in “Interview with Mitchell Hashimoto about Ghostty and Zig”

    “Then have it re-write any remaining slow parts in Rust with Py03.”

    Comment from 28 Oct 2026 in “Python's experimental JIT to be removed”

What people warn about

Each mark is one comment

  • Adds bloat and other issues

    “Having glue libraries like pyo3 makes it good in rust. But that introduces bloat and other issues.”

    Comment from 23 Feb 2026 in “What it means that Ubuntu is using Rust”
  • Far from perfect

    “PyO3 is far from perfect but decently usable”

    Comment from 13 Sep 2026 in “Libraries Run Rust Inside Python (With PyO3)”

Other binding generators people recommend

The two most recommended other binding generators, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

PyO3 compared with 2 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
PyO3This page16194%10—Approved
UniFFI90100%6——
flutter_rust_bridge60100%8——
See all 3 binding generators, ranked

What people said

All 20 comments that mention it, newest first. Each links to the original comment.

“Then have it re-write any remaining slow parts in Rust with Py03.”

RecommendsComment from 28 Oct 2026 in “Python's experimental JIT to be removed”

“PyO3 is an extraordinarily popular project, and there are (tens of?) thousands of Python packages using it.”

RecommendsComment from 24 Oct 2026 in “Bringing uv and ty together”

“It should be good to go, but of course I don’t know what your codebase looks like”

RecommendsComment from 9 Oct 2026 in “Python 3.15”

“PyO3 is far from perfect but decently usable”

MixedComment from 13 Sep 2026 in “Libraries Run Rust Inside Python (With PyO3)”

“PyO3 is just a really simple interface generator in comparison”

CriticizesComment from 13 Sep 2026 in “Libraries Run Rust Inside Python (With PyO3)”

“pyo3 is safer and easier to use to build said modules”

RecommendsComment from 13 Sep 2026 in “Libraries Run Rust Inside Python (With PyO3)”

“Maturin/PyO3 can build "manylinux" binaries automatically, which helps with the Linux ABI diaspora.”

RecommendsComment from 13 Sep 2026 in “Libraries Run Rust Inside Python (With PyO3)”

“PyO3 is a really great example of that.”

RecommendsComment from 13 Jul 2026 in “Zig Creator Calls Spade a Spade, Anthropic Blows Smoke”

“Writing a Python extension would a good way to dip your toes into Rust”

RecommendsComment from 10 Jul 2026 in “Interview with Mitchell Hashimoto about Ghostty and Zig”

“Fantastic to have PyO3/Maturin guides too”

RecommendsComment from 14 Jun 2026 in “Pyodide 314.0: Python packages can now publish WebAssembly wheels to PyPI”

“I've personally had great success using python, then gradually rewriting the tool I have with py03”

RecommendsComment from 17 May 2026 in “Mercurial, 20 years and counting: how are we still alive and kicking? [video]”

“write static python and transpile to rust pyO3 which is at the top of the ladder”

RecommendsComment from 14 Mar 2026 in “Python: The Optimization Ladder”

“PyO3 to just write "safe" wrappers on top of cpython APIs”

RecommendsComment from 8 Mar 2026 in “Notes on Writing WASM”

“PyO3 is designed in such a way that it's a lot easier to avoid many of these issues”

RecommendsComment from 8 Mar 2026 in “Notes on Writing WASM”

“Why is PyO3 so much nicer to use than wasm-bindgen?”

RecommendsComment from 8 Mar 2026 in “Notes on Writing WASM”

“Having glue libraries like pyo3 makes it good in rust. But that introduces bloat and other issues.”

MixedComment from 23 Feb 2026 in “What it means that Ubuntu is using Rust”

“The projects that really stand out to me are pyo3 (Replace c++ python modules with rust)”

RecommendsComment from 23 Feb 2026 in “What it means that Ubuntu is using Rust”

“PyO3's excellent ecosystem”

RecommendsComment from 2 Jan 2026 in “WebAssembly as a Python Extension Platform”

“So basically well known and very good Open Source”

RecommendsComment from 22 Dec 2025 in “Show HN: Rust/WASM lighting data toolkit – parses legacy formats, generates SVGs”

“PyO3 has a nice collection of APIs for holding/releasing the GIL”

RecommendsComment from 20 Nov 2025 in “Performance hacks for faster Python code”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.