pykodi
An async python interface for Kodi over JSON-RPC.
Decision gist · record as of 2026-08-14
Yes, if you need to control Kodi from Python and are willing to accept that the package has not been updated since October 2021. Install friction is low and the MIT license is unencumbered. Verify compatibility with your Kodi version and HomeAssistant version (if applicable) before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or above; async/await syntax requires an event loop context.
- Low install friction with pure-Python dependencies.
- Maintenance is active with recent commits, though the latest release is from October 2021.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no significant restrictions on use, modification, or distribution.
last release 2021-10-23 (1756 days) · last repo commit 2026-04-08 · 7 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 73,731 downloads/mo, #14,938 on PyPI
Alternatives
Verify before relying
pip install pykodi
from pykodi import get_kodi_connection, Kodi
kc = get_kodi_connection(host, port, ws_port, ssl, timeout, session, user, password)
await kc.connect()
kodi = Kodi(kc)
await kodi.ping()- Whether the package remains compatible with modern Kodi versions beyond its last release in October 2021.
- Whether HomeAssistant integration (its primary design target) continues to work with current versions.
- Active maintenance status despite recent commits—whether the repository is accepting contributions or in maintenance-only mode.
What it is and what it does
PyKodi is an async Python client library for controlling Kodi media centers remotely via JSON-RPC. It abstracts the JSON-RPC protocol into a Python API, allowing you to send commands (play, pause, volume control) and query properties (application name, version) from your own Python code. The library supports both HTTP and WebSocket transports and is built on aiohttp, jsonrpc-async, and jsonrpc-websocket for non-blocking I/O.
The package was designed primarily for integration with HomeAssistant but can be used standalone to automate or monitor Kodi instances. It requires Python 3.7 or above and handles connection setup, session management, and async communication internally. The API is straightforward: create a connection, connect asynchronously, wrap it in a Kodi object, and call methods like ping(), play(), pause(), or get_application_properties().
Use it for
- Integrate Kodi playback control into a HomeAssistant automation or dashboard.
- Build a custom remote control application that sends play/pause/volume commands to Kodi over the network.
- Query Kodi application properties or media state from a monitoring or logging script.
- Automate media playback sequences across multiple Kodi instances in a home network.
- Develop a lightweight CLI tool to control Kodi without a web browser or official remote.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to control Kodi from Python and are willing to accept that the package has not been updated since October 2021.
Install friction is low and the MIT license is unencumbered. Verify compatibility with your Kodi version and HomeAssistant version (if applicable) before relying on it in production.
Install
pykodi on PyPI
Before you install
Low install friction with pure-Python dependencies. Maintenance is active with recent commits, though the latest release is from October 2021.
Requires Python 3.7 or above; async/await syntax requires an event loop context.
License in practice
MIT license is permissive and imposes no significant restrictions on use, modification, or distribution.
Quickstart
pip install pykodi
from pykodi import get_kodi_connection, Kodi
kc = get_kodi_connection(host, port, ws_port, ssl, timeout, session, user, password)
await kc.connect()
kodi = Kodi(kc)
await kodi.ping()
Verify before relying
- Whether the package remains compatible with modern Kodi versions beyond its last release in October 2021.
- Whether HomeAssistant integration (its primary design target) continues to work with current versions.
- Active maintenance status despite recent commits—whether the repository is accepting contributions or in maintenance-only mode.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesjsonrpc-asyncjsonrpc-websocketaiohttp |
| Maintenance | Actively maintained 1,756 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,731 / month, #14,938 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: pykodi-0.2.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “kodi remote control python”
- pykodiPyKodi provides an async Python interface to control Kodi media…
- jellyfin-apiclient-pythonPython client library for interacting with Jellyfin media server…
- androidtvremote2A Python library for controlling Android TV devices over the network…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also github-copilot-sdk · samsungtvws · transmission-rpc · jellyfin-apiclient-python · jsonrpcclient · jupyter-kernel-client · ajsonrpc · plexwebsocket · ovs · pyps4-2ndscreen