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.37.1-cp310-abi3-win_amd64.whl (71.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

lancedb-0.37.1-cp310-abi3-manylinux_2_28_x86_64.whl (64.8 MB view details)

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

lancedb-0.37.1-cp310-abi3-manylinux_2_28_aarch64.whl (61.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

lancedb-0.37.1-cp310-abi3-macosx_11_0_arm64.whl (58.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file lancedb-0.37.1-cp310-abi3-win_amd64.whl.

File metadata

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

File hashes

Hashes for lancedb-0.37.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 488eca15361dfc34439500c9e2607c4fb2b8bf190fa1003bd54b1d6eb40e0316
MD5 ec40691e0aaf009f5d0dba0b57ed40bf
BLAKE2b-256 425565c69307373b7f05dea38465b7d3836c86390f0ebc79b5c56d2c0919f229

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.37.1-cp310-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.37.1-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lancedb-0.37.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 86597f4dbc51a33a07341550dc77d21a1ddd1f7539266eda5bb64c4f3bd11cca
MD5 0d28053df64b03e18b2856914e4c2985
BLAKE2b-256 1ffaee1cdb1e904872d75fa0ff44ad35cd23494e810299c33e68de0687de7a71

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.37.1-cp310-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.37.1-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lancedb-0.37.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 35d872d920cbfdc3771fbcd33f2c63bff6ff7203d6d2ba8fe4330e98eb859d12
MD5 3d8c91822f6f71eee5c2074cba84e3bb
BLAKE2b-256 e55edac0fd9478a21685444f23e6ec937babf4ff48b1616b68e8137778d6ecb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.37.1-cp310-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.37.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lancedb-0.37.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c15c46f23cf6959c79fb93cdba2c76536cf784d3134386662da03dc6ccac3c26
MD5 d4208d9c6b79aabfde321c2ca5c12c0d
BLAKE2b-256 232f4ddcab82bb618c6c8de00725f3cf59585dcb9040964dde13cb0cae6ed3cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for lancedb-0.37.1-cp310-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

This release

0.37.1 This release

4 files

0.36.0

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