Skip to content

feat: by_item for Python API#128

Open
flying-sheep wants to merge 1 commit intonnethercott:mainfrom
flying-sheep:feat/py-by_item
Open

feat: by_item for Python API#128
flying-sheep wants to merge 1 commit intonnethercott:mainfrom
flying-sheep:feat/py-by_item

Conversation

@flying-sheep
Copy link
Copy Markdown

@flying-sheep flying-sheep commented Apr 20, 2026

I’m also getting rid of some invalid metadata (build-system has only 2 valid subkeys) and obsolete syntax (typing.List)

Addresses part of #127, but not yet the batch APIs

Comment thread src/python.rs


macro_rules! hnsw_search {
($reader:expr, |r| r . $($q:tt)*) => {
Copy link
Copy Markdown
Author

@flying-sheep flying-sheep Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is pretty fragile towards code changes, but it’s just an internal macro, so it can be extended as needed.

Comment thread Cargo.toml
Comment on lines +42 to +43
pyo3 = { version = "0.26.0", optional = true }
pyo3-stub-gen = { version = "0.22.1", optional = true }
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated pyo3-stub-gen for __all__ and some other improvements.

pyo3 0.26 is at this point also pretty established so that bump shouldn’t be a problem.

@flying-sheep
Copy link
Copy Markdown
Author

@nnethercott ping

@nnethercott
Copy link
Copy Markdown
Owner

@flying-sheep thanks for tackling this !

fun fact: I based the original bindings off what you'd done on arroy, so its nice to see things come full circle :p

@flying-sheep
Copy link
Copy Markdown
Author

Haha I assumed so! Happy to help out with more, the Python bindings are a bit minimal at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants