Skip to main content

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 (via polars-ffi) with the in-process polars package, so the installed polars must 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 single cp312-abi3 wheel 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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

sas7bdat_polars-0.1.0-cp312-abi3-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.12+Windows x86-64

sas7bdat_polars-0.1.0-cp312-abi3-macosx_11_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file sas7bdat_polars-0.1.0-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for sas7bdat_polars-0.1.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7854251e95d998a41e972a0f4daf642ab542aa62831da782d09406971d20cac6
MD5 6ea0b924252742a7a5a0c75b88bb6e25
BLAKE2b-256 a1f5aa8a601ba69617f9fdb6689263907230620c4385a20c951d6ebd38d2916a

See more details on using hashes here.

File details

Details for the file sas7bdat_polars-0.1.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sas7bdat_polars-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bb43da238222f3e78d7389b15e538ff3ab46da9329e4750eb5d1522000de544
MD5 fc4bf74987332f5cb4611f7d4d7070fd
BLAKE2b-256 1187fc206ab2c30c06c266357689e9c95170890589cb4e2361365759a6f39404

See more details on using hashes here.

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