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.2.tar.gz (120.9 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.2-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for daft_lance-0.3.2.tar.gz
Algorithm Hash digest
SHA256 5db4374a7c68b620f4e4e82f74186494a736e700b8fb40fd943ddb4177e58564
MD5 0cb8250fb842742b1766c4ad9da0bc60
BLAKE2b-256 0f5679bb22dd385ecf360544ee004aeeda6e8fac057cd814a242243e60558687

See more details on using hashes here.

Provenance

The following attestation bundles were made for daft_lance-0.3.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: daft_lance-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 33.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f32fe3b3bdcd209d708353bbc0960cb80ba8aa1289f436e4f91e917f8acd4af9
MD5 5749a20a282f048a2dc15efce9777e8d
BLAKE2b-256 46dd57601b4f9933a88ac9301e262951c73d042a64e44e9949105ab49681e7f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for daft_lance-0.3.2-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