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.2.0.tar.gz (34.1 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.2.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: daft_lance-0.2.0.tar.gz
  • Upload date:
  • Size: 34.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 e58eac55083fabd0cc21d3574248a894244cb0b48de98337550b866d8e9c50b8
MD5 e5010f16fcaf4d07977c56bdf2d8bbe8
BLAKE2b-256 26c77a424642e659f62b00dae95131e22c87dafc0ac9c04e6fb1d28a6c5ecf60

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: daft_lance-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6302ac16018b69d9e123804db84d5aaa651121477fc3c387d7d152d45c9fbba2
MD5 00650d9665ccd353326b4f2a50cafa40
BLAKE2b-256 e221852721a87fe486ca98021e76747cbca89c11293e802c0f049b91e681b2c5

See more details on using hashes here.

Provenance

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