Skip to main content

polars-source-utils

Utilities for inspecting and rewriting source paths inside binary Polars LazyFrame plans.

from polars_source_utils import list_source_paths, replace_source_paths

paths = list_source_paths("data/node.plbin")
changed = replace_source_paths("data/node.plbin", {paths[0]: "/new/data.parquet"})

The functions are designed for workspace persistence flows that need to rebase absolute scan paths after moving a workspace folder. They do not collect the plan or rewrite underlying data files.

Plan traversal is exhaustive over Polars 1.44.1. Rewrites are serialized to a same-directory temporary file and atomically replace the original only after a successful flush and sync, so a serialization or persistence failure preserves the existing plan.

See the package architecture for the ownership boundary.

Development

uv sync
uv run maturin develop --release --locked
uv run pytest -q

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polars_source_utils-0.6.0.tar.gz (35.0 kB view details)

Uploaded Source

Built Distributions

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

polars_source_utils-0.6.0-cp314-cp314-win_amd64.whl (11.1 MB view details)

Uploaded CPython 3.14Windows x86-64

polars_source_utils-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

polars_source_utils-0.6.0-cp314-cp314-macosx_11_0_arm64.whl (10.8 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

File details

Details for the file polars_source_utils-0.6.0.tar.gz.

File metadata

  • Download URL: polars_source_utils-0.6.0.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for polars_source_utils-0.6.0.tar.gz
Algorithm Hash digest
SHA256 fd69131b95bfb59503aebfa2f6d6d92e74eb19ec396262a6f353e5a0179fdd9c
MD5 b13f50232b948d625fd43c7a16e29f73
BLAKE2b-256 171cd6b936579fa4e7c80918bc48e33d5c4b1e5ecefb08e7fba1051dd387d3b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_source_utils-0.6.0.tar.gz:

Publisher: release.yml on AlexDrBanana/polars-source-utils

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_source_utils-0.6.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for polars_source_utils-0.6.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 fa9cda5e98f445d5d54c5a3860cc9c77b1749879cfa2819117a77f0239ea247b
MD5 242d02f56c0338b769d0e467c165bc1e
BLAKE2b-256 143cbbb10fa340f2de5eb5c01d162d4ff616361b7d5e205824525a6fa1f3e6c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_source_utils-0.6.0-cp314-cp314-win_amd64.whl:

Publisher: release.yml on AlexDrBanana/polars-source-utils

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_source_utils-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for polars_source_utils-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 06f92654308c9e0138d02b222ee666e15a51317ae9050114d65f93a17d4653bf
MD5 ae2e34c5efbe685f357fbb9031e6c045
BLAKE2b-256 c8e62c7467f5bf9e3007cb4dc116963ebc77214dafb70c46e06d4fb7c5e161e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_source_utils-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl:

Publisher: release.yml on AlexDrBanana/polars-source-utils

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_source_utils-0.6.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_source_utils-0.6.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bba43372d4bcf4ce8dfa82d45683f89d74c6fc5b2556c36724bb06db476251fa
MD5 6961e33d6253ccf0d31779ae93c8a788
BLAKE2b-256 40bc1bb3ef115b1b1aea80df906a9fe5c5bcf838f9cb9a7800d0094cbef99d62

See more details on using hashes here.

Provenance

The following attestation bundles were made for polars_source_utils-0.6.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on AlexDrBanana/polars-source-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.6.0 This release

4 files

0.2.0

4 files

0.1.0

4 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