pygate-gRPC icon indicating copy to clipboard operation
pygate-gRPC copied to clipboard

Return dict not protobuf message for ffs.default_config()

Open peterVG opened this issue 4 years ago • 0 comments

Right now the user of the grpc-client has to import and use MessageToDict() from google.protobuf.json_format to convert the protobuf message to a Python dictionary. This should be abstracted away and done in the client which should just return a dictionary to the script calling ffs.default_config().

Note, this has already been done for the ffs.set_default_config() method. See https://github.com/pygate/pygate-gRPC/blob/84554d50fe6fabe259b45e4acd889aebe23ae308/pygate_grpc/ffs.py#L84

peterVG avatar Aug 05 '20 19:08 peterVG