pyo3
pyo3 copied to clipboard
Rust bindings for the Python interpreter
As discussed in https://github.com/PyO3/pyo3/pull/763#issuecomment-972763362 I think it would be helpful to have a page in the guide for first-time users on documenting the ways we recommend to install Python, Rust,...
I am interested in wasm32-emscripten support for pyo3. We are able to build the cryptography package: https://github.com/pyodide/pyodide/pull/2378 There are still some issues with the toolchain which require patching: https://github.com/llvm/llvm-project/issues/55786 Another...
Hi, thanks so much for pyo3 - it's wonderful, I'm using it a lot (see [rtoml](https://github.com/samuelcolvin/rtoml) and [watchfiles](https://github.com/samuelcolvin/watchfiles), I might be using it pydantic soon too). I wonder if it...
Just a bit of playing around to remove `PyMethodDefType` by making types in `pyo3-macros-backend` a bit more concrete and growing the `PyClassItems` struct to have explicit `class_attributes`, `getters` and `setters`...
The goal of this PR is to add a new `inspect` feature to PyO3. When this feature is enabled, the PyO3 macros extract information about the Python data structures. The...
A wip implementation of proposal in #2193. Still a long way to go. Not worth reviewing yet, posting just so interested folks can have eyes on it.
Resolves #2405 Has been mentioned on Discord that converting a LinkedList to a PyList could be surprising for users.
Hi When I use `cargo build` to generate executable, then I use `otool -l “executable-path”`, It will show LC_LOAD_DYLIB command about python. ``` Load command 13 cmd LC_LOAD_DYLIB cmdsize 104...
For some functions, I'd like to return a `LinkedList`. However, `IntoPy` is only implemented for `Vec`, so I currently first convert to a `Vec`, then allow pyo3 to convert the...
Would it be possible to extend the `text_signature` macro to be able to support python [type annotation](https://www.python.org/dev/peps/pep-3107/). ## Example ``` /// Formats the sum of two numbers as string. #[pyfunction()]...