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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

polars_lance-0.5.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.5.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.5.0.tar.gz.

File metadata

  • Download URL: polars_lance-0.5.0.tar.gz
  • Upload date:
  • Size: 152.3 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.5.0.tar.gz
Algorithm Hash digest
SHA256 67ac14d0f3a3da12ef12450a8032fe5bd4c083c27b502dbc2fe2d26d6c4c5eeb
MD5 9c09187bcf2f04502b1aa64fae6842f2
BLAKE2b-256 d714fe6cb4c5f65dd053e4b77a671429cd8743ae85645800d550c91ba01d3c40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 454050fa17be1aaf8cbc6e3f692ceb084b6a6e2c5d66c74bbd4ca9d4ac75221f
MD5 f17a2dbd38cd5025345cbe98a31dba8a
BLAKE2b-256 35227dd30cb0612662a3cb7f99814c93272a0f24c56098ae68874a8cc632af6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8ec36c561cc53306297ede4399b4950d2177cbfcf6b68816661916f8a5f0d9b8
MD5 65d24be27f6028b1661de90e4d063585
BLAKE2b-256 c029d95432c9855a2814daa02bfd28e63785cf1d7598177497d9732b200c6cc9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38506c401b5f41734d443de4a2065d4e60539d21043d3e982a9e450c03be6c9b
MD5 5db45fbab3ab6dd4946c3605ae26fde0
BLAKE2b-256 06b5a9d6ac18b1860032a3090804f9d221006ed468e15857135d4de82469766a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d1a887d6ba9c84b82cb1cabd4fe558bed553edf0b256b1cdc1f85645b30f9387
MD5 8e51324206003446340054f37ef42395
BLAKE2b-256 8fd2357b2538a0cea0022c78be442da3eec2ae64d0c52f09743eca0a616c4635

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 74a4a2cb05a3c285849d1746c79bb581a59e76dec6c043f49ce025e2a58a6937
MD5 f3c54614f4da4c9b007ace03bdae446c
BLAKE2b-256 de4bf992e1311a04039c76c60ad7e020543865cb03919101320f3de975c7028d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e72dfb34ac39646d5efc89e2b5ccb8c74f49400e81a35020fa8611628e0bc197
MD5 9ffda08af8e289e215b68a183e62e6d1
BLAKE2b-256 7b41b91234c4b9a066f9904c986d34891dca530eff354b1e6773803c56e08033

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cb1c4737d0024fe5c8f4c49d46e9f1f0e0034ac6314d1310ea3533d693ecf18e
MD5 4bc53d275b4fecc57ebdf30b340d1f3c
BLAKE2b-256 775aa7ea508b1b7093737793462f8801b2e706b764b9721fb167eb3a85b460ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0ac82d1fcc50095f99262773b7d24b95344fa659092bb9f731021a3427a6205a
MD5 ada70b1aced801d64833e34adf698c95
BLAKE2b-256 4c4c204514f1d202f38c3da2c4ec8f0592dbfddd1df3dc9c35df9e9bf3520312

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d49f6acd4d43ef8ddec1c35a661931b182590057895aab6fa85c834b93585540
MD5 e56fa01e7b49c4c1adbf36babfa05dda
BLAKE2b-256 f731de91af3b9f5149b993389750a4be158811dba60079b006d5d6c8a37f38cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d562050812b07297c4493d1ab6b2b44f4980309e5ddfc917805f7479a421be01
MD5 516fbf0805813863cacee7f71b3ff160
BLAKE2b-256 8b2bfc937b67020664638dd070a491dab1c24fd73d6c9f54b8855e73cede426b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2d00dfa6d583869e46fe17d44d2ab7d3bf532b6d7a935662d60cb2ebc9cf9e4a
MD5 d12b4c834427bc974d5290ac8a134f1d
BLAKE2b-256 262341e87927f8948be2ebfff9956265892b7be9cbbb050248afb0751a81844e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb0684069ca84c9214685f9a355b984a89ecfbfbc996a39bdd8e5295a1c6aae0
MD5 637cb5b413f9fbd5378d135a57f50180
BLAKE2b-256 4f8765616aac5c7e3bc878b69338a0d8eed220ea4f7b264247274ce5e03df20e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7dd7816464d9e711ad3b5986344eb8619c4c272b3102d2645145215efa3408a2
MD5 d07245896519ae65ec7f7ead789437a4
BLAKE2b-256 0987b639daf2676a1d9855a74f1e2ce0f1c7a4584650894dad41513725d42197

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5d4d73a313346584d880b28f95051a93e0a5b4f231e058912d939d9338b38bf2
MD5 c9eefe661ad4b91d736938c73837b06d
BLAKE2b-256 816b5f578c0074d6a6bdcab4074efb26bc86c343427398a015c53d552eade028

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for polars_lance-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 064c64d1412c733d45959ecebc6ee51456f2436e0eb64ffc6e070331d302e077
MD5 bb3412f83fb6bf5bb215f6b234cdd06c
BLAKE2b-256 4b07682486ad6542dffb5b4d5e60088ce725a710a421c9d690a3a090b5d840ce

See more details on using hashes here.

Provenance

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