Skip to main content

Kodistubs

(former xbmcstubs)

https://badge.fury.io/py/Kodistubs.svg

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 Kodistubs 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 this script from 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

Release files for Kodistubs 21.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Kodistubs 21.0.0
File Size Uploaded
Kodistubs-21.0.0.tar.gz 69.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Kodistubs 21.0.0
File Interpreter ABI Platform
Kodistubs-21.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 141.2 kB

Release files / Kodistubs-21.0.0.tar.gz

Download URL Kodistubs-21.0.0.tar.gz
Size 69.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c342eebf6c85c690788e6a4156a76d8eaa21b4e19e73df601ced0ca28d23576
BLAKE2b-256 checksum
How to use checksums
24bc5cf6fcb211cfcfe572b48897140806c88d2c2ab7597d51dcac2313950304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / Kodistubs-21.0.0-py3-none-any.whl

Download URL Kodistubs-21.0.0-py3-none-any.whl
Size 71.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b82cf094648ad5c75cf532bc377e1255c71730011d23d664b7df8ac96aedd3e0
BLAKE2b-256 checksum
How to use checksums
c0687ebaa78fa4ffe81e373419de1aa0aaa5a5f92b378ec616d7696646eecc87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page