Skip to main content

Kodi JSON-RPC client

Project description

This provides a Kodi JSON-RPC client. All Kodi JSON methods can be called as methods to the KodiJSONClient instance.

Usage

This is an example given a kodi server at 192.168.0.1, using port 8000 (username=’user1’, password=’pwd’):

server = KodiJSONClient('192.168.0.1', '8000', 'user1', 'pwd')
server.JSONRPC.Ping()

All other Kodi JSON methods can be called in a similar way, with parameters provides as appropriate.

e.g. This would provide movie details:

params = {'properties':['title',
                        'lastplayed',
                        'thumbnail',
                        'plot',
                        'playcount',
                        'resume',
                        'file']}
movies = server.VideoLibrary.GetMovies(params)

Requirements

This is a python package and requires the following:

  • Python 3.4+
  • Python jsonrpcclient package
  • Python requests package

And of course to have a purpose a Kodi instance is required:

  • Kodi v13 or later

Installation

Install using pip:

$ pip install kodijsonrpc

Requests, Issues, Bugs or Suggestions

Add any feature requests, issues, bugs or suggestions here: https://github.com/davgeo/kodijsonrpc/issues

Please give as much detail as possible.

Project details


Download files

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

Files for kodijsonrpc, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size kodijsonrpc-1.1-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kodijsonrpc-1.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page