Lance integration for Daft - compaction, indexing, merge columns, and REST operations
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 daft_lance-0.3.1.tar.gz.
File metadata
- Download URL: daft_lance-0.3.1.tar.gz
- Upload date:
- Size: 120.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ead64622d6dde951b5f31f448881ab4698711c63ac241f12b2e93a3781acbf3d
|
|
| MD5 |
88d090dd6947631691d1f58c7f5f3aa7
|
|
| BLAKE2b-256 |
e23059f3c632872dc9d444134671f8807dee48fdf11e5bc19fc679b090ac1457
|
Provenance
The following attestation bundles were made for daft_lance-0.3.1.tar.gz:
Publisher:
publish-package.yml on daft-engine/daft-lance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
daft_lance-0.3.1.tar.gz -
Subject digest:
ead64622d6dde951b5f31f448881ab4698711c63ac241f12b2e93a3781acbf3d - Sigstore transparency entry: 1569146427
- Sigstore integration time:
-
Permalink:
daft-engine/daft-lance@f135a8cbddaadeb59500e524e5b25df22c2cc526 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/daft-engine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@f135a8cbddaadeb59500e524e5b25df22c2cc526 -
Trigger Event:
release
-
Statement type:
File details
Details for the file daft_lance-0.3.1-py3-none-any.whl.
File metadata
- Download URL: daft_lance-0.3.1-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8623f3dc53f14f849e5107cb52bc5244d82bd3677ed5f5cc40a8b96ba8a79b3
|
|
| MD5 |
40146aa7b81efc788a74b387dedb577b
|
|
| BLAKE2b-256 |
b32fd25035188a57d3923133b443e26f3a7eb32b1ce143736cc575ea7fce4a55
|
Provenance
The following attestation bundles were made for daft_lance-0.3.1-py3-none-any.whl:
Publisher:
publish-package.yml on daft-engine/daft-lance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
daft_lance-0.3.1-py3-none-any.whl -
Subject digest:
e8623f3dc53f14f849e5107cb52bc5244d82bd3677ed5f5cc40a8b96ba8a79b3 - Sigstore transparency entry: 1569146438
- Sigstore integration time:
-
Permalink:
daft-engine/daft-lance@f135a8cbddaadeb59500e524e5b25df22c2cc526 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/daft-engine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@f135a8cbddaadeb59500e524e5b25df22c2cc526 -
Trigger Event:
release
-
Statement type: