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

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.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pykodi-0.2.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pykodi-0.2.4.tar.gz.

File metadata

  • Download URL: pykodi-0.2.4.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

Hashes for pykodi-0.2.4.tar.gz
Algorithm Hash digest
SHA256 7f20d4ab81ea44d0dd08d7c8084ea0cad81c5bf156cc44e9f5665cb9c123f1ca
MD5 d618ee2af5fe0bde4688e5288dc1f0ca
BLAKE2b-256 2dee212f5abb980b140e4ac2c96eefe72e2c707b2e8bf1b54185b6489a3d0f1f

See more details on using hashes here.

File details

Details for the file pykodi-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: pykodi-0.2.4-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

Hashes for pykodi-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 512bce604f0cb376d06a15e9e1e600195155339946a63c661c8b61d63b6f5864
MD5 fbc961d5d72430a3adf1ddc18f659540
BLAKE2b-256 6bae8ae00ab07f59d131a519ab0de296a6098cbddf177747c570e8f1ee3589df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page