PyO3

Rust bindings for the Python interpreter (by PyO3)

PyO3 Alternatives

Similar projects and alternatives to PyO3

  1. rust

    2,812 PyO3 VS rust

    Empowering everyone to build reliable and efficient software.

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. CPython

    1,487 PyO3 VS CPython

    The Python programming language

  4. rfcs

    684 PyO3 VS rfcs

    RFCs for changes to Rust

  5. book

    654 PyO3 VS book

    The Rust Programming Language

  6. bevy

    594 PyO3 VS bevy

    A refreshingly simple data-driven game engine built in Rust

  7. Rustlings

    297 PyO3 VS Rustlings

    :crab: Small exercises to get you used to reading and writing Rust code!

  8. serde

    199 PyO3 VS serde

    Serialization framework for Rust

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. polars

    149 PyO3 VS polars

    Dataframes powered by a multithreaded, vectorized query engine, written in Rust

  11. Numba

    127 PyO3 VS Numba

    NumPy aware dynamic Python compiler using LLVM

  12. RustPython

    101 PyO3 VS RustPython

    A Python Interpreter written in Rust

  13. surrealdb

    104 PyO3 VS surrealdb

    A scalable, distributed, collaborative, document-graph database, for the realtime web

  14. Cython

    81 PyO3 VS Cython

    The most widely used Python to C compiler

  15. Robyn

    71 PyO3 VS Robyn

    Robyn is a Super Fast Async Python Web Framework with a Rust runtime.

  16. gtk-rs

    45 PyO3 VS gtk-rs

    Discontinued Rust bindings for GTK 3

  17. maturin

    40 PyO3 VS maturin

    Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages

  18. uniffi-rs

    31 PyO3 VS uniffi-rs

    a multi-language bindings generator for rust

  19. napi-rs

    38 PyO3 VS napi-rs

    A framework for building compiled Node.js add-ons in Rust via Node-API

  20. rust-cpython

    Rust <-> Python bindings

  21. rust-numpy

    10 PyO3 VS rust-numpy

    PyO3-based Rust bindings of the NumPy C-API

  22. GoRules

    8 PyO3 VS GoRules

    GoRules is business friendly Open-Source Business Rules Engine (BRE) to execute decision models according to the JSON Decision Model (JDM) standard. It is written in Rust and provides native bindings for NodeJS and Python. (by gorules)

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better PyO3 alternative or higher similarity.

PyO3 discussion

Log in or Post with

PyO3 reviews and mentions

Posts with mentions or reviews of PyO3. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-03-01.
  • Show HN: Robyn – "Batman Inspired" Python Web Framework Built with Rust
    7 projects | news.ycombinator.com | 1 Mar 2025
  • Rust Bindings for the Python Interpreter
    1 project | news.ycombinator.com | 11 Jan 2025
    1 project | news.ycombinator.com | 23 Jul 2024
  • Ask HN: Python in the NoGIL World
    2 projects | news.ycombinator.com | 20 Dec 2024
    PyO3 0.23.0 was a big release I’ve been tinkering with extensively and support for “free-threaded Python” is a headline feature and I imagine this NoGIL Python will be extremely nice for Rust interoperability so there is definitely interest in that crate. Also could be huge for queueing data for GPUs, api servers, bulk data fetching.

    For whatever reason (maybe post 2to3 PTSD), Python community seems not extremely eager to jump on latest versions of Python and it often takes a long time for popular libraries to support the latest and greatest, so I’d recommend patience and baby steps

    https://github.com/PyO3/pyo3/releases/tag/v0.23.0

  • How to introduce 🦀 Rust at your company 🏭?
    2 projects | dev.to | 19 Dec 2024
    🤖 Unlike the above languages Rust can also be used as a replacement of part of the application. Especially if there is a part that needs some speed-up or needs some memory saving. One could replace part of a Python or Node project by Rust and embed the code using PyO3 or napi respectively. This is also going to be the topic of the presentation of Aviram Hassan called Microdosing Rust to your organization.
  • An interpreter inside an interpreter
    2 projects | dev.to | 25 Nov 2024
    The interop shop for Rust and Python is Pyo3. As the only game in town, Pyo3 uses the Foreign Function Interface (FFI) to allow your Rust code to make calls into the CPython binary. This works by agreeing on the Application Binary Interface (ABI), a concept I used during my career at AMD. Core software ftw!
  • GraalPy – A high-performance embeddable Python 3 runtime for Java
    14 projects | news.ycombinator.com | 17 Sep 2024
  • Advanced Python: Achieving High Performance with Code Generation
    5 projects | news.ycombinator.com | 6 Sep 2024
  • Python extensions should be lazy
    3 projects | news.ycombinator.com | 7 Aug 2024
    Sorry, "FFI" was a shorthand for "mixing and matching two languages GC expectations, memory layouts, ..." and all the overhead associated with merging something opinionated, like Rust, with something dynamic, like Python. You almost certainly _can_ reduce that overhead further, but unless somebody has gone out of their way to do so, the default expectation for cross-language calls like that should be that somebody opted for maintainable code that has actually shipped instead of shaving off every last theoretical bit of overhead.

    It's been a few years, so I really can't tell you exactly what the problem was (other than the general observation that you should try to do nontrivial amounts of work in your python extensions rather than trivial amounts), but PyO3 agrees with the general sentiment [0] [1], or at least did at roughly the same time I was working there.

    [0] https://github.com/PyO3/pyo3/issues/679

    [1] https://github.com/PyO3/pyo3/issues/1470

  • Accepting Bitcoin payments with Python, Rust and PyO3
    3 projects | dev.to | 22 Jul 2024
    This blog post is meant to be an introduction to PyO3 by walking the reader through the build process of a non-trivial extension module in Rust using PyO3. Some familiarity with Python and Rust is recommended to get the most out of this post, basic understanding of Bitcoin concepts may be required to fully grasp the code samples.
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 24 Apr 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Stats

Basic PyO3 repo stats
158
13,490
9.7
about 23 hours ago

PyO3/pyo3 is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of PyO3 is Rust.


Sponsored
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com