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 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


Download files

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

Source Distribution

Kodistubs-19.0.2.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Kodistubs-19.0.2-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

Details for the file Kodistubs-19.0.2.tar.gz.

File metadata

  • Download URL: Kodistubs-19.0.2.tar.gz
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1

File hashes

Hashes for Kodistubs-19.0.2.tar.gz
Algorithm Hash digest
SHA256 bcd6124f03129d875f1192ce6912ced7e0649a58253c9b2db2711bc46c51b77e
MD5 a3e1d231b899d18e3e899b92567782b5
BLAKE2b-256 c93e03785b1e82a0c459ae54e5c99dead73ddb085ed7bfd0054b0a0ebabae316

See more details on using hashes here.

File details

Details for the file Kodistubs-19.0.2-py3-none-any.whl.

File metadata

  • Download URL: Kodistubs-19.0.2-py3-none-any.whl
  • Upload date:
  • Size: 63.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1

File hashes

Hashes for Kodistubs-19.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6151c8d62b746cbfcdc0886bf33b1fd8104c5e50198b6d84ee94f15e509b0c74
MD5 95e46f7a7fcac5c5e6c3afeba8d457c3
BLAKE2b-256 b0692ad3d14d3fb83814f7d835a55d22c15119959dac290ee7c2be0b54bc3520

See more details on using hashes here.

Supported by

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