send_targets.py 469 B

12345678910
  1. """send_message declarations for the Buzz ``PlatformEntry`` (kept out of the adapter module)."""
  2. import re
  3. from gateway.platforms.send_targets import regex_stripped_parser
  4. # Buzz UUIDs are native targets the adapter accepts verbatim — explicit, never home-channel.
  5. _SEND_UUID_RE = re.compile(r"^\s*[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\s*$", re.IGNORECASE)
  6. SEND_ENTRY_KWARGS = {"target_ref_syntax_fn": regex_stripped_parser(_SEND_UUID_RE)}