PyO3/pyo3
View on GitHub ↗ ★ 16,294 Rust
Rust bindings for the Python interpreter
51 mentions on Hacker News by 44 people: 10 stories, 41 comments · first 2017-07-05 · latest 2026-03-31
20082026
-
https://github.com/memflow/memflow https://github.com/PyO3/pyo3 https://slint.dev/ https://github.com/dora-rs/dora It is VERY common in existing codebases that are migrating from C++/C to make heave use of FFI/ existing C
comment by vablings · 2026-03-31 · in Axios compromised on NPM – Malicious versions drop remote access trojan -
…supports CPython modules using PyO3 [1]. Even the popular polars dataframe library [2] uses it. [1] https://github.com/PyO3/pyo3 [2] https://github.com/pola-rs/polars
comment by goku12 · 2026-01-06 · in C Is Best (2025) -
▲ 2
Rust Bindings for the Python Interpreterstory by flashblaze · 2025-11-05 · 0 comments
-
▲ 2
Rust Bindings for the Python Interpreterstory by saikatsg · 2025-01-11 · 0 comments
-
…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
comment by bionhoward · 2024-12-21 · in Ask HN: Who's building on Python NoGIL? -
…Hopefully soon also in cibuildwheel [4]. [0] https://github.com/PyO3/maturin/pull/1645 (merged) [1] https://github.com/PyO3/pyo3/pull/3247 (merged) [2] https://github.com/pydantic/jiter/pull/135 (merged) [3]…
comment by steve_s · 2024-09-18 · in GraalPy – A high-performance embeddable Python 3 runtime for Java -
…with PyO3[0] and Maturin[1]. It's far easier than what the author is doing is the article. [0] -- https://github.com/PyO3/pyo3 [1] -- https://github.com/PyO3/maturin
comment by wdroz · 2024-09-06 · in Achieving high Python performance with code generation (2022) -
…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
comment by hansvm · 2024-08-08 · in Python extensions should be lazy -
▲ 2
Rust Bindings for the Python Interpreterstory by cglong · 2024-07-23 · 0 comments
-
…I'm surprised that no one has mentioned Python. Is that because it is a solved problem, thanks to https://github.com/PyO3/pyo3 and is no longer a challenge?
comment by blaise-pabon · 2024-06-17 · in Crossing the impossible FFI boundary, and my gradual descent into madness -
▲ 1
Rust Bindings for the Python Interpreterstory by behnamoh · 2024-02-20 · 0 comments
-
Rust bindings for Python: https://github.com/PyO3/pyo3
comment by jochem9 · 2024-02-14 · in A bird's eye view of Polars -
…mentioning that Rust-Python interoperability is already great, in both directions, thanks to pyo3 https://github.com/PyO3/pyo3
comment by wongarsu · 2024-02-05 · in Improving Interoperability Between Rust and C++ -
…lets you "write a native Python module in Rust", and it works great. A much better choice IMO. [1] https://github.com/PyO3/pyo3
comment by guitarbill · 2023-10-08 · in Calling Rust from Python -
…The pyO3 commit to allow subinterpreters was merged 21 days ago, so this might "just work" today: https://github.com/PyO3/pyo3/pull/3446
comment by nutate · 2023-10-02 · in Python 3.12 -
…developers and toolchain are embracing rust enough to reduce the benefits to a new alternative. https://github.com/PyO3/pyo3
comment by EwanToo · 2023-09-11 · in Removing garbage collection from the Rust language (2013) -
…and the Naiad project ( https://www.microsoft.com/en-us/research/project/naiad/ ) as well as PyO3 ( https://github.com/PyO3/pyo3 ) and we thought we found a match made in heaven :). Bytewax leverages both of these projects and builds on…
comment by amath · 2023-07-25 · in Bytewax: Stream processing library built using Python and Rust -
…for an involved Rust-based NodeJS extension. Python has PyO3, a Rust-Python extension toolset: https://github.com/PyO3/pyo3 . They can help you leverage your Rust for writing cool new stuff.
comment by ojosilva · 2023-07-15 · in Tell HN: Rust is the superglue -
…becomes `list[T]`). Combined via pyO3[1], Python and Rust are a real joy to write together. [1]: https://github.com/PyO3/pyo3
comment by woodruffw · 2023-06-29 · in Writing Python like Rust (2020) -
…get is that the whole sub interpreters thing seems to totally break extension modules as well: https://github.com/PyO3/pyo3/issues/2274 . In theory parts of sub-interpreters have been around for a while and it just happens that every…
comment by gazpacho · 2023-06-15 · in Our Plan for Python 3.13 -
▲ 1
Pyo3: Rust Bindings for the Python Interpreterstory by tosh · 2023-03-06 · 0 comments
-
…always good to have at least choice and decide case-by-case if use Rust in Python app or not. [1] https://github.com/PyO3/pyo3 [2] https://safjan.com/rustification-of-python/#drawbacks-and-co...
comment by izik · 2023-03-06 · in Even the Pylint codebase uses Ruff -
As a side note, now it is easy to write Rust code, which can be directly used in Python - https://github.com/PyO3/pyo3 . It cannot use NumPy and other libraries (since it is Rust), but at the same time, I see its potential in creating…
comment by stared · 2022-12-27 · in Numba: A High Performance Python Compiler -
…Datafusion [4] and Ballista [5]. Of course nowhere near Python but that is hard to beat today. [1] https://github.com/PyO3/pyo3 [2] https://github.com/pola-rs/polars/ [3] https://github.com/dimforge/nalgebra [4]…
comment by Gwypaas · 2022-12-22 · in Welcome to Comprehensive Rust -
…using Maturn + PyO3 [3]. There's even extensions to bind easily to numpy and asyncio [4][5]. [1]: https://github.com/PyO3/pyo3 [2]: https://github.com/PyO3/maturin [3]: https://github.com/PyO3/maturin#examples [4]:…
comment by kylebarron · 2022-11-13 · in Carefully exploring Rust as a Python developer -
…before deploying/production? I've been digging into Rust/Python interop recently using https://github.com/PyO3/pyo3 and maturin, and this points to an interesting migration strategy; PyO3 makes it quite easy to write a Python module in…
comment by theptip · 2022-08-24 · in Rust – A hard decision pays off -
▲ 5
PyO3 – Python Extensions in Ruststory by aviramha · 2022-07-27 · 1 comment
-
Or alternatively, PyO3 if you use Rust instead of C++: https://github.com/PyO3/pyo3
comment by beltsazar · 2022-04-04 · in Cython is 20 -
…from being a serious part of my kit (pybind11 good, not like anything we have now). Check out PyO3: https://github.com/PyO3/PyO3
comment by imron · 2022-04-02 · in Lifetime Annotations for C++ -
…If C is not your thing, there are some interesting projects to use other languages with Python [ https://github.com/PyO3/PyO3 ] | [ https://github.com/yglukhov/nimpy ]
comment by akagusu · 2022-02-02 · in Please, stop pushing for static typing in Python -
▲ 2
PyO3 to support Rust 1.41 to support Python's cryptography packagestory by todsacerdoti · 2021-02-14 · 0 comments
-
This is awesome, thanks for sharing! I think this should be added to the PyO3 examples list :) https://github.com/PyO3/pyo3#examples
comment by Rotareti · 2021-01-29 · in PyO3: Rust Bindings for the Python Interpreter -
▲ 305
PyO3: Rust Bindings for the Python Interpreterstory by batterylow · 2021-01-29 · 77 comments
-
…compile and run Rust straight from the same Jupyter notebooks that I prototype my Python code with. https://github.com/PyO3/pyo3
comment by jamesmishra · 2021-01-28 · in Setup Anaconda, Jupyter, and Rust -
…the two languages without overhead, including publishing pure-Rust packages as python modules^1 1. https://github.com/PyO3/pyo3
comment by jomohke · 2020-06-07 · in Why the developers who use Rust love it so much -
…since you can write your low level code in Rust and call it from Python via PyO3 [0]. [0]: https://github.com/PyO3/pyo3
comment by Rotareti · 2019-05-31 · in Python's Caduceus Syndrome -
…level extensions directly in Rust via PyO3 [0]. I guess there is something similar for Ruby. [0]: https://github.com/PyO3/PyO3
comment by Rotareti · 2019-05-30 · in Choosing Ruby on Rails for web development project in 2019 -
It doesn't seem like it, given the final bullet point here, which is unchecked https://github.com/PyO3/pyo3/issues/276
comment by steveklabnik · 2019-04-23 · in Write Python inline in your Rust code -
…well suited for making zero-cost cleaner APIs on top of C FFI. https://github.com/tildeio/helix https://github.com/PyO3/pyo3 https://github.com/kyren/rlua https://github.com/neon-bindings/neon
comment by pornel · 2018-10-30 · in Teaching C (2016) -
…I've mainly been looking at these resources: https://github.com/rochacbruno/rust-python-example https://github.com/PyO3/pyo3 Though I have not done rust <-> python in real practice
comment by ikornaselur · 2018-08-20 · in Parallel Programming with Python -
https://github.com/PyO3/pyo3 Rust/Python is very good
comment by fafhrd91 · 2018-02-09 · in Ask HN: Which languages have best interop / FFI / extension? -
…and it is fast. You can write whole application in rust and use python as a glue language https://github.com/PyO3/pyo3 Pyo3 library gives you ability to work both diractions. Call python code from rust and call rust code from python.
comment by fafhrd91 · 2018-02-07 · in Python’s Weak Performance Matters -
There is PyO3 library https://github.com/PyO3/pyo3
comment by fafhrd91 · 2018-01-14 · in Rust in 2018: easier to use -
why not rust? much simpler and safer with libs like https://github.com/PyO3/pyo3
comment by fafhrd91 · 2017-11-07 · in Interfacing Python and C: Advanced “ctypes” Features -
…[1] https://github.com/tildeio/helix (Ruby) [2] https://github.com/neon-bindings/neon (Node) [3] https://github.com/pyo3/pyo3 (Python)
comment by curun1r · 2017-08-16 · in Rustgo: Calling Rust from Go with near-zero overhead -
…it mean you can't keep Python objects around with the GIL released? e.g. looking at this comment [ https://github.com/PyO3/pyo3/issues/55#issuecomment-31728794... ] they compare impl PyList { fn new(py: Python) -> PyList {...} fn…
comment by masklinn · 2017-07-27 · in PyO3: Python Rust binding -
this binding can be used both ways. check first example in readme. and https://github.com/PyO3/pyo3/blob/master/src/python.rs#L203
comment by fafhrd91 · 2017-07-27 · in PyO3: Python Rust binding -
…first, this is a fork of rust-cpython. The motivation for the fork is linked from the Readme: https://github.com/PyO3/pyo3/issues/55
comment by kevinnk · 2017-07-26 · in PyO3: Python Rust binding -
▲ 138
PyO3: Python Rust bindingstory by blacksmythe · 2017-07-26 · 15 comments
-
▲ 6
(First Release) PyO3: a Python-Rust Binding Librarystory by Dowwie · 2017-07-25 · 1 comment