python-plexwebsocket
Async library to react to events issued over Plex websockets.
Example use
import asyncio
import logging
from plexapi.server import PlexServer
from plexwebsocket import PlexWebsocket, SIGNAL_CONNECTION_STATE
logging.basicConfig(level=logging.DEBUG)
baseurl = "http://<PLEX_SERVER_IP>:32400"
token = "<YOUR_TOKEN_HERE>"
plex = PlexServer(baseurl, token)
def print_info(msgtype, data, error):
if msgtype == SIGNAL_CONNECTION_STATE:
print(f"State: {data} / Error: {error}")
else:
print(f"Data: {data}")
async def main():
ws = PlexWebsocket(plex, print_info, subscriptions=["playing", "status"])
await ws.listen()
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Metadata
Release files for plexwebsocket 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plexwebsocket-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for plexwebsocket-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plexwebsocket-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for plexwebsocket-0.1.0-py3-none-any.whl |
Total release size: 10.5 kB
Release files / plexwebsocket-0.1.0.tar.gz
| Download URL | plexwebsocket-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06639f7e2424adb47c2ecb7e0594122b16ce24a36fa00985bd62b4e90452ec9d
|
|
BLAKE2b-256 checksum How to use checksums |
6b80292f729c8b3c8ec320f99a6ed0e704df64dc38c1d7d96b9d1fd7a4cc5a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / plexwebsocket-0.1.0-py3-none-any.whl
| Download URL | plexwebsocket-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ded1da314b42751093348b08af1717b16cfe2e015e1c757a942e641fdfe5631
|
|
BLAKE2b-256 checksum How to use checksums |
80b977fc9d783b4e11a7edef1fd2506ab3ba3571ec09be40d8f2882f6ecf9acb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for plexwebsocket 0.1.0
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.