Deltacloud[1][2] was a library which abstracted differences of various cloud provider APIs, maintained from 2009 till about 2015. Btw I you need something like that today, there is libcloud[3], which is actively maintained library with a similar goal.
[1] https://deltacloud.apache.org/ [2] https://en.wikipedia.org/wiki/Deltacloud [3] https://libcloud.readthedocs.io/