Skip to main content

Stub modules that re-create Kodi Python API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Kodistubs-21.0.0rc1.tar.gz (69.8 kB view details)

Uploaded Source

Built Distribution

Kodistubs-21.0.0rc1-py3-none-any.whl (71.4 kB view details)

Uploaded Python 3

File details

Details for the file Kodistubs-21.0.0rc1.tar.gz.

File metadata

  • Download URL: Kodistubs-21.0.0rc1.tar.gz
  • Upload date:
  • Size: 69.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for Kodistubs-21.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 008b420f5c675aeccfc8b160336c3f6034b50b059ce295ccf71835237cb669b0
MD5 5692f9ab2b928607ae5178f0955aa234
BLAKE2b-256 67741eeb8c1b5e519e14eca9f45a382077e9303e9255e945db2443027e4171a0

See more details on using hashes here.

File details

Details for the file Kodistubs-21.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: Kodistubs-21.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 71.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for Kodistubs-21.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2cbe4965461d2da1ea63db279e6ed25d3efaf1d8c720d24434d5a848ac2a810
MD5 2fed4ccd8ba2ef5b6718ddb7d29fc781
BLAKE2b-256 c50a70ea9d36e2a1d15a6cbbaf50d1251850094becdebfae3d4aee1c60edb060

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page