kodicontroller
This package provides an array of functions which can be used to control a Kodi instance.
For full details of exactly what functions are available, the necessary parameters which must be provided to those functions and exactly what the subsequent processing of the response is please refer to the source code directly.
Note: This is a work in progress and not all Kodi JSON methods are implemented.
Example
This is an example of the GetMovies method given a kodi server at 192.168.0.1, using port 8000 (username=’user1’, password=’pwd’):
controller = kodicontroller.KodiController()
controller.SetServer('192.168.0.1', '8000', 'user1', 'pwd')
controller.VideoLibrary_GetMovies()
This will setup the Kodi JSON client given the provided server details and call the VideoLibrary.GetMovies JSON method with the following parameters:
params = {'properties':['title',
'lastplayed',
'thumbnail',
'plot',
'playcount',
'resume',
'file']}
movies = server.VideoLibrary.GetMovies(params)
The response will then be parsed to extract an appropriate resume percentage and it will also download and (optionally) locally cache any thumbnails.
Requirements
This is a python package and requires the following:
Python 3.4+
Python kodijsonrpc package
And of course to have a purpose a Kodi instance is required:
Kodi v13 or later
Installation
Install using pip:
$ pip install kodicontroller
Requests, Issues, Bugs or Suggestions
Add any feature requests, issues, bugs or suggestions here: https://github.com/davgeo/kodicontroller/issues
Please give as much detail as possible.
Metadata
Release files for kodicontroller 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kodicontroller-0.0.3.tar.gz | 6.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kodicontroller-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / kodicontroller-0.0.3.tar.gz
| Download URL | kodicontroller-0.0.3.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6d9cd0cba9906fbc5b8a339b1fdd76105151d38c1505db7ef7e4d09e7e920fc
|
|
BLAKE2b-256 checksum How to use checksums |
c8605bac5f47051482d4133be8fc3f320c3a7487be4fccb56a9a81a0009bd381
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / kodicontroller-0.0.3-py3-none-any.whl
| Download URL | kodicontroller-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07b3f8ea1aead75a802cd7387bc365e8a002cb6526c9fcf754cac3934540ab3d
|
|
BLAKE2b-256 checksum How to use checksums |
9a5d717920b9f5e3a8f9d2d438bf0058f205ca23a29ab97677a22eadcd918a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for kodicontroller 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.