Sorien / Kodistubs

(Former xbmcstubs) — stub Python functions and classes for Kodi mediacenter addon development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kodi Stubs

###(Former xbmcstubs)

These files can help you to develop a script or an addon for Kodi (XBMC) Media Center. Use them in your favorite IDE to enable autocompletion of function, class and method names and access docstrings for each function, class and method.

Typically, a Python IDE (Integrated Development Environment) allows you add a "source directory" containing the xbmcstubs files to your development project. Then you will be able to "import" the modules as you normally would in Python.

E.g. in PyCharm IDE go to File > Settings > Project xxx > Project Structure, click + Add Content Root and select a folder with xbmcstubs files. Then you will get auto-completion, quick help and code inspection for Kodi Python API modules.

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.

Auto-generated Kodi Python API documentation from Kodistubs docstrings.

Discussion topic on Kodi forum.

License: GPL v.3

About

(Former xbmcstubs) — stub Python functions and classes for Kodi mediacenter addon development


Languages

Language:Python 100.0%