Skip to main content

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()
...

Metadata

Release files for pykodi 0.2.7

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

Source distribution (sdist)

Source distribution for pykodi 0.2.7
File Size Uploaded
pykodi-0.2.7.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pykodi 0.2.7
File Interpreter ABI Platform
pykodi-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / pykodi-0.2.7.tar.gz

Download URL pykodi-0.2.7.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d9f1646d967745732895a686a64bef55f498b4d341d5b4eca110a29f71a754a3
BLAKE2b-256 checksum
How to use checksums
a3a93dfebd3cd15b7119b89a6b5b6e7382feef14118fb4a38aa918fd8d9fbffd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release files / pykodi-0.2.7-py3-none-any.whl

Download URL pykodi-0.2.7-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ff58f1357bd352974bde4bfbb91b01f0ec09716969b9791181148bbad291d9b
BLAKE2b-256 checksum
How to use checksums
7812330fdccb50d655547db2dbb98c97f2a593b75aa5d48d521a2b9a70d807bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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