elkpy.SessionController#

class elkpy.sessioncontroller.SessionController(address='localhost:51051', sushi_proto_def='/usr/share/sushi/sushi_rpc.proto')[source]#

Bases: object

A class to save and restore the full state of a sushi session.

Attributes:

_stub (SessionControllerStub): Connection stubs to the session interface implemented in sushi.

restore_binary_session(binary_session: bytes) None[source]#

Restore the sushi session from a previously save session state. This will clear all track and loaded plugins

save_binary_session() bytes[source]#

Save the sushi session.

Returns:

bytes: A bytes object containing the complete state of the sushi session.