Skip to main content

sas7bdat-cli

A command-line tool for inspecting SAS7BDAT files, the binary format written by SAS, and converting them to Parquet, CSV or TSV. It is a single Rust binary built on the sas7bdat reader, and needs no SAS installation or C library.

Installation

pip install sas7bdat-cli
# or, as an isolated tool:
uv tool install sas7bdat-cli

Wheels are built for Linux (x86-64 and ARM64), Windows (x86-64) and macOS (Apple Silicon). On x86-64 the binary needs a CPU with AVX2: Intel Haswell (2013) or AMD Excavator (2015) and later.

The wheel ships a single executable, sas7bdat. It is a plain binary wheel (py3-none-<platform>), so it works with any Python version and has no dependencies; pip is only the way it is delivered.

Rust users can install the same tool from source instead:

cargo install --git https://github.com/tkragholm/sas7bdat-parser-rs sas7bdat-cli

Usage

sas7bdat info data.sas7bdat        # columns, types, labels, and a sample
sas7bdat head data.sas7bdat        # first rows as a table
sas7bdat convert data.sas7bdat     # -> data.parquet (Zstd)
sas7bdat convert data.sas7bdat --out out.csv        # format inferred from the extension
sas7bdat convert ./folder --out-dir out             # whole tree, mirrored
sas7bdat completions zsh           # shell completion script

Run sas7bdat <command> --help for the full options of a command.

  • sas7bdat-polars: a Polars plugin built on the same reader, with lazy scans and projection pushdown. pip install "sas7bdat-polars[cli]" installs it together with this CLI.
  • sas7bdat: the Rust crate.

License

MIT. See the repository for third-party notices and the SAS trademark note.

Metadata

Release files for sas7bdat-cli 0.9.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for sas7bdat-cli 0.9.7
File Actions
sas7bdat_cli-0.9.7-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for sas7bdat_cli-0.9.7-py3-none-win_amd64.whl
sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_x86_64.whl
sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_aarch64.whl
sas7bdat_cli-0.9.7-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for sas7bdat_cli-0.9.7-py3-none-macosx_11_0_arm64.whl

Total release size: 9.2 MB

Release files / sas7bdat_cli-0.9.7-py3-none-win_amd64.whl

Download URL sas7bdat_cli-0.9.7-py3-none-win_amd64.whl
Size 2.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3da4bc3e4c1afab833cf5b5c9a8150529e48dd73c2aad3ae804756969b4c7b66
BLAKE2b-256 checksum
How to use checksums
ec9650e36c8acf8395783febfde0c64f2e38d846bb8e98e9895fa2d319d2c02c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_x86_64.whl

Download URL sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_x86_64.whl
Size 2.5 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ce14ae7f12c4caf309a2753d1caabc4640cc6b305fcbf4859a613d0c215a8f07
BLAKE2b-256 checksum
How to use checksums
9b3c7701701f389d38f2504b38d7898663d83870f71fbf172bde8acd90f7f6a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_aarch64.whl

Download URL sas7bdat_cli-0.9.7-py3-none-manylinux_2_28_aarch64.whl
Size 2.4 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
d8d50dfb86ab8929607467336babb2af347b2e96cb579afb492437bd06acedc9
BLAKE2b-256 checksum
How to use checksums
847ec2ea27011382f2e4e0192dbcd1642f6d01897da0435124d8a9f7578e66f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / sas7bdat_cli-0.9.7-py3-none-macosx_11_0_arm64.whl

Download URL sas7bdat_cli-0.9.7-py3-none-macosx_11_0_arm64.whl
Size 2.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4196729091ebf0a95b4c31362cc3980e80520611c8c425426e9d4f50ace92eef
BLAKE2b-256 checksum
How to use checksums
fccff8ed7d6753e78b19ad2ed6ebaa7790cfb2bfac7d3dd924123d4263c90e82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for sas7bdat-cli 0.9.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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