lancedb
Project description
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.
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 Distributions
Built Distribution
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 lancedb_compat-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: lancedb_compat-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 63.4 MB
- Tags: CPython 3.9+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a1f0a344a840a8c40f48a3d49c43202ccb74cd4574ea8446b10d266d88b0f5
|
|
| MD5 |
95d2c11051fed983545f608f530a3056
|
|
| BLAKE2b-256 |
43dda0fa54cba3a4c2ab4df47bd53f130b44e1ab9e448cf3bf98229a716f0ad9
|
Provenance
The following attestation bundles were made for lancedb_compat-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl:
Publisher:
pypi-publish.yml on lancedb/lancedb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lancedb_compat-0.36.0-cp39-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
e9a1f0a344a840a8c40f48a3d49c43202ccb74cd4574ea8446b10d266d88b0f5 - Sigstore transparency entry: 2282529258
- Sigstore integration time:
-
Permalink:
lancedb/lancedb@cbd5b4e2884e9f6f53717ba9c6b83873b7a9ccc4 -
Branch / Tag:
refs/tags/python-v0.36.0 - Owner: https://github.com/lancedb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@cbd5b4e2884e9f6f53717ba9c6b83873b7a9ccc4 -
Trigger Event:
push
-
Statement type: