Skip to main content

A sas7bdat file reader for Python

Project description

This module will read sas7bdat files using pure Python (2.6+). No SAS software required! The module started out as a port of the R script of the same name found here: <https://github.com/BioStatMatt/sas7bdat>

Also included with this library is a simple command line script, sas7bdat_to_csv, which converts sas7bdat files to csv files. It will also print out header information and meta data using the –header option and it will batch convert files as well. Use the –help option for more information.

As is, I’ve successfully tested the script on around a hundred sample files I found on the internet. For the most part, it works well. The known issues right now are:

  1. Read only. No write support.

  2. Can’t read compressed data.

I’m sure there are more issues that I haven’t come across yet. Please let me know if you come across a data file that isn’t supported and doesn’t fall into one of the known issues above and I’ll see if I can add support for the file.

Feel free to fork this project and send me pull requests!

Project details


Download files

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

Source Distribution

sas7bdat-0.2.0.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file sas7bdat-0.2.0.tar.gz.

File metadata

  • Download URL: sas7bdat-0.2.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sas7bdat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 121c6f8c72c0221aa1310c0d827a3d74d3b9130e6351201283da3f810efaf002
MD5 ce57a92bff4d288e3e509ea16a50034b
BLAKE2b-256 48150392d435335a995b27de63412c29e4053d85ba566c05b246b306a33f5e89

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page