I'm new to programming, but I've managed using Python within a week to run python-pandas-suds-jurko and SoapUI queries on a Cisco call manager very successfully so far, I can copy data into .csv files and do pandas analysis, the CUCM GUI is now positively slow in comparison.
udpblf = client.service.updateDeviceProfile(
name=deviceProfileName,
busyLampFields={'busyLampField':
[{'blfDest' : **df.iloc[x,y]**,'label': df2.iloc[x,y],'index': x,} ,
#{'blfDest' : "1002",'label': "Mr Smith",'index': x,},
]
})
In the code above, as I'm using pandas, I use the df.iloc[x,y] to insert cell information into the update command, as the csv only ever has two columns 'y' will be an integer 0 or 1. X however will be determined by how many speed dials the user has, these being retrieved from the .csv file previously obtained by a suds query.
The problem I have is that because the above code forms part of the running script I dont know how to dynamically add additonal lines (one per speed dial) thus updating the df.iloc[x,y] info per line and have it run
I could get python to output the information to an external script and run it with exec I guess, but is there a way to do this inline if that makes sense