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
- To install locally in editable mode, refer here
Run the following command for a pip installation of the package from PyPi.
pip install --upgrade py-sas-studio-custom-steps
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.
- attach_sas_program: Attaches content of a SAS program to a custom step object.
- attach_ui: Attaches UI component definitions to a custom step object.
- generate_readme: Creates a README file as per user specification.
Documentation
Refer this page for a list of all available methods and attributes.
Change Log
- Version: 0.5.0 (17JAN2025)
- Method to create a README file
- Version: 0.4.0 (09JAN2025)
- Methods to add SAS program and UI components to a Custom Step
- Version: 0.3.3 (22SEP2024)
- New method to return pages from a Custom Step object
- Version: 0.2.3 (07AUG2024)
- New method to instantiate a class through a Custom Step file
- Version: 0.1.3 (07AUG2024)
- Initial version plus teething issues / doc fixes
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_sas_studio_custom_steps-0.5.0.tar.gz.
File metadata
- Download URL: py_sas_studio_custom_steps-0.5.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea0f6967cc204fc9ec0026c714f0b9d5217514eb440b03bf09baec9fb1d3ec57
|
|
| MD5 |
6e288b67227ac99073577b5fbe9367bb
|
|
| BLAKE2b-256 |
e69e7fc7daceb0c712d32e43abb83797690ce405a5dcfca71e8a5b56f17c96fb
|
File details
Details for the file py_sas_studio_custom_steps-0.5.0-py3-none-any.whl.
File metadata
- Download URL: py_sas_studio_custom_steps-0.5.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69fda0d3c788d7e3071f61b759c38fab9c916b476684826af393be817a35d65f
|
|
| MD5 |
cb917f521d385e191855682e4a7da5a3
|
|
| BLAKE2b-256 |
652ec10f453fb6b5a4adc09758b9eff397c4acee008ee69f5953d877fa03c6fa
|