The XAR Format package is exposed to the SDK:
from Pro.Core import * from Pkg.XAR import * def parseXARArchive(fname): c = createContainerFromFile(fname) if c.isNull(): return obj = XARObject() if not obj.Load(c) or not obj.ParseArchive(): return entry = None while entry := obj.NextEntry(entry): # skip directories if obj.IsDirectory(entry): continue print("file name:", entry.path) # retrieves the file data as NTContainer fc = obj.GetEntryData(entry)