Skip to main content

LanceDB Python SDK

A Python library for LanceDB.

Installation

pip install lancedb

Pre-Haswell x86_64 hosts: lancedb-compat

The default lancedb wheel targets x86-64-haswell (AVX2 + FMA + F16C) for full performance on modern hardware. Pre-Haswell hosts — Intel Sandy Bridge / Ivy Bridge / Westmere; AMD Bulldozer / Piledriver / Steamroller — don't have AVX2 and crash with Illegal instruction at import lancedb.

For those hosts, install the lancedb-compat package instead:

pip install lancedb-compat

Same Python API (import lancedb works as usual). The compat wheel is compiled at the x86-64-v2 baseline (Nehalem-class) and uses runtime SIMD dispatch in the embedded lance crate to pick the right kernel tier (scalar / AVX / AVX+FMA / AVX2+FMA / AVX-512) at load time, so it still goes fast on modern hardware while running cleanly on the pre-Haswell silicon. Use lance.simd_info() from Python to verify which tier was selected.

lancedb and lancedb-compat install to the same lancedb/ namespace and conflict at install time. Pick one. To switch, pip uninstall lancedb first, then pip install lancedb-compat (or vice-versa).

If you need a custom baseline (or lancedb-compat isn't yet published for your platform), build from source with the override:

RUSTFLAGS="-C target-cpu=x86-64-v2" maturin build --release
pip install ./target/wheels/lancedb-*.whl

Preview Releases

Stable releases are created about every 2 weeks. For the latest features and bug fixes, you can install the preview release. These releases receive the same level of testing as stable releases, but are not guaranteed to be available for more than 6 months after they are released. Once your application is stable, we recommend switching to stable releases.

pip install --pre --extra-index-url https://pypi.fury.io/lancedb/ lancedb

Usage

Basic Example

import lancedb
db = lancedb.connect('<PATH_TO_LANCEDB_DATASET>')
table = db.open_table('my_table')
results = table.search([0.1, 0.3]).limit(20).to_list()
print(results)

Development

See CONTRIBUTING.md for information on how to contribute to LanceDB.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

lancedb-0.36.0-cp39-abi3-win_amd64.whl (69.4 MB view details)

Uploaded CPython 3.9+Windows x86-64

lancedb-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl (63.6 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

lancedb-0.36.0-cp39-abi3-manylinux_2_28_aarch64.whl (60.5 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

lancedb-0.36.0-cp39-abi3-macosx_11_0_arm64.whl (57.3 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file lancedb-0.36.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: lancedb-0.36.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 69.4 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lancedb-0.36.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5e2b5e42f34329c07cd1a9b0cb341609602dd5fe29b088c7537c84662444d52c
MD5 01fbf73cf083ce72c8b22e8cb49eb3a3
BLAKE2b-256 bae767af08fd25e6ac6c5819a8d7f6c345bd036a512725b035475408e42b6475

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.36.0-cp39-abi3-win_amd64.whl:

Publisher: pypi-publish.yml on lancedb/lancedb

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

File details

Details for the file lancedb-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lancedb-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e20bb817346a7db30212c7f67f623ee21d096a1f52cfe6c8dfc4c911b515480e
MD5 d8746c3904c3109c5ae9454aa4026bbb
BLAKE2b-256 8c1fc1e2015bdc67b2f7d28d7efb5dd9911ecefe910c0ef11ce691a89d72fa52

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl:

Publisher: pypi-publish.yml on lancedb/lancedb

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

File details

Details for the file lancedb-0.36.0-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lancedb-0.36.0-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ac434374c49e4a642190855fb3940591637efd4af4487c67ee28bd534abf2d6e
MD5 fba8e630727f586855ff43246ebbe16d
BLAKE2b-256 c67e97a836881829f960925261bd5429d1d6e1e90cb5645f85a0355569fb4b40

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.36.0-cp39-abi3-manylinux_2_28_aarch64.whl:

Publisher: pypi-publish.yml on lancedb/lancedb

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

File details

Details for the file lancedb-0.36.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lancedb-0.36.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20c382a7c4e86386d4c26ef35068db8871b6c9f43ec5c581391f926f5346ed2b
MD5 b1b2d75af7301a7849e8f27406b24c7f
BLAKE2b-256 cb491f5c136e3ce845879ff9e326c54633b64bb4229c1b458996456be279f93b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.36.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: pypi-publish.yml on lancedb/lancedb

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

Release history Release notifications | RSS feed

0.38.0

4 files

0.37.1

4 files

This release

0.36.0 This release

4 files

0.34.0

4 files

0.33.0

6 files

0.32.0

6 files

0.30.2

6 files

0.30.1

4 files

0.30.0

6 files

0.29.2

6 files

0.29.1

6 files

0.29.0

6 files

0.27.1

6 files

0.27.0

6 files

0.26.1

6 files

0.26.0

6 files

0.25.3

7 files

0.25.2

7 files

0.25.1

7 files

0.25.0

7 files

0.24.3

7 files

0.24.2

7 files

0.24.1

7 files

0.24.0

7 files

0.23.0

7 files

0.22.1

7 files

0.22.0

7 files

0.21.2

7 files

0.21.1

7 files

0.21.0

7 files

0.20.0

7 files

0.19.0

7 files

0.18.0

6 files

0.17.1

6 files

0.17.0

6 files

0.16.0

6 files

0.15.0

6 files

0.14.0

6 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page