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.4.0.tar.gz (151.6 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.4.0-cp314-cp314-win_amd64.whl (60.1 MB view details)

Uploaded CPython 3.14Windows x86-64

polars_lance-0.4.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.4.0-cp314-cp314-macosx_11_0_arm64.whl (61.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

polars_lance-0.4.0-cp313-cp313-win_amd64.whl (60.1 MB view details)

Uploaded CPython 3.13Windows x86-64

polars_lance-0.4.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.4.0-cp313-cp313-macosx_11_0_arm64.whl (61.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

polars_lance-0.4.0-cp312-cp312-win_amd64.whl (60.1 MB view details)

Uploaded CPython 3.12Windows x86-64

polars_lance-0.4.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.4.0-cp312-cp312-macosx_11_0_arm64.whl (61.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

polars_lance-0.4.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.4.0-cp311-cp311-macosx_11_0_arm64.whl (61.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

polars_lance-0.4.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.4.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.4.0.tar.gz.

File metadata

  • Download URL: polars_lance-0.4.0.tar.gz
  • Upload date:
  • Size: 151.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 160afe5f402991113527a975a7698af0f5b6051faf4947d742736e543b93e5fd
MD5 5b1545241a5a85b7ec29229d505ad9b5
BLAKE2b-256 b8e7674ceef58a188c37217c4e26089f3e9debfa36a72280cc9aa40a06df6320

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 125fcfe5a2aa22364b1f8d3bcfed3af713b6770319778627ea5bacf590280d05
MD5 d2aff94176dc6eacb7966c1a245d8d17
BLAKE2b-256 5e5e91cf74b7c249f3f7e8539b7cc187a38132f2be046fc10483dfb92df3f83e

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4369f4244b952cef5ab085e55cde85ea3352ae223fbbdb3018aa3cc105d8ca9a
MD5 fe5947b4417aef09f1469d5f8d7cd070
BLAKE2b-256 cc4c57b8fcad707bb1ae472bee86f2de2247c174c07a67548c6122e4fb2cea0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d0b1e74abb0e1ac17597c1062294e040b5d5d47e9f1c467f5f9fdb5341d6356
MD5 60dac275678c68497db6f0440a35cf0b
BLAKE2b-256 28606518dc4885c655c79339711defd0ae1865a9b1355eb01a4c09f87bbbbdec

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 80ebc20831800e1deb621dd7236029b6610686dc663c2fb7c92544eb78aeda5b
MD5 f5b1bfbfa9a50d7478d6884017c358d4
BLAKE2b-256 f06dfa392af0118ad8a11166276dc1403ebbab8a6343b4c30b584f62f25c0d46

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b8bc5dc09566093b9208ce340ba29b3be3d20ff72fc184955d9fa092753dccaa
MD5 7b89255930da4b83fb35dfcbddcb2193
BLAKE2b-256 2ea3256550357591dd9f21030e1f2fe28df16adcde52b999389638e54de83425

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71beaf16108e347fd5a62a095559152d689792a80b0c1ea8f0c39c011f6562f3
MD5 1ae4338bbfdb7250757c341d15b4cd28
BLAKE2b-256 3fc3a97c63e53d1a2dd6bfa6a9b80c0af980c79107ba3f87ac7711b4a0d719a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 69bcca9b2863d0aaf28bf8cfe7a94512148d4ef9bd0b48b8be2c4086b3236d59
MD5 f34468662ccca93711961fbf3abaa149
BLAKE2b-256 5b9a2d6dc6769855739114e29f3d578e2d8d23e63afe9db4cbc5a765c11917af

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a612ff14ea42196e7e6302c63428d8aeb8281c2eba4a6793c484acb530d6bfa3
MD5 110ce2305e1c5456531e78157a472d4b
BLAKE2b-256 f18f3a49e2bf6bb8a21a3b8caca8fbc2a262fb9659f1489f2063e57720a496a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da7db430522ead24b3979b5705c67004196987e56eb450c12d50729490267ee3
MD5 d6385efc507bf9e5aef940cdfa1312cd
BLAKE2b-256 38de10587ca37a623dfea17e521b6cfc3158e13baf60dd497083ce06ecb0ec1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d3beef37447abf1c92e19e8ceb413cf2e73bbe5d92331eb62bf6c29843422ca3
MD5 5222d4b8f3257b36e4dc38a327290a2f
BLAKE2b-256 c0b1cf8dda63f0235735e569b4c6091dc185412afa49e2882656d0297f026d35

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b742b6dc8fe2ea6a3c798bd450c5d4ff9e7bb630b53a214c30df4f18ab8c19fe
MD5 33d7259e4e7faae99cb0d3caa0cc506f
BLAKE2b-256 79552e72c4ef02ef1235eeda96e485e8d09e9607a378d9e3bbc93a54516959f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a13c3b22b2ef5f353b212fef203c0e3b33fe00df0080288822a1860a529f2e2
MD5 2fb011a9926affedc966b9ef11ec61b9
BLAKE2b-256 b209af3d148bcfbe8ba2fd5c6501f1b79f62ab52b42b7121a8e161c944c985b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6393c0bb82370d372b247879323706189d3c4e8f334847b4998e9bab58f7166a
MD5 3989a57a4e6bafffaaba39a6c871f779
BLAKE2b-256 7ca45f95acb5c9283f39b8ce0ea9a2811f8012593759d6c303c9f41ed0e9be51

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 622d9f9fc9ad804d3fdd3cccf4332f8d3ee4f1e71e69c15daa8f1a7b2c3301ae
MD5 7b43070b070796d978eb03b224ab3470
BLAKE2b-256 282c3fae05f8d9a6ed728ca1c579594d529d6e1a10c9b12312e7b4d127ac8462

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_lance-0.4.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.4.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_lance-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23d03181e37285fbad72431b00d533c9d9b15cf92d45785c305be1ec6be70b99
MD5 022ace252fc64225af0fe8284e11af39
BLAKE2b-256 2e6991a1cada915b9f145d9da7e8fff3164a2cd143b558f32882118fa2b5dc1a

See more details on using hashes here.

Provenance

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