PyO3/pyo3
Rust bindings for the Python interpreter observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 22
- age_days: 3399
- days_rel: 28
- days_push: 9
- n_releases_24m: 26
Adoption not part of the score
16074 stars · 1010 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PyO3 provides Rust bindings for the Python interpreter, letting developers write native Python extension modules in Rust or embed and run Python code inside Rust binaries. It supports CPython, PyPy, and GraalPy and is typically paired with the maturin build tool.
Use cases
- write a Python extension module in Rust
- speed up slow Python hot paths with Rust
- embed a Python interpreter in a Rust application
- call Python code from Rust
- build and publish Rust-based Python packages with maturin
- expose Rust library functions to Python via FFI
When to choose
- you need native-speed Rust code callable from Python
- you want to embed Python scripting in a Rust program
- you are building a Python package with a Rust core
- you need FFI bindings to the Python C API without writing C
When to avoid
- your project is pure Python with no performance-critical code
- you need bindings for a language other than Rust or Python
- you cannot tolerate a build toolchain requiring Rust 1.83+
Facets
library · maturity stable
sdk developer-tools developer-tools programming-languages cross-platform rust python cross-platform ffi python-c-api cpython pypy graalpy extension-modules embedding maturin
5 sources
- readme: https://github.com/PyO3/pyo3 · fetched 2026-08-28 · ccb920bc5146
- homepage: https://pyo3.rs · fetched 2026-08-29 · a3344f635c87
- site_page: https://pyo3.rs/v0.29.2/getting-started · fetched 2026-08-29 · 8a15ee80daf1
- registry_crates: https://crates.io/api/v1/crates/pyo3 · fetched 2026-08-29 · 2c14b96ea1a2
- site_page: https://pyo3.rs/latest/faq.html · fetched 2026-08-29 · bf4cd9122f63
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PyO3/pyo3 | main | 98 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem