<commit_before>[![Travis CI build status](https://travis-ci.org/WizardMac/ReadStat.svg?branch=master)](https://travis-ci.org/WizardMac/ReadStat)
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/76ctatpy3grlrd9x/branch/master?svg=true)](https://ci.appveyor.com/project/evanmiller/readstat/branch/master)
[![codecov](https://codecov.io/gh/WizardMac/ReadStat/branch/master/graph/badge.svg)](https://codecov.io/gh/WizardMac/ReadStat)

ReadStat: Read (and write) data sets from SAS, Stata, and SPSS
--

Originally developed for [Wizard](http://www.wizardmac.com/), ReadStat is a
command-line tool and MIT-licensed C library for reading files from popular
stats packages. Supported formats include:

* SAS: SAS7BDAT, SAS7BCAT, and XPORT
* Stata: DTA 104-119
* SPSS: POR, SAV, and ZSAV

There is also write support for all formats except SAS7BCAT. For reading in R
data files, please see the related
[librdata](https://github.com/WizardMac/librdata) project.

Installation
==

Bootstrap autotools by running ./autogen.sh and then proceed as usual:

    ./configure
    make
    sudo make install

If you're on Windows see [Windows specific notes](#windows-specific-notes).


Language Bindings
==

* Julia: [ReadStat.jl](https://github.com/WizardMac/ReadStat.jl)
* R: [haven](https://github.com/hadley/haven)


Docker
==

A dockerized version is available [here](https://github.com/jbn/readstat)



Command-line Usage
==

Standard usage:

    readstat [-f] <input file> <output file>

Where:<commit_msg>Add python binding to README<commit_after>[![Travis CI build status](https://travis-ci.org/WizardMac/ReadStat.svg?branch=master)](https://travis-ci.org/WizardMac/ReadStat)
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/76ctatpy3grlrd9x/branch/master?svg=true)](https://ci.appveyor.com/project/evanmiller/readstat/branch/master)
[![codecov](https://codecov.io/gh/WizardMac/ReadStat/branch/master/graph/badge.svg)](https://codecov.io/gh/WizardMac/ReadStat)

ReadStat: Read (and write) data sets from SAS, Stata, and SPSS
--

Originally developed for [Wizard](http://www.wizardmac.com/), ReadStat is a
command-line tool and MIT-licensed C library for reading files from popular
stats packages. Supported formats include:

* SAS: SAS7BDAT, SAS7BCAT, and XPORT
* Stata: DTA 104-119
* SPSS: POR, SAV, and ZSAV

There is also write support for all formats except SAS7BCAT. For reading in R
data files, please see the related
[librdata](https://github.com/WizardMac/librdata) project.

Installation
==

Bootstrap autotools by running ./autogen.sh and then proceed as usual:

    ./configure
    make
    sudo make install

If you're on Windows see [Windows specific notes](#windows-specific-notes).


Language Bindings
==

* Julia: [ReadStat.jl](https://github.com/WizardMac/ReadStat.jl)
* Python: [pyreadstat](https://github.com/Roche/pyreadstat)
* R: [haven](https://github.com/hadley/haven)


Docker
==

A dockerized version is available [here](https://github.com/jbn/readstat)



Command-line Usage
==

Standard usage:

    readstat [-f] <input file> <output file>

Where:
{'fraction_non_alphanumeric': 0.13517862890247828, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 4.744916820702403, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 21, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '994356', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1040, 'n_words': 255}