Crate pspp

Crate pspp 

Source
Expand description

§PSPP in Rust

PSPP is a program for statistical analysis of sampled data. It is a free replacement for the proprietary program SPSS.

This is an experimental rewrite of PSPP in Rust. It includes both programs directly useful to users and a library that can be used by other software. The goal of the rewrite is to ensure that PSPP can be as robust as possible, while remaining fast and portable.

This new version is very incomplete–in fact, only a subset of the pspp-convert utility is really ready for use.

§Installing PSPP

To install PSPP in Rust from source, install Rust, version 1.88 or later. Then, either:

  • Use the following command to download PSPP source code from crates.io and build and install it:

    cargo install pspp
  • Clone a local copy of this repository and build and install it from there, with: can instead cd into rust/pspp in the source tree and run:

    git clone git://git.sv.gnu.org/pspp
    cd pspp/rust/pspp
    cargo install --path .

The above commands also work for upgrades.

§Uninstalling

To uninstall PSPP, run:

cargo uninstall pspp

§Running PSPP

After installing PSPP using one of the methods above, run it with:

pspp

For help, use pspp --help. The only really useful PSPP commands currently are convert and show. Help for individual commands is available with pspp <command> --help.

§Reading the manual

The PSPP manual may be read online.

To build the manual, install mdBook using its instructions then, from the root of a checked-out copy of this repository, build the manual with:

(cd rust/doc && mdbook build)

This will output the manual as HTML under rust/doc/book/html.

§Reporting bugs

As this is an experiment, please don’t have high expectations (yet). However, questions and comments about using PSPP may be sent to pspp-users@gnu.org. Please email bug reports to bug-gnu-pspp@gnu.org or file them online at Savannah. Please indicate that you are referring to the Rust rewrite.

§License

Copyright © 2025 Free Software Foundation, Inc.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Modules§

calendar
command
crypto
Decryption for SPSS encrypted files
data
Individual pieces of data.
dictionary
Dictionaries.
endian
Converting big- and little-endian [u8] arrays to and from primitive types.
engine
file
Basic infrastructure for files understood by PSPP.
format
hexfloat
identifier
integer
lex
Lexical analysis for PSPP syntax.
locale_charset
macros
message
output
pc
Reading SPSS/PC+ data files.
por
Reading and writing portable files.
prompt
settings
spv
Reading and writing SPV files.
sys
Reading and writing system files.
util
variable
Variables.