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.5

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.5
File Actions
sas7bdat_cli-0.9.5-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for sas7bdat_cli-0.9.5-py3-none-win_amd64.whl
sas7bdat_cli-0.9.5-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for sas7bdat_cli-0.9.5-py3-none-manylinux_2_28_x86_64.whl
sas7bdat_cli-0.9.5-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for sas7bdat_cli-0.9.5-py3-none-manylinux_2_28_aarch64.whl
sas7bdat_cli-0.9.5-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for sas7bdat_cli-0.9.5-py3-none-macosx_11_0_arm64.whl

Total release size: 9.2 MB

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

Download URL sas7bdat_cli-0.9.5-py3-none-win_amd64.whl
Size 2.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d185c1b087e8a778a045e6fa15808e9d427d648e640da892e706e6355071c240
BLAKE2b-256 checksum
How to use checksums
3c777d46d88f5a85eb1889a8896bd85d213f4d005440262d0ad32deeb873de45
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":"24.04","id":"noble","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.5-py3-none-manylinux_2_28_x86_64.whl

Download URL sas7bdat_cli-0.9.5-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
66d6b81a98da62a38a577bc8c1d28e7d5b08da1c9264421c03f706c9736d8446
BLAKE2b-256 checksum
How to use checksums
f733a21d54940ea99ea166b57381127a1864d70f73352ea0895cd7392f4f2f13
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":"24.04","id":"noble","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.5-py3-none-manylinux_2_28_aarch64.whl

Download URL sas7bdat_cli-0.9.5-py3-none-manylinux_2_28_aarch64.whl
Size 2.3 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
3cbbe2e48f50486feb2aec765974843f7a7ce35b44cba1647f8b7e280e8a545d
BLAKE2b-256 checksum
How to use checksums
f7e3513d3d43c2f83f858e889c88ce610c401c6a85b4915ae1682660eb5329f6
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":"24.04","id":"noble","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.5-py3-none-macosx_11_0_arm64.whl

Download URL sas7bdat_cli-0.9.5-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
7d51de8d20708de71fe0a04e62b6b32f6a5477d3ee913f4d31197a737b596143
BLAKE2b-256 checksum
How to use checksums
f4c090b19ecd59695152d548c3af28a33ecd88f253393aaa7af3dfb9f41d0916
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":"24.04","id":"noble","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.5

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