dripline.core.interface module

class dripline.core.interface.Interface(dripline_config={}, confirm_retcodes=True)[source]

Bases: _dripline.core.Core

A class on top of dripline.core.Core with more user-friendly methods for dripline interactions. Intended for use as a dripline client in scripts or interactive sessions.

dripline_config (dict): passed to dripline.core.Core to configure connection details confirm_retcodes (bool): if True and if a reply is received with retcode!=0, raise an exception

cmd(endpoint, method, ordered_args=[], keyed_args={}, timeout=0)[source]

[kw]args: endpoint (string): routing key to which an OP_GET will be sent method (string): specifier to add to the message, naming the method to execute arguments (dict): dictionary of arguments to the specified method

get(endpoint, specifier=None, timeout=0)[source]

[kw]args: endpoint (string): routing key to which an OP_GET will be sent specifier (string|None): specifier to add to the message

set(endpoint, value, specifier=None, timeout=0)[source]

[kw]args: endpoint (string): routing key to which an OP_GET will be sent value : value to assign specifier (string|None): specifier to add to the message