Stub modules that re-create Kodi Python API
Project description
Kodi stubs are Python files that can help you develop addons for Kodi (XBMC) Media Center. Use them in your favorite IDE to enable autocompletion and view docstrings for Kodi Python API functions, classes and methods. Kodistubs also include PEP-484 type annotations for all functions and methods.
You can install Kodistubs into your working virtual environment using pip:
$ pip install Kodistubs
Read Kodi stubs documentation for more info on how to use Kodi stubs.
Kodistubs major version corresponds to the version of Kodi they have been generated from. Current Kodistubs are compatible with Python 3.6 and above. Kodistubs for Kodi versions that used Python 2.x for addons can be found in python2 branch.
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 Python API.
Current Kodistubs have been generated from scratch using Doxygen XML files and SWIG XML Python binding definitions that, in their turn, have been generated from Kodi sources. Old Kodistubs can be found in legacy branch.
I try to keep Kodi stubs in sync with Kodi Python API development, but it may happen that I miss something. Don’t hesitate to open issues or submit pull requests if you notice discrepancies with the actual state of Kodi Python API.
Discussion topic on Kodi forum
License: GPL v.3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Kodistubs-19.0.3.tar.gz
.
File metadata
- Download URL: Kodistubs-19.0.3.tar.gz
- Upload date:
- Size: 62.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f3379712fa944704dbb74e49b64fbc32ecc8dbfb5433221f4115e927f5b318 |
|
MD5 | 5bc260e81ee2844b833a3732d4c743f4 |
|
BLAKE2b-256 | 27440766dcdc5738f9c0935b1cbcfafd565d3b89f37afec4cadd93130468f698 |
File details
Details for the file Kodistubs-19.0.3-py3-none-any.whl
.
File metadata
- Download URL: Kodistubs-19.0.3-py3-none-any.whl
- Upload date:
- Size: 64.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aef7fb14ea2349d2ecf673a240e72e87aff0a34966e0ac9ec15ce90d2b7b84e3 |
|
MD5 | de27ef3470624634c7be58a97a94c562 |
|
BLAKE2b-256 | 21ba3e26691d9c9caa2ae66d4bab4a6ac6486f6d910c7cf604d2b5d007a71894 |