Skip to content

pb_client.models

What the service says, as types rather than as dictionaries.

Every one of these is built from a wire payload with from_wire and is missing-field tolerant, because the service on the other end can be older or newer than this client: it outlives the install that started it. A field this build has never heard of is ignored, and one it expects but does not get takes a sensible default, so a version difference narrows what a command can say rather than stopping it from running.

Classes

  • Choice -- The hub that commands act on when none is named.
  • DeviceInfo -- A hub seen while scanning.
  • Downloaded -- Where a program ended up on the hub.
  • HubInfo -- A connected hub.
  • ServiceInfo -- What the service reports about itself.
  • UnusableAdapter -- A Bluetooth adapter a scan could not use, and why.