Import Kodi Modules Into Pycharm or IDLE
#1
Hi everyone,

Is there a way to import the kodi moduls into Pycharm or IDLE

if not does kodi have its own script editor?

thanks
Reply
#2
Kodi modules are in fact C++ libraries exposed to Python via API. So the answer is 'no'. There are xbmctubs modules which can simplify coding by providing code auto-completion, quick help and code inspection in IDEs. But they do not allow you to actually run your code.

If you want to test your code outside Kodi with xbmcstubs, you can use some mocking library (e.g. mock) to mock the behavior of Kodi Python modules. But that only helps to some degree, mostly for your custom code with limited calls to Kodi API. Full-scale testing still needs to be done inside Kodi.
Reply

Logout Mark Read Team Forum Stats Members Help
Import Kodi Modules Into Pycharm or IDLE0