YoannD

Python and XOG

Blog Post created by YoannD Employee on Feb 27, 2018

I like the gel script, but I definitively prefer python for scripting. So I've started to create a python object to make connexion with the CA PPM XOG Interface. You can find source here : XOG call with Python 

 

Enjoy

 

EDIT: The link is in a non public area, so I reproduce here...

 

Just let know a little example Python class to run some XOG query.

 

Use example:

import xogMapper

xog = xogMapper.XogHandler()
xog.setUp('http[s]://MyServer',<portnumber or 80>)
res=xog.connect('<login>','<passwd>')
print("[i] Session ID:",res)



# do your stuff to generate an XOG file



# send the XOG file (tXog)

res = xog.sendXog(tXog)

# show result

print(res.toprettyxml())

xog.disconnect()

Lot of things need to be done, for example add a function to check the return result of the XOG call....

 

Enjoy !

Attachments

Outcomes