Skip to main content

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


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_cli-0.7.0-py3-none-win_amd64.whl (2.6 MB view details)

Uploaded Python 3Windows x86-64

sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_x86_64.whl (2.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_aarch64.whl (2.7 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

sas7bdat_cli-0.7.0-py3-none-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file sas7bdat_cli-0.7.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: sas7bdat_cli-0.7.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.12.0 {"installer":{"name":"uv","version":"0.12.0","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

Hashes for sas7bdat_cli-0.7.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7f62c5fd89bd1b89a521130c7667f9a6110867e31b461440067bf276a0dde34a
MD5 752201afde264af7c6bc1ab27f07d055
BLAKE2b-256 f649813b6b5b6a33e8b30c7f8c2a5391a45b36838725084d594aa0cd3fd4ae0c

See more details on using hashes here.

File details

Details for the file sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","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

Hashes for sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 58f192d29d57c3f01a1e101307f048456224b85a7c8a7970c3cb78049f235bd5
MD5 8449a9ecdf42639e68c6d0b4006f29d4
BLAKE2b-256 dd3b2a9e1e7ba1d5d9e9e11d2f6d9d9fd8475cacbfa2e67deabed9f0942c2ad0

See more details on using hashes here.

File details

Details for the file sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","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

Hashes for sas7bdat_cli-0.7.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 01238d324f34aa38f16d79faf5f91ab3710ce8bddd3722cfb4bac2a4f035852a
MD5 2f5d34d725d858d9c31224f0587210d3
BLAKE2b-256 1c1bf3671199515bd63a3530244877780fa9f060727da2c6cda3bb56291ab775

See more details on using hashes here.

File details

Details for the file sas7bdat_cli-0.7.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: sas7bdat_cli-0.7.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","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

Hashes for sas7bdat_cli-0.7.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c15d67fa9a2e38044f853d2f975355683a1bd8b3822701bb82cfa8999e3c790b
MD5 4a5ae9c5d03c8035c76990773b6e4f90
BLAKE2b-256 7472d00b53bf8cc7821ca225849f3a3fd66fc787f7f75faabcdc33ccfb848797

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