2013-10-03, 08:54
2014-07-30, 20:25
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!
Thanks!
2015-03-13, 17:28
2015-03-13, 18:01
ListItem.setArt() missing for example.
also you should fix: https://github.com/romanvm/xbmcstubs/blo...ui.py#L690
to
also you should fix: https://github.com/romanvm/xbmcstubs/blo...ui.py#L690
Code:
addStreamInfo(type, values):
Code:
addStreamInfo(self, type, values):
2015-03-13, 20:10
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.
2015-03-14, 03:41
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.
They are not up to date always tho.
Thx for your work btw. It helps alot while coding on IDE.
2015-03-14, 05:25
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.
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.
2015-03-18, 12:15
(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 ), 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.
2015-05-26, 21:48
Thx for this. Just started using it in conjunction with ST + Anaconda. Works great.
2015-12-17, 14:18
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.
- 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.
2015-12-17, 17:19
is there anyway, this can work with notepad++ ?, I know its not an actual IDE, but just wondering if there is a way.
2015-12-17, 19:05
(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 ).
2016-01-16, 21:13
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.
- 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.