The following methods exist within the <install_location>/share/python-api/codeadvisor/api.py file. Use them in your plug-ins to communicate with Code Advisor:
Initialize configuration details for a plug-in.
def __init__(self, plugin_name, author, encoding="PROTOBUF")
Log a message to Code Advisor's log API
def log(self, log_type, message, *args, **kwargs)
Send a message `data` to stream `stream`
def send(self, stream, data)
Subscribe to a stream "plugin:name" with a callback that will be passed the protocol buffer message when it is received
def add_consumer(self, stream, callback)
Add a producer that allows messages to be sent.
def add_producer(self, stream_name)
Setup the api, either printing the config string or launching the stdin worker.
Wait until all stdin messages have been received