Skip to main content

A complete Python client for the Kodi JSON-RPC API

Why?

Because JSON-RPC is one of the trickier communication schemes to write for. And if you want to code for it, then you’re probably going to get into bit of a dysfunctional relationship with the documentation.

What?

A native-Python JSON-RPC client. Loads all the methods from your Kodi instance each time it gets instantiated, so you know you’re never behind. And, it puts it in some semblance of a reasonable object structure.

Future updates will bundle a carefully-manicured static hive that will give you a better object structure at the cost of not always being completely up-to-date.

How?

>>> from kodipydent import Kodi
>>> my_kodi = Kodi('192.168.1.1')
>>> movies = my_kodi.VideoLibrary.GetMovies()

Simple as that. beekeeper makes it easy to use and easy to learn; if you don’t know the name of the method you want to use, just do this:

>>> print(my_kodi)

and you’ll get a printout of all the methods available, and all the variables each one takes.

Installation

$ pip install kodipydent

Under the Hood

kodipydent is driven by beekeeper, the family-friendly, object-oriented Python REST library. With beekeeper, even JSON-RPC clients are relatively simple to write. Don’t believe me? Read the code. And you can check out kodipydent/hive.json to see what a full hive looks like.

Here’s the full signature of the method to create your API:

Kodi(hostname[, port=8080, username='kodi', password=None])

“Advanced” Usage

kodipydent supports Kodi installations that have usernames and passwords set up. If you’ve created a password for web access, then simply construct your kodipydent instance as follows:

Kodi('localhost', username='kodi', password='myawesomepassword')

Metadata

Release files for kodipydent-alt 2022.9.3

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

Source distribution (sdist)

Source distribution for kodipydent-alt 2022.9.3
File Size Uploaded Provenance Actions
kodipydent-alt-2022.9.3.tar.gz 12.8 kB Without provenance Details for kodipydent-alt-2022.9.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kodipydent-alt 2022.9.3
File Interpreter ABI Platform Actions
kodipydent_alt-2022.9.3-py3-none-any.whl Python 3 none any Details for kodipydent_alt-2022.9.3-py3-none-any.whl

Total release size: 24.7 kB

Release files / kodipydent-alt-2022.9.3.tar.gz

Download URL kodipydent-alt-2022.9.3.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61fc4e5565646a799c783bcf5ae7503223513906e3242bff2ecc8aa66dc80826
BLAKE2b-256 checksum
How to use checksums
dd776695c399c31ffca5efa10eef3d07fd2b6b24176260477a909d35f0fc1a0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.7.12 Linux/5.15.0-47-generic

Release files / kodipydent_alt-2022.9.3-py3-none-any.whl

Download URL kodipydent_alt-2022.9.3-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
294c640989ba94481b97822d297b11c8c5a72779485c7c540a184c063a85f889
BLAKE2b-256 checksum
How to use checksums
9b9df481ef9990357ef79d7168391418c41fefda006aedc3daa9207b0e93150a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.7.12 Linux/5.15.0-47-generic

Security for kodipydent-alt 2022.9.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.

Release history Release notifications | RSS feed

This release

2022.9.3 This release

2 release files No provenance

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