Code to update ICD model Files from Sheets Interface
The directory structure assumed for this tool. is as below.
root directory/
├── download_icd.py
├── upload_subscribe.py
├── TCS-Model-Files/
├── ESW-Model-Files/
├── AOESW-Model-Files/
├── NFIRAOS-Model-Files/
├── IRIS-Model-Files/
├── ESEN-Model-Files/
├── M1CS-Model-Files/
The tool uses gspread library
The authentication method used is oauth. The details of setting up authentication of sheets for read and write are explained in the gspread page.
pyhocon library
The download_icd.py expects the model file repos to be already cloned in the corresponding subdirectories. It creates different worksheets for each assembl with subsystem and corresponding published item.
The upload_subscribe.py expects the thirs column in the sheets to be filles with 'Add' for the items that need to be added to the subscribe.conf file to be produced. According to the input the hocon file is generated.