Skip to content
(Former xbmcstubs) — stub Python functions and classes for Kodi mediacenter addon development:
Branch: master
Clone or download
Pull request Compare This branch is 251 commits ahead, 1 commit behind twinther:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Update docs Jan 3, 2019
.gitignore Update .gitignore Mar 30, 2018
.travis.yml Fix Travis config Jan 30, 2019
LICENSE.txt Renames license file Aug 9, 2016
MANIFEST.in
README.rst Fix link in Readme Apr 15, 2018
kodistubs_meta.py Restore kodistubs_meta module Dec 10, 2018
requirements.txt Add requirements.txt Jan 16, 2019
setup.py Restore kodistubs_meta module Dec 10, 2018
xbmc.py Add callback methods to xbmc.Player class Jan 25, 2019
xbmcaddon.py Update xbmcaddon module Dec 2, 2018
xbmcdrm.py Fix RestructuredText formatting errors in docstrings Dec 11, 2018
xbmcgui.py Add callback methods to xbmcgui.Window class Jan 25, 2019
xbmcplugin.py
xbmcvfs.py

README.rst

Kodistubs

(former xbmcstubs)

Kodi stubs are Python files that can help you develop addons for Kodi (XBMC) Media Center. Use them in your favorite IDE to enable autocompletion and view docstrings for Kodi Python API functions, classes and methods. Kodistubs also include PEP-484 type annotations for all functions and methods.

You can install Kodistubs into your working virtual environment using pip:

$ pip install Kodistubs

Read Kodi stubs documentation for more info on how to use Kodi stubs.

Warning: Kodistubs are literally stubs and do not include any useful code, so don't try to run your program outside Kodi unless you add some testing code into Kodistubs or use some mocking library to mock Kodi Pyhton API.

Current Kodistubs have been generated from scratch using Doxygen XML files and SWIG XML Python binding definitions that, in their turn, have been generated from Kodi sources. Old Kodistubs can be found in legacy branch.

I try to keep Kodi stubs in sync with Kodi Python API development, but it may happen that I miss something. Don't hesitate to open issues or submit pull requests if you notice discrepancies with the actual state of Kodi Python API.

Discussion topic on Kodi forum

License: GPL v.3

You can’t perform that action at this time.