Python libraries

XBMC Python comes with all the standard modules from Python 2.6 or later. See https://docs.python.org/2.6/library/ for reference.

Built-in modules
In addition to the standard libraries, Kodi Python uses a handful of custom modules to expose Kodi functionality to Python.

Up to date documentation about these modules can be found at http://mirrors.kodi.tv/docs/python-docs/

Third-party modules
Numerous python modules are already packages as add-ons that can be imported by other add-on. See Category:Add-on_libraries/modules for a list of available modules. To use any of these modules with your add-on, add the relevant line to Addon.xml

Installing additional modules
Additional modules may be installed by simply adding the module to the root folder of your add-on.

A common way to organized third-party modules that are not part of add-on source code itself, is to add a  directory and place an   file and other third-party modules inside it. These modules may then normally be imported using.