Skip to main content

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

  • Python 3.9+
  • Rust toolchain (install via rustup)
  • maturin (pip install maturin)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diskannpy_rust-0.49.1.tar.gz (3.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

diskannpy_rust-0.49.1-cp313-cp313-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.13Windows x86-64

diskannpy_rust-0.49.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

diskannpy_rust-0.49.1-cp312-cp312-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.12Windows x86-64

diskannpy_rust-0.49.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

diskannpy_rust-0.49.1-cp311-cp311-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.11Windows x86-64

diskannpy_rust-0.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

diskannpy_rust-0.49.1-cp310-cp310-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.10Windows x86-64

diskannpy_rust-0.49.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

diskannpy_rust-0.49.1-cp39-cp39-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.9Windows x86-64

diskannpy_rust-0.49.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Hashes for diskannpy_rust-0.49.1.tar.gz
Algorithm Hash digest
SHA256 c5989037203ba8a730ea752cf80bde8cae21f9d7a4b39a2808d5bf73e4fd2755
MD5 5ad21ee1fdaf1985d282a2e2799d9977
BLAKE2b-256 700acae6ae205e1d83375f386d82c9b8823d701d95e54b4543987603f7d1a62c

See more details on using hashes here.

Provenance

The following attestation bundles were made for diskannpy_rust-0.49.1.tar.gz:

Publisher: publish-diskannpy.yml on microsoft/DiskANN

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5517ac7ab1a506990fb90182316581f9838203d3fb8b0e7ea4568be66483cac0
MD5 da6f114b96638d3eb3780f09e00d4bcc
BLAKE2b-256 d7fa55328e029aeabce4f68f8ff02a8e4af267a7330a902e83ac5191f0915c1f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85017ac50705efc44da41c508faed32a84141d0fd461366b2d34ee88aca32f85
MD5 6c32a9de72d5912860226eee0290ca21
BLAKE2b-256 4981d5efe4a21b109c174822ee68a7ed7456ee2430a7d2b6e8ad5f3e444a9878

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e5c52ff5f48b29ef4ec449c7122ee98a5efb8b81aa33983a1277ea8447f7d2c5
MD5 3f41759a08e53f3b34d5ca016f9cdbea
BLAKE2b-256 99ec9b38c922da63aa89fe5a02c77d90d4d3afc265c754ff84222525da75030b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fedb92d569b8bfefc1787d6e5b8cf5ba9a878e9a7f42beec6a2a045b99c82e77
MD5 12d1423f67bec6f086f1214b41cfc14b
BLAKE2b-256 d3f1556ff3d4e489bf86530e6dff23a7c7202ee345cb75e91f77d4b363392e7a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8dafbdb6ad4b3ff5089ea69bf956604f8f444f1e4c3e896a85d6a35296cb8af7
MD5 cb1ad8457802562d284b9cd9751e383d
BLAKE2b-256 79192331c4a6ff187b2a2b31b9761fa6357092025941fd3c2ff154d9a156a931

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58923f531dbf0e324fa584b03b7adc61ce14b03a8878c054d50ce00a0d4eb95d
MD5 e701191859ab519a1e142d297c1e3ba5
BLAKE2b-256 d7a1eeb4b1117e4e4ce6cfe0e13d09b55300722c305f7321474cfa4261b76ba2

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 113fecd1a74bbe6303499b132578549b91842e630c40cd52dea6c417e689473c
MD5 eaa370ffc68a9efdd800a2826357db43
BLAKE2b-256 75b1ddd3ad28b866178396673124c2c2f3b5244c83964e33e2c704db49265609

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eaa2703c4a2bd0d1103ff45c39bbdaa47a6886424bde7dcae3b342e76e9355b6
MD5 1adb71be130a02ef25082c9c15af30bf
BLAKE2b-256 741fa719b82ae1d2b0ae457e919c6e4bfed03a1a858ba05c9b70b06e5e3b1b6d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bb8ea282db9926e491c1d375774ff5696bfd3026065c08f009736bd182cc6dd8
MD5 f148e3bf38ea706209c25c4df57ab757
BLAKE2b-256 52442d39247c613bc2e4fc88364fc5ea5304c5b5bad7a7efd092dd0d38d06cdb

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file diskannpy_rust-0.49.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for diskannpy_rust-0.49.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fca8ef1938efdb141fcb6f2bbada034064e9b0b7146417a8c4b43af370459905
MD5 a300a3b5d8d5a63976e38bfca7e379d4
BLAKE2b-256 9083e661d2b27b83a6d38116e8b962feed7de27d2cbf8ba34572a53aad2b7e65

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page