Beta -  script.module.kodi-six - a library for creating Python 2/3 compatible addons
#1
Exclamation 
Kodi Six (script.module.kodi-six) is an experimental library that I've created to simplify porting Kodi Python addons to Python 3. The library provides wrappers around xbmc* modules that normalize string handling in both Python 2 and Python 3 versions of Kodi API so that you don't need to use ad hoc string encoding and decoding in Python 2 - with Kodi Six Kodi API works the same way in both versions. Please read the Readme for more info.

Source code on GitHub: https://github.com/romanvm/kodi.six
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
#2
so basically with help of your module we will be converting our python2 projects to python3 projects.
then we will add your module on top of it and it will handle string vs unicode conversion inside our python3 compatible addon so its compatible with python2 (pre kodi 19.0) ?
Also we need to handle other aspect of compatibility like using proper urllib etc.
Reply
#3
I'm not sure what you are asking but kodi-six only normalizes string handling in Kodi Python API function/method arguments and return values. Everything else you need to do yourself.
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
script.module.kodi-six - a library for creating Python 2/3 compatible addons00