Hacker GitHub

← All repos

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

Mentions per year 51 mentions · busiest year 2023 (9)
20082026
  1. 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
  2. …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)
  3. …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?
  4. …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]…
  5. …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
  6. …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
  7. …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?
  8. Rust bindings for Python: https://github.com/PyO3/pyo3
    comment by jochem9 · 2024-02-14 · in A bird's eye view of Polars
  9. …mentioning that Rust-Python interoperability is already great, in both directions, thanks to pyo3 https://github.com/PyO3/pyo3
  10. …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
  11. …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
  12. …developers and toolchain are embracing rust enough to reduce the benefits to a new alternative. https://github.com/PyO3/pyo3
  13. …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…
  14. …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
  15. …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)
  16. …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
  17. …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
  18. 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…
  19. …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
  20. …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]:…
  21. …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
  22. 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
  23. …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++
  24. …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 ]
  25. This is awesome, thanks for sharing! I think this should be added to the PyO3 examples list :) https://github.com/PyO3/pyo3#examples
  26. …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
  27. …the two languages without overhead, including publishing pure-Rust packages as python modules^1 1. https://github.com/PyO3/pyo3
  28. …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
  29. …level extensions directly in Rust via PyO3 [0]. I guess there is something similar for Ruby. [0]: https://github.com/PyO3/PyO3
  30. 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
  31. …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)
  32. …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
  33. https://github.com/PyO3/pyo3 Rust/Python is very good
  34. …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
  35. There is PyO3 library https://github.com/PyO3/pyo3
    comment by fafhrd91 · 2018-01-14 · in Rust in 2018: easier to use
  36. why not rust? much simpler and safer with libs like https://github.com/PyO3/pyo3
  37. …[1] https://github.com/tildeio/helix (Ruby) [2] https://github.com/neon-bindings/neon (Node) [3] https://github.com/pyo3/pyo3 (Python)
  38. …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
  39. 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
  40. …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
  41. …"pythonium trioxide", but I've gotten the impression that its more of an exploratory project: https://github.com/PyO3/PyO3
    comment by Dowwie · 2017-07-05 · in Rust's 2017 roadmap, six months in