plexwebsocket
Support for issuing callbacks in response to Plex websocket updates.
Decision gist · record as of 2026-08-14
Yes, if you need real-time Plex server event callbacks and can accept dormant maintenance. The library is simple, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. However, no active development has occurred since 2023-10-09, so compatibility with newer Plex server versions or Python releases is unverified—test thoroughly in your environment before relying on it in production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Plex Media Server instance and valid authentication token; aiohttp must be installed as a runtime dependency.
- Low install friction with a single runtime dependency on aiohttp.
- Maintenance is dormant—last commit was 2023-10-09 and no updates since the initial release—so expect no active bug fixes or feature work, though the repository remains public and unarchived.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions, making it safe to integrate into most projects.
last release 2023-10-09 (1040 days) · last repo commit 2023-10-09 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 112,090 downloads/mo, #12,382 on PyPI
Alternatives
Verify before relying
pip install plexwebsocket
from plexwebsocket import PlexWebsocket, SIGNAL_CONNECTION_STATE
import asyncio
def callback(msgtype, data, error):
print(f"Event: {msgtype}, Data: {data}")
async def main():
ws = PlexWebsocket(plex_server, callback, subscriptions=["playing"])
await ws.listen()
asyncio.run(main())- Whether the library works with current Plex server versions released after 2023-10-09.
- Compatibility with Python versions beyond 3.8 (classifiers list only up to 3.8).
- Whether dormancy indicates known issues or simply stable, maintenance-free code.
- How to properly instantiate PlexWebsocket with a server object in current usage patterns.
What it is and what it does
PlexWebsocket is an async Python library that establishes a persistent websocket connection to a Plex Media Server and emits callbacks when server events occur—such as playback state changes, status updates, or other monitored events. It wraps the underlying websocket protocol and event subscription logic, allowing developers to react to Plex activity in real time without polling.
The library depends on aiohttp for its async HTTP and websocket transport. It is designed for event-driven applications that need to monitor or respond to Plex server activity, such as home automation, media dashboards, or integration layers.
Use it for
- Monitor Plex playback state in real time to trigger home automation routines when media starts or stops.
- Build a dashboard that updates live when Plex server status changes or playback events occur.
- Integrate Plex server events into a larger application that needs to react to media activity.
- Log or audit Plex server activity by subscribing to status and playing events.
- Synchronize external systems with Plex playback state without polling the server.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need real-time Plex server event callbacks and can accept dormant maintenance.
The library is simple, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. However, no active development has occurred since 2023-10-09, so compatibility with newer Plex server versions or Python releases is unverified—test thoroughly in your environment before relying on it in production.
Install
plexwebsocket on PyPI
Before you install
Low install friction with a single runtime dependency on aiohttp. Maintenance is dormant—last commit was 2023-10-09 and no updates since the initial release—so expect no active bug fixes or feature work, though the repository remains public and unarchived.
Requires a running Plex Media Server instance and valid authentication token; aiohttp must be installed as a runtime dependency.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions, making it safe to integrate into most projects.
Quickstart
pip install plexwebsocket
from plexwebsocket import PlexWebsocket, SIGNAL_CONNECTION_STATE
import asyncio
def callback(msgtype, data, error):
print(f"Event: {msgtype}, Data: {data}")
async def main():
ws = PlexWebsocket(plex_server, callback, subscriptions=["playing"])
await ws.listen()
asyncio.run(main())
Verify before relying
- Whether the library works with current Plex server versions released after 2023-10-09.
- Compatibility with Python versions beyond 3.8 (classifiers list only up to 3.8).
- Whether dormancy indicates known issues or simply stable, maintenance-free code.
- How to properly instantiate PlexWebsocket with a server object in current usage patterns.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageaiohttp |
| Maintenance | Dormant 1,040 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 112,090 / month, #12,382 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 LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8 |
Evidence: plexwebsocket-0.0.14-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 › “plex websocket events”
- plexwebsocketAsync library that connects to Plex media servers over websockets and…
- PlexAPIUnofficial Python bindings for the Plex API that let you…
- plexauthHandles authorization flow to obtain tokens from Plex.tv via external…
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 PlexAPI · moonraker-api · sonos-websocket · aiopyarr · plexauth · lomond · roonapi · directv · websockets · rokuecp