Kodistubs (xbmcstubs) - code auto-completion and quick help for Python IDEs
#16
(2013-10-02, 23:49)jerimiah797 Wrote: Here you go!

Thanks! Added your info to the OP.
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
#17
Just came across this and want to say thanks for this project. I use Eclipse as my IDE of choice and always just had to ignore any xbmc library errors when doing addon editing. This makes things a lot easier and a ton more helpful. Not constantly going through the XBMC python docs in a web browser to find the function I'm looking for.

Thanks!
Reply
#18
Could you update for latest modules?
Reply
#19
(2015-03-13, 15:43)queeup Wrote: Could you update for latest modules?

Could you be more specific what is missing?
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
#20
ListItem.setArt() missing for example.

also you should fix: https://github.com/romanvm/xbmcstubs/blo...ui.py#L690
Code:
addStreamInfo(type, values):
to
Code:
addStreamInfo(self, type, values):
Reply
#21
Next time I will PR. Promise.
Reply
#22
Thanks for the info and pointing out the bug. As for API changes, reference to relevant docstrings from Kodi sources will help. Unfortunately, the info about Python API changes is not readily available and needs to be picked out from different sources.
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
#23
You are right. I guess best place is pydocs: http://mirrors.xbmc.org/docs/python-docs/14.x-helix/

They are not up to date always tho.

Thx for your work btw. It helps alot while coding on IDE.
Reply
#24
I think easiest way to find class and function names is modify one kodi "addon.py" or "default.py" file with import all xbmc modules, then print them one by one after import lines adding like this: "print help(xbmcaddon)".
On kodi.log it gives this: http://xbmclogs.com/py1sxwiyp

Unfortunately no help printed. Just class & function names. After get them you can check pydoc from site.
Reply
#25
(2015-03-14, 03:41)queeup Wrote: You are right. I guess best place is pydocs: http://mirrors.xbmc.org/docs/python-docs/14.x-helix/

They are not up to date always tho.

Yes, that's the issue. Basically, the most reliable source is Kodi source (no pun intended Smile), but you need to monitor a number of C++ files which is not very convenient, especially for an amateur programmer with very basic knowledge of C++ like myself. But suggestions and PRs are always welcomed.
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
#26
Thx for this. Just started using it in conjunction with ST + Anaconda. Works great.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#27
Just want to note that XBMCstubs are renamed to Kodistubs to reflect the XBMC > Kodi name change. I'd also like to announce some upcoming changes for Kodistubs:
- All docstrings will have Sphinx/reStructuredText formatting.
- For all function/methods that return something returned objects will be changed from types to default instances of the respective types. E.g. if previously a stub function returned str, now it will return str(), int will be replaced with int() and so on. This is done to prevent import side-effects when an addon script referencing Kodistubs is imported outside Kodi, e.g for unit-testing.
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
#28
is there anyway, this can work with notepad++ ?, I know its not an actual IDE, but just wondering if there is a way.
Reply
#29
(2015-12-17, 17:19)yocoldrain Wrote: is there anyway, this can work with notepad++ ?, I know its not an actual IDE, but just wondering if there is a way.

Good question. Personally, I've never used Notepadd++ for other than quick glance into some file or making quick fixes in the code, and I guess it can do only as much. Personally, I prefer PyCharm Community for any serious Python development (if my amateur efforts can be called so Smile ).
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
#30
As announced, Kodistubs are updated. Major changes:
- All docstrings now have Sphinx-compatible reStructuredText formatting.
- For all function/methods that return something, returned objects are changed from types to default instances of the respective types, e.g str -> str().
- New Sphinx-generated website for documentation: http://romanvm.github.io/Kodistubs/ This website can also be used as a reference point for intersphinx if you are writing your own docs with Sphinx.
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
 
Thread Rating:
  • 2 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
Kodistubs (xbmcstubs) - code auto-completion and quick help for Python IDEs52