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.1.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.1-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

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

Hashes for daft_lance-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ead64622d6dde951b5f31f448881ab4698711c63ac241f12b2e93a3781acbf3d
MD5 88d090dd6947631691d1f58c7f5f3aa7
BLAKE2b-256 e23059f3c632872dc9d444134671f8807dee48fdf11e5bc19fc679b090ac1457

See more details on using hashes here.

Provenance

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

Hashes for daft_lance-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8623f3dc53f14f849e5107cb52bc5244d82bd3677ed5f5cc40a8b96ba8a79b3
MD5 40146aa7b81efc788a74b387dedb577b
BLAKE2b-256 b32fd25035188a57d3923133b443e26f3a7eb32b1ce143736cc575ea7fce4a55

See more details on using hashes here.

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

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