Skip to main content

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

mediatheque_protocol-0.2.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mediatheque_protocol-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for mediatheque_protocol-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6bbe3d13e0ab0402a46606630848effe5424f918bcedaf18be16dd7d01116cfa
MD5 e6bcf8cea7306b1a18bb5163f2a5446f
BLAKE2b-256 f4f0d6d0b2a99a83f4d7fc9f686ad8a322b92ee64fd7ce44753889dfdfbd1eb3

See more details on using hashes here.

File details

Details for the file mediatheque_protocol-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mediatheque_protocol-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8383d90464049b61c4d0525028e1a9e4f96c97d1fe3f4110aafdbf339ed0fda7
MD5 1b92a9c79f97beee97bc0958ec0cb318
BLAKE2b-256 790e0b223a99daf7208e6ba878dfceab9f3cebf68ab915d3574d10e518f0e90f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page