Lance integration for Daft - compaction, indexing, merge columns, and REST operations
Project description
daft-lance
Lance integration for Daft. Provides distributed compaction, scalar indexing, column merging, and REST catalog operations for Lance datasets.
Install
pip install daft-lance
For REST catalog support:
pip install daft-lance[rest]
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")
REST Catalog
from daft_lance import LanceRestConfig, write_lance_rest
config = LanceRestConfig(base_url="https://api.lancedb.com", api_key="...")
write_lance_rest(mp, config, namespace="default", table_name="my_table")
Development
Requires uv.
uv sync
uv run pytest tests/ -v
License
Apache-2.0
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 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.1.1.tar.gz.
File metadata
- Download URL: daft_lance-0.1.1.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfd26e9682bf258bf441370c66ec51a1880d32b8e127897f134f73aa2df3fb1d
|
|
| MD5 |
2bcea7d7a600bb5371842a00f585208a
|
|
| BLAKE2b-256 |
134d36057f164292f0c9dc6fcb672c285523d0260650cd9b95f19faa110f9c4a
|
Provenance
The following attestation bundles were made for daft_lance-0.1.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.1.1.tar.gz -
Subject digest:
dfd26e9682bf258bf441370c66ec51a1880d32b8e127897f134f73aa2df3fb1d - Sigstore transparency entry: 1181404416
- Sigstore integration time:
-
Permalink:
daft-engine/daft-lance@d737123d25bdf9a4befd79043a38cb8918d73156 -
Branch / Tag:
refs/tags/v0.1.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@d737123d25bdf9a4befd79043a38cb8918d73156 -
Trigger Event:
release
-
Statement type:
File details
Details for the file daft_lance-0.1.1-py3-none-any.whl.
File metadata
- Download URL: daft_lance-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
929a0a00928467a900cf412b3867cd53ac3e4ff0f94b7d5e7d9057fccf8def19
|
|
| MD5 |
c3cfcc1187f7babfab43e03ed92f26c7
|
|
| BLAKE2b-256 |
fc91a54f6bf5ceaa68f55adcfdf34360e224c2851e8691e43d9b99331a8b8e7a
|
Provenance
The following attestation bundles were made for daft_lance-0.1.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.1.1-py3-none-any.whl -
Subject digest:
929a0a00928467a900cf412b3867cd53ac3e4ff0f94b7d5e7d9057fccf8def19 - Sigstore transparency entry: 1181404451
- Sigstore integration time:
-
Permalink:
daft-engine/daft-lance@d737123d25bdf9a4befd79043a38cb8918d73156 -
Branch / Tag:
refs/tags/v0.1.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@d737123d25bdf9a4befd79043a38cb8918d73156 -
Trigger Event:
release
-
Statement type: