Python bindings for DiskANN approximate nearest neighbor search library
Project description
DiskAnnPy
Python bindings for DiskANN, providing efficient vector quantization and approximate nearest neighbor search.
Installation
Prerequisites
Building from Source
Navigate to diskann/DiskAnnPy:
Linux
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate
# Install build dependencies
pip install maturin numpy
# Option 1: Build wheel (creates .whl in DiskANN/target/wheels)
maturin build -r
# Option 2: Build and install directly into active environment
maturin develop -r
Windows
# Create and activate virtual environment
python -m venv venv
venv\Scripts\activate
# Install build dependencies
pip install maturin numpy
# Option 1: Build wheel (creates .whl in DiskANN\target\wheels)
maturin build -r
# Option 2: Build and install directly into active environment
maturin develop -r
Running Tests
Once installed, run the Python tests from the DiskAnnPy directory:
python -m unittest discover tests
Quantizers
See src/quantization/README.md for documentation on the vector quantization APIs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diskannpy_rust-0.49.1.tar.gz.
File metadata
- Download URL: diskannpy_rust-0.49.1.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5989037203ba8a730ea752cf80bde8cae21f9d7a4b39a2808d5bf73e4fd2755
|
|
| MD5 |
5ad21ee1fdaf1985d282a2e2799d9977
|
|
| BLAKE2b-256 |
700acae6ae205e1d83375f386d82c9b8823d701d95e54b4543987603f7d1a62c
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1.tar.gz:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1.tar.gz -
Subject digest:
c5989037203ba8a730ea752cf80bde8cae21f9d7a4b39a2808d5bf73e4fd2755 - Sigstore transparency entry: 1202649473
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5517ac7ab1a506990fb90182316581f9838203d3fb8b0e7ea4568be66483cac0
|
|
| MD5 |
da6f114b96638d3eb3780f09e00d4bcc
|
|
| BLAKE2b-256 |
d7fa55328e029aeabce4f68f8ff02a8e4af267a7330a902e83ac5191f0915c1f
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp313-cp313-win_amd64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp313-cp313-win_amd64.whl -
Subject digest:
5517ac7ab1a506990fb90182316581f9838203d3fb8b0e7ea4568be66483cac0 - Sigstore transparency entry: 1202649492
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85017ac50705efc44da41c508faed32a84141d0fd461366b2d34ee88aca32f85
|
|
| MD5 |
6c32a9de72d5912860226eee0290ca21
|
|
| BLAKE2b-256 |
4981d5efe4a21b109c174822ee68a7ed7456ee2430a7d2b6e8ad5f3e444a9878
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
85017ac50705efc44da41c508faed32a84141d0fd461366b2d34ee88aca32f85 - Sigstore transparency entry: 1202649485
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5c52ff5f48b29ef4ec449c7122ee98a5efb8b81aa33983a1277ea8447f7d2c5
|
|
| MD5 |
3f41759a08e53f3b34d5ca016f9cdbea
|
|
| BLAKE2b-256 |
99ec9b38c922da63aa89fe5a02c77d90d4d3afc265c754ff84222525da75030b
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp312-cp312-win_amd64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp312-cp312-win_amd64.whl -
Subject digest:
e5c52ff5f48b29ef4ec449c7122ee98a5efb8b81aa33983a1277ea8447f7d2c5 - Sigstore transparency entry: 1202649483
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fedb92d569b8bfefc1787d6e5b8cf5ba9a878e9a7f42beec6a2a045b99c82e77
|
|
| MD5 |
12d1423f67bec6f086f1214b41cfc14b
|
|
| BLAKE2b-256 |
d3f1556ff3d4e489bf86530e6dff23a7c7202ee345cb75e91f77d4b363392e7a
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
fedb92d569b8bfefc1787d6e5b8cf5ba9a878e9a7f42beec6a2a045b99c82e77 - Sigstore transparency entry: 1202649484
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dafbdb6ad4b3ff5089ea69bf956604f8f444f1e4c3e896a85d6a35296cb8af7
|
|
| MD5 |
cb1ad8457802562d284b9cd9751e383d
|
|
| BLAKE2b-256 |
79192331c4a6ff187b2a2b31b9761fa6357092025941fd3c2ff154d9a156a931
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp311-cp311-win_amd64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp311-cp311-win_amd64.whl -
Subject digest:
8dafbdb6ad4b3ff5089ea69bf956604f8f444f1e4c3e896a85d6a35296cb8af7 - Sigstore transparency entry: 1202649479
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58923f531dbf0e324fa584b03b7adc61ce14b03a8878c054d50ce00a0d4eb95d
|
|
| MD5 |
e701191859ab519a1e142d297c1e3ba5
|
|
| BLAKE2b-256 |
d7a1eeb4b1117e4e4ce6cfe0e13d09b55300722c305f7321474cfa4261b76ba2
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
58923f531dbf0e324fa584b03b7adc61ce14b03a8878c054d50ce00a0d4eb95d - Sigstore transparency entry: 1202649489
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
113fecd1a74bbe6303499b132578549b91842e630c40cd52dea6c417e689473c
|
|
| MD5 |
eaa370ffc68a9efdd800a2826357db43
|
|
| BLAKE2b-256 |
75b1ddd3ad28b866178396673124c2c2f3b5244c83964e33e2c704db49265609
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp310-cp310-win_amd64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp310-cp310-win_amd64.whl -
Subject digest:
113fecd1a74bbe6303499b132578549b91842e630c40cd52dea6c417e689473c - Sigstore transparency entry: 1202649481
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.4 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaa2703c4a2bd0d1103ff45c39bbdaa47a6886424bde7dcae3b342e76e9355b6
|
|
| MD5 |
1adb71be130a02ef25082c9c15af30bf
|
|
| BLAKE2b-256 |
741fa719b82ae1d2b0ae457e919c6e4bfed03a1a858ba05c9b70b06e5e3b1b6d
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
eaa2703c4a2bd0d1103ff45c39bbdaa47a6886424bde7dcae3b342e76e9355b6 - Sigstore transparency entry: 1202649486
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb8ea282db9926e491c1d375774ff5696bfd3026065c08f009736bd182cc6dd8
|
|
| MD5 |
f148e3bf38ea706209c25c4df57ab757
|
|
| BLAKE2b-256 |
52442d39247c613bc2e4fc88364fc5ea5304c5b5bad7a7efd092dd0d38d06cdb
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp39-cp39-win_amd64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp39-cp39-win_amd64.whl -
Subject digest:
bb8ea282db9926e491c1d375774ff5696bfd3026065c08f009736bd182cc6dd8 - Sigstore transparency entry: 1202649495
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file diskannpy_rust-0.49.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: diskannpy_rust-0.49.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 8.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca8ef1938efdb141fcb6f2bbada034064e9b0b7146417a8c4b43af370459905
|
|
| MD5 |
a300a3b5d8d5a63976e38bfca7e379d4
|
|
| BLAKE2b-256 |
9083e661d2b27b83a6d38116e8b962feed7de27d2cbf8ba34572a53aad2b7e65
|
Provenance
The following attestation bundles were made for diskannpy_rust-0.49.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish-diskannpy.yml on microsoft/DiskANN
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diskannpy_rust-0.49.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
fca8ef1938efdb141fcb6f2bbada034064e9b0b7146417a8c4b43af370459905 - Sigstore transparency entry: 1202649475
- Sigstore integration time:
-
Permalink:
microsoft/DiskANN@0845167c055a89825822495e03163611397079eb -
Branch / Tag:
refs/heads/user/tianyuanyuan/add-wheel - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-diskannpy.yml@0845167c055a89825822495e03163611397079eb -
Trigger Event:
push
-
Statement type: