Skip to main content

Polars plugin for reading and writing Lance datasets

Project description

polars-lance

Polars plugin for reading Lance datasets into Polars dataframes and writing Polars dataframes to Lance datasets.

Installation

pip install polars-lance

Read

from polars_lance import scan_lance

lf = scan_lance("example.lance")
df = lf.collect()

Write

import polars as pl

from polars_lance import write_lance

df = pl.DataFrame({"id": [1, 2], "val": ["a", "b"]})
write_lance(df, "example.lance")

Pass mode to control behavior in case the target dataset already exists. Valid values are error (default), append, and overwrite.

write_lance(df, "example.lance", mode="append")

Cloud storage

Pass storage_options to work with Lance datasets stored in AWS S3, Azure Blob Storage, or Google Cloud Storage.

from polars_lance import scan_lance, write_lance

uri = "s3://my-bucket/example.lance"
storage_options = {
    "aws_access_key_id": "AKIAIOSFODNN7EXAMPLE",
    "aws_secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
    "aws_region": "us-east-1",
}

write_lance(df, uri, storage_options=storage_options)

lf = scan_lance(uri, storage_options=storage_options)
df = lf.collect()

Cloud storage IO is powered by the object_store Rust crate. These are the supported schemes and options:

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

polars_lance-0.3.0.tar.gz (151.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

polars_lance-0.3.0-cp314-cp314-win_amd64.whl (60.1 MB view details)

Uploaded CPython 3.14Windows x86-64

polars_lance-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl (68.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

polars_lance-0.3.0-cp314-cp314-macosx_11_0_arm64.whl (61.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

polars_lance-0.3.0-cp313-cp313-win_amd64.whl (60.0 MB view details)

Uploaded CPython 3.13Windows x86-64

polars_lance-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (68.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

polars_lance-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (61.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

polars_lance-0.3.0-cp312-cp312-win_amd64.whl (60.0 MB view details)

Uploaded CPython 3.12Windows x86-64

polars_lance-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (68.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

polars_lance-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (61.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

polars_lance-0.3.0-cp311-cp311-win_amd64.whl (60.1 MB view details)

Uploaded CPython 3.11Windows x86-64

polars_lance-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (68.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

polars_lance-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (61.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

polars_lance-0.3.0-cp310-cp310-win_amd64.whl (60.1 MB view details)

Uploaded CPython 3.10Windows x86-64

polars_lance-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (68.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

polars_lance-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (61.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file polars_lance-0.3.0.tar.gz.

File metadata

  • Download URL: polars_lance-0.3.0.tar.gz
  • Upload date:
  • Size: 151.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polars_lance-0.3.0.tar.gz
Algorithm Hash digest
SHA256 93c5873439f84542e22916bb1f707efa8c2ed307bb7e1a018d41c402e59a3ab0
MD5 fd9d1dce8bd831b0fdf017cf8e54fcbd
BLAKE2b-256 4bbc79c2c42e648d3cb3e7b1c4b630727a7f2f9f8b5a4795be26a74d58c6b759

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0.tar.gz:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3b7751c599e68255cd69d2f1613f27af2736dbb28fdf4b9be9f56062aab2c751
MD5 eceb70421c5b623b618b104ecdb4ed13
BLAKE2b-256 741061b81d0b7ce9f890c3f73225c371e6cc2c15f74b51ead1579cb60c6bb06e

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp314-cp314-win_amd64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 904d93a0a908826ae0f389706716bb94062a3b8497f672eb9287feece1288756
MD5 2f5f91d061b225a8d9aa819714d5c8b4
BLAKE2b-256 d847a4760379e8ed316ad51ece679e56c3bb1c743f9dcb8f44ae0aecddd7315c

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp314-cp314-manylinux_2_28_x86_64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0da471023f56f5b27150696b9a94bdf7ab394c2a982a4f0aba461208ed0e4304
MD5 5c0868ea1f7ab9073a1f3ddcda9cc41e
BLAKE2b-256 64245e90d016950fc4f756e61b435f4e4cd30f69a64c6a91a3511d93dbfb0c4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 534927780a19bb4e7185230cf6576cd23ee2612e92ca565bba73a68fd8809e81
MD5 4539c1068e47a5f2115f6159a2e98faf
BLAKE2b-256 4fa472ddb5cd93e78f8e4b2e0c4e83c53212a37a6b104701d590bf1330cb2897

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp313-cp313-win_amd64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0fd4a1b7e7fbef510cc49252f9d647fe7751359e5aaf011e256fd0e6c08fe908
MD5 e55420521788dce18a0484602a2be7e1
BLAKE2b-256 f863b8b1c4f0d88700f40ca094f2258af9b58f80c18bd10ab99e739c3ec18a57

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab0b0206b3ea944276bb87c3cf927d9ec2e35abe7b8b9178561c79cd8712791f
MD5 781436d8dfcd9ebe8218a0d6c8bb1176
BLAKE2b-256 a0c2cb75e15fb206ca799f158d364860019be1c8c65b4fa9f35d8bebc6bcc6c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b4711004f6dcf94205d8abdb0f031e88e858567f01bc9140f30f65558d0550a2
MD5 cca0204a8715b7c96665cafb896178ae
BLAKE2b-256 8d917c072d49704d033bff4c265732a5183d5889d3ab7907e1be8fff12e62c8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp312-cp312-win_amd64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 181745c17d4bed96cb743fd43702c75f92ca3837c6cab3f639d22a00349ee33b
MD5 4ec92895455cf757e561de8c5eaa90d3
BLAKE2b-256 8602ddc25fe18c6fedede393270b25ae69f823f8e5b04dbdc3bf4dd80e117065

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9455417955ece3d6dd2e8992644ff52c014b43bb7f81bed8f75fd495d713f98
MD5 d01c46dbbe7bd938dc36abde2d277e51
BLAKE2b-256 877f3d07007e5c4e6562f760927685b112d20c7d22eb6e560279db702e8c5031

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8c6bf5b149746fae3d55bd3cb612d7e157aaa8c3571cbf82e8a08d618b599b5
MD5 5aee8aaf33453975ba99ba8642a01e0f
BLAKE2b-256 58175e86604a7eb4f00319cdf2ebfbfbe475ca119d3c999937732d7f971a3ad1

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp311-cp311-win_amd64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cdf1d375f831ecdf263236267b62904b305dcb8abc4f452a6601f5567d0c0f60
MD5 3c35be6c9344ad5fb678930a1ede4800
BLAKE2b-256 85c5107a0e15ddd339eb08ae8ec00806e04aa55dc0b33d0b2298b4dec914cdf3

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81b2b1032e6e16c739d8f5ce25d20ea1e81e5a3f0aa52bc00288d331f4513239
MD5 23e9e06da322956a7b00f3d0cac2cb58
BLAKE2b-256 355c037bdd2b2a88359f82916cad23d25e663fcd1941c2f3827ef1ffead82669

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 78fa781a1aa86db940fb55724dfc0c972899f5dd3f2095b4ac03e6c77dc22fc0
MD5 a51018fa26bccd950e97c6e438ccc795
BLAKE2b-256 697c39f27cb59ecc1748bf8a5c2ac15ed980d670e1c74d5ee9de1caffade890d

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp310-cp310-win_amd64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b000bfeca2c6aeb4e9b84ba5b18c0b849f45eb5d3386a53745df271414afd0b
MD5 924425ee1f96c90d546aadea0120d1b7
BLAKE2b-256 126979f06117e72c8f397fddad3b32497ab1ff2ccf7544d1a2d0dea776a35c00

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: release.yml on jorritsandbrink/polars-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 polars_lance-0.3.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0decad1732742a46464c93323a6f0b8be932b25b356adcdbfd98ae76234ca58d
MD5 dc7094569aa1ab40fb2ec6be546cad38
BLAKE2b-256 78b8caeb4535a96c98a1a1371c8be50f9d3d142669c2c34dd1718f969f1eb734

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.3.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on jorritsandbrink/polars-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