A package containing a Python class and associated methods to facilitate operations on SAS Studio Custom Steps.
Project description
py-sas-studio-custom-steps: A Python package for SAS Studio Custom Steps
This repository provides a Python class and associated methods to facilitate access to the content of SAS Studio Custom Steps. SAS Studio Custom Steps are low-code components designed for a variety of analytical and data engineering operations on the SAS Viya platform. They help users create a user interface for parameters, that can then be used to execute an associated SAS program. Custom Steps provide easy access to common operations, boost code reusability, and help establish best practices in programming.
As SAS Viya continues to welcome a diverse set of users with different preferences (e.g. programming, low-code / no-code), a Python-based framework for interacting with custom steps aids code reusability, rapid development and testing of SAS solutions. This package can be used to access and port custom step capabilities from non-SAS Studio applications, such as SAS Viya Workbench.
Note that SAS Viya, SAS Viya Workbench etc. refer to commercial software provided by SAS Institute. The package in this repository is currently not officially provided or supported by SAS Institute. It only contains a convenient tool for manipulating a SAS Studio Custom Step, a serialized file. It does not execute SAS algorithms or procedures. SAS Programs and SAS Studio Custom Steps require a SAS / SAS Viya license to execute.
Installation
- Clone this repository
- Run the following command for a pip installation of the package from a local path in editable mode.
pip install -e .
Usage - quick example
To import the package inside a Python script:
import py_sas_studio_custom_steps as py_sas_step
custom_step = py_sas_step.CustomStep()
or, as an alternative, import the object directly:
from py_sas_studio_custom_steps import CustomStep
custom_step = CustomStep()
Key Operations
This package will evolve and add more functionality in a gradual manner. Important operations that are currently available include:
- extract_sas_program: Extract the SAS program from a given custom step
- create_custom_step: Write a custom step (CustomStep) object to a SAS Studio Custom Step (.step) file
- list_keys: List out all the attributes of a current custom step.
Documentation
Refer this page for a list of all available methods and attributes.
Change Log
- Version: 0.1.1 (02AUG2024)
Contact
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for py_sas_studio_custom_steps-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73fcb41a78c72af71dc236a771c4982545c435e8fb7c996f622d6b1580fc4c50 |
|
MD5 | 928bca05c0e59dc0660661288b1f0d3d |
|
BLAKE2b-256 | 898319533348425b38a25623a6b98a1aa80309c7cd1113fe36347f5c080f6e83 |
Hashes for py_sas_studio_custom_steps-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c76fc4d7e40f4d9560ceadeb6769a8ae306c2dcdf4c7c24a1a29affe5c5be5a |
|
MD5 | 7c8b4cd447cd0c4e143bb037807857b1 |
|
BLAKE2b-256 | db17fe08b2d64ac76abe07c84a6a4f3ff3a6a4384d688630e05a7c1d3ad9946a |