Programatically install an add-on

Is there a Kodi API to programmatically install an add-on from a repository (already installed) in Python, without having to parse the repository file, download the package, etc.?