--- id: plexwebsocket version: "0.0.14" license: MIT license_treatment: permissive maintenance: dormant --- # plexwebsocket — Support for issuing callbacks in response to Plex websocket updates. License: permissive · Maintenance: dormant · Downloads: 112.1K/mo ## 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 above — verify before relying. Async library that connects to Plex media servers over websockets and triggers callbacks when server events occur, such as playback state changes or status updates. 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 pip install plexwebsocket uv add plexwebsocket poetry add plexwebsocket ## Installing plexwebsocket 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. 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()) Requires a running Plex Media Server instance and valid authentication token; aiohttp must be installed as a runtime dependency. 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: unspecified - Install friction: low - Maintenance: dormant - Downloads: 112.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags plex websocket events, plex server notifications, async plex listener, plex playback callbacks, plex real-time updates, plex event streaming, plex status monitoring, plex-integration, websocket-events, async-io [View on SkillFed](https://skillfed.io/packages/plexwebsocket) · [View on PyPI](https://pypi.org/project/plexwebsocket/)