title
SASPy
shelf-menu
title
SASPy
description
SASPy is an open source Python package that allows Python coders to access SAS data and analytics capabilities. Add SASPy to your Python environment, configure it to connect to your SAS environment, and begin using Python to access SAS.
background-image

SASPy supports “pythonic” access to SAS, including:

  • Data exchange between SAS and Pandas DataFrame objects.
  • Python classes to access machine learning, econometrics, and other SAS capabilities.
  • Python commands for statistics and visualization.
  • Ability to submit any SAS program and retrieve data or ODS results in your Python environment.

SASPy can be used from Jupyter Notebook, JupyterLab, or from any Python console/scripting environment.

SASPy is open source and available on GitHub and PyPI. User contributions are accepted.

heading

Get Started

text-align
center

Find all SASPy documentation, including install and configuration information is at sassoftware.github.io/saspy.

Module Download

You can install SASPy using pip install.

The following command will pull down the latest PyPI package and install it: 
pip install saspy

You can also download and install a specific release or clone the GitHub repository and install from a local version.

SASPy Documentation

heading

Samples

text-align
center

Example Notebooks and use cases can be found at sassoftware/saspy-examples.

Sample Notebook Screenshots

Create a SASData object and generate a heatmap
Transfer data between SAS Data Sets and Pandas Data Frames

Notebook Examples

heading

Resources

subheading
Conference papers and presentations
text-align
center

saspy GitHub repository

heading

SASPy Blogs & Communities

text-align
center

Blogs

Communities

Developers Community