Fast command-line converter and inspector for SAS7BDAT files
Project description
sas7bdat-cli
A fast command-line tool for reading, inspecting, and converting SAS7BDAT files —
the binary on-disk format produced by SAS. It is a self-contained Rust binary built on
the SIMD-accelerated sas7bdat parser: no SAS
installation, no ReadStat, no C toolchain.
Installation
pip install sas7bdat-cli
# or, without polluting an environment:
uv tool install sas7bdat-cli
The wheel ships a single executable, sas7bdat. It is a plain binary wheel
(py3-none-<platform>), so it has no Python version floor and pulls in no
dependencies — Python is only the delivery mechanism.
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.
Related packages
sas7bdat-polars— a Polars IO plugin backed by the same parser, with lazy scans plus projection and predicate pushdown.pip install "sas7bdat-polars[cli]"installs it together with this CLI.sas7bdat— the underlying Rust crate.
License
MIT. See the repository for third-party notices and the SAS trademark note.
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_cli-0.6.0-py3-none-win_amd64.whl.
File metadata
- Download URL: sas7bdat_cli-0.6.0-py3-none-win_amd64.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c259bb318cb3e4d63c2643abbff8004d4ebdddfc7f35fe141f6869cb924b0da7
|
|
| MD5 |
1fa25342586e5e2f879d7ad7b3243fab
|
|
| BLAKE2b-256 |
6c8b1fd8dc0368eb459c7cbf4a7e55fc8cdb776730e9fc99035c4de44aa8ff77
|
File details
Details for the file sas7bdat_cli-0.6.0-py3-none-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: sas7bdat_cli-0.6.0-py3-none-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52ccee43dec775cc10031189dbf685e87ab6a940ff11fe4773e6fe63c8959b7e
|
|
| MD5 |
f38d4d239ce37fd0c56f0d22163fcb17
|
|
| BLAKE2b-256 |
f593c443e31cc2a7ed4658ba3354932c06a1e0d46866c51a416d9231501cafbf
|
File details
Details for the file sas7bdat_cli-0.6.0-py3-none-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: sas7bdat_cli-0.6.0-py3-none-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91fa5b8f10f3b1bf2d394b5cb24c4603cd4ee7af2c0f009c02b3a56a2da9d635
|
|
| MD5 |
14fb70faa4afcdb4efdfab445a467c12
|
|
| BLAKE2b-256 |
8c6cbe1daf40b414ad3997991835f5ff3eebb9b27f31c228e1e0301a7dac65e9
|
File details
Details for the file sas7bdat_cli-0.6.0-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: sas7bdat_cli-0.6.0-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd70e346b19655614bd65e7312d16a22693855432ed5862e73a34b64ccc858dc
|
|
| MD5 |
a51d49fd98d84c985e77315b17895ec7
|
|
| BLAKE2b-256 |
7b379c9494c9a4b9a80d2789917b46fa600d69d1b020d7c017d374cf6f566666
|