Installation

This package can be installed via pip, uv, pixi, or conda. It is a pure Python package and works with Python 3.x installations.

Installation via pip

pip is the default Python package manager that comes with Python when downloaded from python.org

To install the latest version using pip, you execute the following:

pip install saspy

or, for a specific release:

pip install http://github.com/sassoftware/saspy/releases/saspy-X.X.X.tar.gz

or, for a given branch (put the name of the branch after @):

pip install git+https://git@github.com/sassoftware/saspy.git@branchname

The best way to update and existing deployment to the latest SASPy version is to simply uninstall and then install, picking up the latest production version from PyPI:

pip uninstall -y saspy
pip install saspy

Installation via uv

uv Is a Python package and project manager, written in Rust.:

uv init name-of-project
cd name-of-project
uv add saspy # adds saspy to your project from PyPI

Installing a specific release can be done from the SASpy project releases page, where the X.X.X is the release version you want.:

uv init name-of-project
cd name-of-project
uv add https://github.com/sassoftware/saspy/archive/vX.X.X.tar.gz

Installation via pixi

pixi is a language-agnostic and cross-platform package management tool built on the foundation of the conda ecosystem. You can install packages from the conda-forge channel, or PyPI.:

pixi init name-of-project
pixi cd name-of-project
pixi add saspy # Installs latest version from conda-forge channel by default.
pixi add saspy==X.X.X # Where X.X.X is the version you'd like to install.

# If you'd like to install saspy from PyPI.
pixi add python # Python is a required dependency for packages installed from PyPI.
pixi add --pypi saspy # Installs latest version from PyPI.
pixi add --pypi saspy==X.X.X # Where X.X.X is the version you'd like to install.

Installation via conda

conda is a cross-platform, language-agnostic binary package manager.:

conda create --name name-of-my-environment
conda install --channel conda-forge saspy # Installs latest version of saspy from conda-forge channel.
conda install --channel conda-forge saspy==X.X.X # Where X.X.X is the version you'd like to install.

If you’d like to see more ways to install from the conda-forge channel please look to the repository for the saspy feedstock:

To use this module after installation, you need to copy the example sascfg.py file to a sascfg_personal.py and edit sascfg_personal.py per the instructions in the next section.