Railway-oriented Result type for Polars data pipelines
Project description
polars-result
Railway-oriented Result type for building robust Polars data pipelines.
Installation
uv add polars-result
Quick Start
from polars_result import Result, PolarsResultError
# Successful pipeline
result = (
Result.ok(raw_dataframe)
.map(clean_columns)
.bind(validate_schema)
.map(compute_totals)
)
if result.is_ok():
df = result.unwrap()
else:
print(f"Pipeline failed: {result.unwrap_err()}")
Development
# Install dev dependencies
uv sync --extra dev
# Run tests
uv run pytest
# Lint & format
uv run ruff check src/ tests/
uv run ruff format src/ tests/
# Type check
uv run ty check src/
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_result-0.1.0.tar.gz
(24.0 kB
view details)
Built Distribution
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_result-0.1.0.tar.gz.
File metadata
- Download URL: polars_result-0.1.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40009a378c872c38d620034fdc61919231836d3ff9faad70ec2ded59def2ec90
|
|
| MD5 |
80c23e1164dfb38830722420e85c6009
|
|
| BLAKE2b-256 |
5b080ead67a319b0e881e5f1f1c087b1538fef3523af543d32b0f3441a232bb3
|
File details
Details for the file polars_result-0.1.0-py3-none-any.whl.
File metadata
- Download URL: polars_result-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
650f0758b8103a6af1dfb9380f5e480a28a684f0acc4fa4d3b6c8fef88146a79
|
|
| MD5 |
faa4327c6eb3c6df6b2a0ce18abba613
|
|
| BLAKE2b-256 |
55e9ec059b3c38f4ed34e8c7b6d8015803959e1dd4c6d0843f56b26a82d97b6a
|