sassoftware / pyviyatools

Python command-line tools that call the SAS Viya REST APIs - for SAS administrators.
Apache License 2.0
39 stars 31 forks source link

applyviyarules and createcaslibjson #147

Closed tomstarr closed 1 year ago

tomstarr commented 1 year ago

Committing new scripts for review: NEW - applyviyarules.py: Reads in a CSV file containing a set of Viya authorisation rules and imports them into Viya.

NEW - createcaslibjson.py: Reads in a CSV file containing CASLIB parameters and converts and formats it into a json file in a folder name .\caslibs. The json files created are in a format ready for consumption by importcaslibs.py.

UPDATED - importcaslibs.py: Added the optional argument "--su", as this is often required to create global caslibs. Note, I had a bit of trouble with the indentation of this script, so the compare of my changes may look more than they are... many were just to regulate the tabulation/indentation.