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.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 pykodi 0.2.3
File Size Uploaded Provenance Actions
pykodi-0.2.3.tar.gz 6.7 kB Without provenance Details for pykodi-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 12.4 kB

Release files / pykodi-0.2.3.tar.gz

Download URL pykodi-0.2.3.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a88659aba46c886f11c97c373c4e5f4385e740e790c0696a6cb550ac8af53d25
BLAKE2b-256 checksum
How to use checksums
8882b6c8519a41df169425c9f1bfe8e38efb1f917adc1a853ec04194f0327d57
Upload date
Uploaded using Trusted Publishing?
What is 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

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

Download URL pykodi-0.2.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbd7e3e44bfd19f9033f3822b812ff16a2bba90188034ce1bb0f50d18a58b5de
BLAKE2b-256 checksum
How to use checksums
d27d56111125a3a4ffae0f5a20c31629605dd2ad15dd47c51d5fbccafa7b26f8
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pykodi 0.2.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.

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