Local

class knut.apis.Local

Interact with the local service.

This class extends the KnutAPI to handle the following requests:

- :const:`LOCAL_REQUEST`
- :const:`LOCAL_RESPONSE`

Only one local service can be connected by setting it using set_local(). The on_change() event of the service is connected to the notifier() method, which triggers the on_push() event with a LOCAL_RESPONSE.

local = None

The Local object.

set_local(local)

Sets local to the local object.