Convert Python bindings to declarative PyO3 module syntax#6122
Open
kilian-hu wants to merge 1 commit intotursodatabase:mainfrom
Open
Convert Python bindings to declarative PyO3 module syntax#6122kilian-hu wants to merge 1 commit intotursodatabase:mainfrom
kilian-hu wants to merge 1 commit intotursodatabase:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR converts the Python bindings from the old function-based
#[pymodule]style to the new and recommended declarative style.Also updating
uv.lockwhich I forgot to do in #6103Motivation and context
experimental-inspect(Next steps for type introspection and stub generation PyO3/pyo3#5137) which I'd like to attempt using in a future PR for type stub generation.Description of AI Usage
I've used Claude Code with Opus 4.6 to search through the PyO3 docs and various GitHub issues and PRs to validate the idea and to make the code changes to
bindings/python/src/lib.rs.