https://github.com/rigetti/rigetti-pyo3
Utilities to support common patterns in pyo3-generated bindings
https://github.com/rigetti/rigetti-pyo3
pyo3
Last synced: 9 months ago
JSON representation
Utilities to support common patterns in pyo3-generated bindings
- Host: GitHub
- URL: https://github.com/rigetti/rigetti-pyo3
- Owner: rigetti
- License: apache-2.0
- Created: 2022-12-15T18:27:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T22:06:08.000Z (12 months ago)
- Last Synced: 2025-02-28T23:52:56.353Z (11 months ago)
- Topics: pyo3
- Language: Rust
- Homepage:
- Size: 161 KB
- Stars: 5
- Watchers: 6
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Rigetti PyO3
This crate defines a set of macros for creating [PyO3](https://pyo3.rs) bindings to an *existing* Rust crate.
That is, given Rust library crate `foo`, these macros can be used inside a crate `foo-python` to create Python bindings. This is *not* intended for creating a standalone Python library using Rust.
See [the docs](https://docs.rs/rigetti-pyo3) for more.
## A note on feature compatibility
If you want to use [PyO3's `abi3` feature](https://pyo3.rs/v0.21.2/features#abi3), you must *disable* this library's `time` feature (which is enabled by default). This library provides an `abi3` feature you can enable in order to explicitly request `pyo3/abi3`, which will give a clearer error message in that case.
----
Rigetti PyO3 is licensed under the [Apache License 2.0](LICENSE).