saspy
A Python interface to SAS
Decision gist · record as of 2026-08-14
Yes, if you need to integrate SAS with Python workflows. The package is actively maintained, has no external dependencies, uses a permissive license, and is designed for exactly this use case. Install only if you have access to a SAS 9.4+ or SAS Viya 3+ deployment and need bidirectional Python-SAS integration.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a SAS 9.4+ or SAS Viya 3+ deployment to connect to; Python alone cannot run SAS code without an accessible SAS instance.
- Low install friction with no runtime dependencies.
- The package is actively maintained, with a recent release 22 days ago and ongoing repository activity.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache License 2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions beyond attribution and liability disclaimers.
last release 2026-07-23 (22 days) · last repo commit 2026-07-23 · 409 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 311,533 downloads/mo, #7,731 on PyPI
Alternatives
Verify before relying
pip install saspy
import saspy
sas = saspy.SASsession()
result = sas.submit('proc print data=sashelp.class; run;')
print(result)- Whether the package works with Python versions beyond 3.5 despite the old classifiers listed (3.4, 3.5).
- Specific configuration steps required for each SAS deployment type (Linux, Windows, MVS, Jupyter, Databricks, Zeppelin).
- Performance characteristics and latency when connecting to remote SAS instances.
What it is and what it does
SASPy is a bridge between Python and SAS that lets you write Python code to submit SAS programs to local or remote SAS systems and retrieve results back into Python. It converts between SAS datasets and Pandas DataFrames, supports multiple deployment types (Linux, Windows, MVS), and works in notebooks, IDEs, and batch scripts. The package generates SAS code from Python objects and methods, or accepts explicit SAS code you write, then returns analytics results as text, HTML5 documents, or structured data.
The package is designed for teams that need to combine SAS and Python capabilities in a single workflow—for instance, preprocessing data in Python, running SAS analytics, and post-processing results back in Python. It has no runtime dependencies beyond Python itself, though it requires an active SAS installation to connect to. The project is actively maintained and has been in development since 2016.
Use it for
- Submit SAS procedures from Python and retrieve results as Pandas DataFrames for further analysis.
- Convert SAS datasets to Pandas for Python-based machine learning, then push results back to SAS.
- Run SAS analytics in Jupyter or Databricks notebooks while controlling workflow logic from Python.
- Automate SAS batch jobs from Python scripts, capturing output and graphics programmatically.
- Build mixed-language data pipelines that leverage both SAS and Python strengths in a single process.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to integrate SAS with Python workflows.
The package is actively maintained, has no external dependencies, uses a permissive license, and is designed for exactly this use case. Install only if you have access to a SAS 9.4+ or SAS Viya 3+ deployment and need bidirectional Python-SAS integration.
Install
saspy on PyPI
Before you install
Low install friction with no runtime dependencies. The package is actively maintained, with a recent release 22 days ago and ongoing repository activity. Suitable for straightforward installation.
Requires a SAS 9.4+ or SAS Viya 3+ deployment to connect to; Python alone cannot run SAS code without an accessible SAS instance.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install saspy
import saspy
sas = saspy.SASsession()
result = sas.submit('proc print data=sashelp.class; run;')
print(result)
Verify before relying
- Whether the package works with Python versions beyond 3.5 despite the old classifiers listed (3.4, 3.5).
- Specific configuration steps required for each SAS deployment type (Linux, Windows, MVS, Jupyter, Databricks, Zeppelin).
- Performance characteristics and latency when connecting to remote SAS instances.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 311,533 / month, #7,731 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: System :: Shells |
Evidence: saspy-5.108.6-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python sas interface”
- saspySASPy connects Python to SAS deployments (local or remote) to run SAS…
- sas7bdatReads SAS7BDAT files (SAS statistical software data format) using…
- pyreadstatReads and writes SAS, SPSS, and Stata data files directly into pandas…
Give your agent the search over MCP, or paste the wish link into any chat.
More Shells packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
IPython is an enhanced interactive Python shell and Jupyter kernel that provides object introspection, persistent input history, tab completion, magic commands, and integrated debugging.
Install it if you work interactively with Python, use Jupyter, or want to embed a rich shell in your application.
Provides bash and zsh tab completion for Python applications using argparse, allowing users to complete command-line arguments and options by pressing Tab.
Install it if you want to add professional-grade tab completion to your Python command-line tools.
Formats and parses numbers, file sizes, timespans, and other values into human-readable text; provides terminal interaction utilities including ANSI text styling and user prompts.
Adds colored output to Python's standard logging module using ANSI escape sequences, with automatic fallback support for Windows terminals.
However, it is abandoned and receives no maintenance, so it will not adapt to future Python changes or platform updates.
See also pyreadstat · sas7bdat · pyspark-client · tablib · datacompy · awsglue-dev · xlwings · bigframes · itables