Improvements
- Added
CodeFileclass to pzmm module for creating and uploading Python code files to SAS Intelligent Decisioning- New method
write_id_code_file()uploads a Python code file to a specified Viya folder and registers it with the Decisions service- Accepts code as a raw string, file path, or
Pathobject - Validates code format via the SAS Viya API before upload; can be disabled with
validate_code=False - Raises
ValueErrorif the file already exists in the target folder, if the folder is not found, or if validation fails - Cleans up the uploaded file if Decisions service registration fails
- Accepts code as a raw string, file path, or
- See
examples/pzmm_id_code_file_example.ipynbfor usage examples
- New method