PyKodi
An async python interface for Kodi over JSON-RPC. This is mostly designed to integrate with HomeAssistant. If you have other needs, there might be better packages available.
Installation
You can install PyKodi from PyPI:
pip3 install pykodi
Python 3.7 and above are supported.
How to use
from pykodi import get_kodi_connection, Kodi
kc = get_kodi_connection(<host>, <port>, <ws_port>, <username>, <password>, <ssl>, <timeout>, <session>)
# if ws_port is None the connection will be over HTTP, otherwise over WebSocket.
# ssl defaults to False (only relevant if you have a proxy), timeout to 5 (seconds)
# session is generated if not passed in
# you can also pass in your own session
await kc.connect()
kodi = Kodi(kc)
await kodi.ping()
properties = await kodi.get_application_properties(["name", "version"])
await kodi.play()
await kodi.volume_up()
await kodi.pause()
...
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pykodi-0.2.5.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pykodi-0.2.5.tar.gz.
File metadata
- Download URL: pykodi-0.2.5.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c756161a646fb787eeb4f217d52a1cd5999f3f8642ef2e24f856761c25c182aa
|
|
| MD5 |
a954cbef433ae04481baabf0184220d2
|
|
| BLAKE2b-256 |
632defc536cdd5aa606c06ff6ea3438383aa3cef6a5a84e07ea146ab24463825
|
File details
Details for the file pykodi-0.2.5-py3-none-any.whl.
File metadata
- Download URL: pykodi-0.2.5-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
846354594b5bef54276eb96e2c9aafaffc3fb79c0578d94ed8b2e4b0607ff691
|
|
| MD5 |
0d06ebafc0ed2c35000e935f437670d1
|
|
| BLAKE2b-256 |
a2b83a69fe0af983b3c43b4db63a2800427b34b54522fdddd40c6032ec062203
|