mediatheque-protocol
Versioned wire protocol shared by the Médiathèque agent and server: JSON envelopes with strict Pydantic payload models, carried over the agent's outbound WebSocket connection.
from mediatheque_protocol import messages as m
frame = m.dumps("hello", m.AgentHello(
agent_id="...", device_token="...", hostname="nas", version="0.2.0",
))
env = m.loads(frame) # rejects unsupported protocol versions
hello = m.parse_payload(env) # validates payload, rejects unknown fields
License
FSL-1.1-MIT — free for nearly all use; converts to MIT two years after each release.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mediatheque_protocol-0.2.0.tar.gz.
File metadata
- Download URL: mediatheque_protocol-0.2.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bbe3d13e0ab0402a46606630848effe5424f918bcedaf18be16dd7d01116cfa
|
|
| MD5 |
e6bcf8cea7306b1a18bb5163f2a5446f
|
|
| BLAKE2b-256 |
f4f0d6d0b2a99a83f4d7fc9f686ad8a322b92ee64fd7ce44753889dfdfbd1eb3
|
File details
Details for the file mediatheque_protocol-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mediatheque_protocol-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8383d90464049b61c4d0525028e1a9e4f96c97d1fe3f4110aafdbf339ed0fda7
|
|
| MD5 |
1b92a9c79f97beee97bc0958ec0cb318
|
|
| BLAKE2b-256 |
790e0b223a99daf7208e6ba878dfceab9f3cebf68ab915d3574d10e518f0e90f
|