daft-lance 0.3.2


pip install daft-lance

  Latest version

Released: May 18, 2026

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

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
lance-namespace-urllib3-client (>=0.6.0)
lance-namespace (>=0.6.0)
pylance (>=6.0.0)