Any API or library to apply Lightroom presets/xmp to photos?

I want to preview photos with different xmp files without relying on Lightroom, but i couldn't find any solution for it.