Skip to main content

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

daft_lance-0.3.0.tar.gz (122.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

daft_lance-0.3.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file daft_lance-0.3.0.tar.gz.

File metadata

  • Download URL: daft_lance-0.3.0.tar.gz
  • Upload date:
  • Size: 122.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for daft_lance-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bb6f1e0e7b52a3f001b17b860adb527d96e6f39e3ecee251d7c31cd45827d843
MD5 6633e811dabf9080d447728cc9b3b78f
BLAKE2b-256 c39e0ed82527c6261c581bb812457b3e22959430abcded48201cec7a212e48ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for daft_lance-0.3.0.tar.gz:

Publisher: publish-package.yml on daft-engine/daft-lance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file daft_lance-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: daft_lance-0.3.0-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

Hashes for daft_lance-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b2212965e8bf3bea4feb186ad5e4da191875c2ff9b2140fc5fbde555eb0b4d6
MD5 6bcda4216530bfed3a7a9f7e3aedd34b
BLAKE2b-256 62efcd25ccd8cb55e6b9fad5c4cbee3864234b5f66e73f5f1bb35ab722452d77

See more details on using hashes here.

Provenance

The following attestation bundles were made for daft_lance-0.3.0-py3-none-any.whl:

Publisher: publish-package.yml on daft-engine/daft-lance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page