Skip to content

feat: Implement C-API and Python bindings - #18

Merged
Lotargo merged 1 commit into
mainfrom
feature-c-api-and-python-bindings-14442383899730128389
Mar 11, 2026
Merged

Lotargo merged 1 commit into
mainfrom
feature-c-api-and-python-bindings-14442383899730128389

Conversation

@Lotargo

@Lotargo Lotargo commented Mar 11, 2026

Copy link
Copy Markdown
Owner
  • Added include/sonatadb/c_api/sonatadb.h and src/c_api/sonatadb_c.cpp.
  • Exposed basic HNSW index operations (create, free, insert, search) via C-API.
  • Implemented error handling with thread-local buffers.
  • Added Python ctypes wrappers in bindings/python/sonatadb/api.py.
  • Included C++ unit tests (tests/c_api_test.cpp) and Python test script (bindings/python/test.py).
  • Updated CMakeLists.txt to build libsonatadb_c.so.
  • Marked relevant items as completed in TODO.md.

- Added `include/sonatadb/c_api/sonatadb.h` and `src/c_api/sonatadb_c.cpp`.
- Exposed basic HNSW index operations (create, free, insert, search) via C-API.
- Implemented error handling with thread-local buffers.
- Added Python ctypes wrappers in `bindings/python/sonatadb/api.py`.
- Included C++ unit tests (`tests/c_api_test.cpp`) and Python test script (`bindings/python/test.py`).
- Updated `CMakeLists.txt` to build `libsonatadb_c.so`.
- Marked relevant items as completed in `TODO.md`.
@Lotargo
Lotargo merged commit 4a1b1a5 into main Mar 11, 2026
2 of 4 checks passed
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.

1 participant