Skip to main content

lance-tensorflow

TensorFlow integration for Lance datasets.

This package provides a small Python adapter that exposes Lance datasets as tf.data.Dataset pipelines. The core Lance format and Python bindings remain in the pylance package.

Install

pip install lance-tensorflow

TensorFlow support is currently targeted at Linux.

Usage

from lance_tensorflow import from_lance

ds = from_lance(
    "s3://bucket/path",
    columns=["image", "label"],
    filter="split = 'train'",
    batch_size=256,
)

for batch in ds:
    print(batch["label"])

If you want the tf.data.Dataset.from_lance convenience methods, register them explicitly:

import tensorflow as tf
import lance_tensorflow

lance_tensorflow.register_tensorflow_dataset()

ds = tf.data.Dataset.from_lance("s3://bucket/path")

Development

uv sync
uv run pytest
uv run ruff format .
uv run ruff check .

Metadata

Release files for lance-tensorflow 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lance-tensorflow 0.1.0
File Size Uploaded
lance_tensorflow-0.1.0.tar.gz 100.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lance-tensorflow 0.1.0
File Interpreter ABI Platform
lance_tensorflow-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 115.7 kB

Release files / lance_tensorflow-0.1.0.tar.gz

Download URL lance_tensorflow-0.1.0.tar.gz
Size 100.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3aedf233e17f84cc6c29381c076e124a267202ade06819bd3e1466271b3002cb
BLAKE2b-256 checksum
How to use checksums
ba8ff060ac3496728c213668200c16bfb528dd11b566ac67256aee11d5f0fa57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

Release files / lance_tensorflow-0.1.0-py3-none-any.whl

Download URL lance_tensorflow-0.1.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06b09dd831f525ed046e3ad389da627e462f0f66c0c8123f0ec53f210ac8a7ee
BLAKE2b-256 checksum
How to use checksums
309318b84a3b1a9ea1d33f242f7f21df1f8c7386dddb1dc1f94f4594eac8ff53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page