Thin Polars IO plugin for the sas7bdat crate
Reason this release was yanked:
10-year date bug
Project description
sas7bdat-polars
A Polars IO plugin for reading SAS7BDAT files, backed by the
SIMD-accelerated sas7bdat Rust parser. It registers
a native IO source via polars.io.plugins.register_io_source, so scans are lazy and
support projection and predicate pushdown straight into the reader.
Installation
pip install sas7bdat-polars
Version constraints
This wheel is tightly coupled to its build environment:
- Polars is pinned to
1.40.*. The extension shares the Polars Rust ABI (viapolars-ffi) with the in-processpolarspackage, so the installedpolarsmust match the version the wheel was built against. A mismatch is undefined behavior, not a graceful error. - Built against the CPython stable ABI (
abi3, minimum 3.12), so a singlecp312-abi3wheel runs on CPython 3.12 and newer.
Usage
import polars as pl
import sas7bdat_polars as sp
# Lazy scan — returns a LazyFrame; filters/projections push down into the reader.
lf = sp.scan_sas("data.sas7bdat")
df = lf.filter(pl.col("age") > 30).select("name", "age").collect()
# Hydrate value labels from a companion catalog.
lf = sp.scan_sas("data.sas7bdat", catalog_path="formats.sas7bcat")
# Inspect the Arrow schema without reading rows.
schema = sp.schema_for_file("data.sas7bdat")
License
MIT — see the repository for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 sas7bdat_polars-0.1.0-cp312-abi3-win_amd64.whl.
File metadata
- Download URL: sas7bdat_polars-0.1.0-cp312-abi3-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.12+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7854251e95d998a41e972a0f4daf642ab542aa62831da782d09406971d20cac6
|
|
| MD5 |
6ea0b924252742a7a5a0c75b88bb6e25
|
|
| BLAKE2b-256 |
a1f5aa8a601ba69617f9fdb6689263907230620c4385a20c951d6ebd38d2916a
|
File details
Details for the file sas7bdat_polars-0.1.0-cp312-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: sas7bdat_polars-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.12+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb43da238222f3e78d7389b15e538ff3ab46da9329e4750eb5d1522000de544
|
|
| MD5 |
fc4bf74987332f5cb4611f7d4d7070fd
|
|
| BLAKE2b-256 |
1187fc206ab2c30c06c266357689e9c95170890589cb4e2361365759a6f39404
|