Lance integration for Daft - compaction, indexing, merge columns, and REST operations
Project Links
Meta
Requires Python: >=3.10
Classifiers
daft-lance
Lance integration for Daft.
Install
# Install just the daft-lance extension
pip install daft-lance
# Install daft with the daft-lance extension
pip install 'daft[lance]'
Usage
Compaction
from daft_lance import compact_files
compact_files("s3://bucket/my_dataset")
Scalar Indexing
from daft_lance import create_scalar_index
create_scalar_index("s3://bucket/my_dataset", column="name", index_type="INVERTED")
Column Merging
from daft_lance import merge_columns_df
merge_columns_df(df, "s3://bucket/my_dataset")
Migration
The migration only requires replacing daft.io.lance with daft_lance.
# See changes in current directory and all subdirectories
find . -type f -name "*.py" -exec sed 's/daft\.io\.lance/daft_lance/g' {} +
# Apply the changes
find . -type f -name "*.py" -exec sed -i 's/daft\.io\.lance/daft_lance/g' {} +
Development
Requires uv.
uv sync
uv run pytest tests/ -v
License
Apache-2.0
0.3.2
May 18, 2026
0.3.1
May 18, 2026
0.3.0
May 15, 2026
0.2.0
May 07, 2026
0.1.1
Mar 25, 2026
0.1.0
Mar 25, 2026
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
lance-namespace-urllib3-client
(>=0.6.0)
lance-namespace
(>=0.6.0)
pylance
(>=6.0.0)