Skip to main content

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


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.1.1.tar.gz (28.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.1.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

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

Hashes for daft_lance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dfd26e9682bf258bf441370c66ec51a1880d32b8e127897f134f73aa2df3fb1d
MD5 2bcea7d7a600bb5371842a00f585208a
BLAKE2b-256 134d36057f164292f0c9dc6fcb672c285523d0260650cd9b95f19faa110f9c4a

See more details on using hashes here.

Provenance

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

Hashes for daft_lance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 929a0a00928467a900cf412b3867cd53ac3e4ff0f94b7d5e7d9057fccf8def19
MD5 c3cfcc1187f7babfab43e03ed92f26c7
BLAKE2b-256 fc91a54f6bf5ceaa68f55adcfdf34360e224c2851e8691e43d9b99331a8b8e7a

See more details on using hashes here.

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

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