RepositoryPythonUSHoa Kỳ
sassoftware

sassoftware/python-swat

The SAS Scripting Wrapper for Analytics Transfer (SWAT) package is the Python client to SAS Cloud Analytic Services (CAS). It allows users to execute CAS actions and process the results all from Python.

159sao
66fork
36issue
3lượt xem

🚀 Kết nối Python với SAS Cloud Analytic Services (CAS) thông qua SWAT

SWAT là cầu nối giữa thế giới Python và motor CAS của SAS Viya — chạy phân tích dữ liệu lớn cả trên desktop lẫn cloud.

SWAT (SAS Scripting Wrapper for Analytics Transfer) là giao diện Python tới SAS Cloud Analytic Services (CAS), trái tim của nền tảng SAS Viya. Với gói này, bạn có thể tải lên và phân tích bộ dữ liệu bất kỳ kích thước nào — dù trên máy tính cá nhân hay môi trường đám mây — mà vẫn giữ được sự đơn giản khi dùng Python ở phía client. Các workflow gồm nhiều action CAS có thể thực thi từ Python, sau đó kết quả được tổng hợp lại để xử lý thêm hoặc gộp với dữ liệu khác bằng cấu trúc dữ liệu Pandas quen thuộc.

✨ Điểm nổi bật

  • Kết nối tới CAS: Tạo kết nối tới máy chủ CAS bằng swat.CAS(host, port, username, password), hỗ trợ cả giao thức nhị phân và REST.
  • Giao thức nhị phân hiệu năng cao: Yêu cầu Python 64-bit phiên bản 3.7–3.14 trên Windows/Linux, tối ưu tốc độ truyền dữ liệu lớn.
  • Giao thức REST di động: Phiên bản pure Python chạy trên mọi nền tảng, linh hoạt nhưng tốc độ chậm hơn.
  • Tích hợp Pandas: API được thiết kế tương tự Pandas để người dùng dễ chuyển đổi, hỗ trợ cấu trúc dữ liệu Pandas để xử lý kết quả.
  • Hỗ trợ Kerberos: Từ phiên bản 1.8.0, hỗ trợ kết nối tới SAS Viya 3.5 bằng Kerberos thông qua biến môi trường CASSPN.
  • Cài đặt đơn giản: Cài đặt qua pip install swat, hỗ trợ cài đặt từ file phát hành theo nền tảng.
  • Phụ thuộc thư viện hệ thống: Yêu cầu libnuma.so.1 trên Linux (cài qua gói numactl) để kết nối giao thức nhị phân.

💡 Vì sao đáng chú ý

SWAT không chỉ là một thư viện kết nối — nó là cây cầu cho phép người dùng khai thác toàn bộ sức mạnh phân tích của SAS trong môi trường Python. Khi kết hợp với Pandas và hệ sinh thái open-source Python, SWAT giúp người dùng dễ dàng thực hiện các workflow phức tạp trên dữ liệu lớn mà không cần rời khỏi môi trường phát triển quen thuộc. Đây là lựa chọn lý tưởng cho các nhà phân tích và kỹ sư dữ liệu đang làm việc trong môi trường SAS Viya.


#SAS #Python #CAS #Analytics #CloudComputing #SASViya #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
sassoftware/python-sasctl

Python package and CLI for user-friendly integration with SAS Viya

52
Sep 18, 2026
RepositoryTypeScript
sassoftware/vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.

165
Nov 25, 2026
RepositorySAS
sassoftware/sas-studio-custom-steps

Repository of Custom Steps for several applications. A custom step provides a low-code user interface to SAS & Python programs for SAS Data and AI Studio (formerly known as SAS Studio) users.

76
Nov 25, 2026
RepositoryJinja
sassoftware/viya-ark

SAS Viya Administration Resource Kit (SAS Viya ARK). Tools and utilities to help SAS customers with SAS Viya readiness.

62
Oct 29, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

379.9k
Sep 15, 2026
RepositoryPython
vinta/awesome-python

The definitive list that answers "I want to do X in Python, which tool should I use?"

338.6k
Nov 28, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryPython
TheAlgorithms/Python

All Algorithms implemented in Python

226.6k
Nov 13, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026