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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd69131b95bfb59503aebfa2f6d6d92e74eb19ec396262a6f353e5a0179fdd9c
|
|
| MD5 |
b13f50232b948d625fd43c7a16e29f73
|
|
| BLAKE2b-256 |
171cd6b936579fa4e7c80918bc48e33d5c4b1e5ecefb08e7fba1051dd387d3b7
|
Provenance
The following attestation bundles were made for polars_source_utils-0.6.0.tar.gz:
Publisher:
release.yml on AlexDrBanana/polars-source-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_source_utils-0.6.0.tar.gz -
Subject digest:
fd69131b95bfb59503aebfa2f6d6d92e74eb19ec396262a6f353e5a0179fdd9c - Sigstore transparency entry: 2683686206
- Sigstore integration time:
-
Permalink:
AlexDrBanana/polars-source-utils@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/AlexDrBanana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Trigger Event:
push
-
Statement type:
File details
Details for the file polars_source_utils-0.6.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: polars_source_utils-0.6.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 11.1 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa9cda5e98f445d5d54c5a3860cc9c77b1749879cfa2819117a77f0239ea247b
|
|
| MD5 |
242d02f56c0338b769d0e467c165bc1e
|
|
| BLAKE2b-256 |
143cbbb10fa340f2de5eb5c01d162d4ff616361b7d5e205824525a6fa1f3e6c3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_source_utils-0.6.0-cp314-cp314-win_amd64.whl -
Subject digest:
fa9cda5e98f445d5d54c5a3860cc9c77b1749879cfa2819117a77f0239ea247b - Sigstore transparency entry: 2683686214
- Sigstore integration time:
-
Permalink:
AlexDrBanana/polars-source-utils@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/AlexDrBanana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Trigger Event:
push
-
Statement type:
File details
Details for the file polars_source_utils-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: polars_source_utils-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 13.5 MB
- Tags: CPython 3.14, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f92654308c9e0138d02b222ee666e15a51317ae9050114d65f93a17d4653bf
|
|
| MD5 |
ae2e34c5efbe685f357fbb9031e6c045
|
|
| BLAKE2b-256 |
c8e62c7467f5bf9e3007cb4dc116963ebc77214dafb70c46e06d4fb7c5e161e1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_source_utils-0.6.0-cp314-cp314-manylinux_2_28_x86_64.whl -
Subject digest:
06f92654308c9e0138d02b222ee666e15a51317ae9050114d65f93a17d4653bf - Sigstore transparency entry: 2683686259
- Sigstore integration time:
-
Permalink:
AlexDrBanana/polars-source-utils@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/AlexDrBanana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Trigger Event:
push
-
Statement type:
File details
Details for the file polars_source_utils-0.6.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: polars_source_utils-0.6.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 10.8 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba43372d4bcf4ce8dfa82d45683f89d74c6fc5b2556c36724bb06db476251fa
|
|
| MD5 |
6961e33d6253ccf0d31779ae93c8a788
|
|
| BLAKE2b-256 |
40bc1bb3ef115b1b1aea80df906a9fe5c5bcf838f9cb9a7800d0094cbef99d62
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polars_source_utils-0.6.0-cp314-cp314-macosx_11_0_arm64.whl -
Subject digest:
bba43372d4bcf4ce8dfa82d45683f89d74c6fc5b2556c36724bb06db476251fa - Sigstore transparency entry: 2683686237
- Sigstore integration time:
-
Permalink:
AlexDrBanana/polars-source-utils@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/AlexDrBanana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2199400e25db1e36267245a462c5dd38d3c4bcd -
Trigger Event:
push
-
Statement type: