Module imandrax_api.bindings.session_twirp
Classes
class SessionManagerClient (address,
server_path_prefix: str,
session=<requests.sessions.Session object>,
timeout=5)-
Expand source code
class SessionManagerClient(TwirpClient): def create_session(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/create_session", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("imandrax.session.Session"), **kwargs, ) def open_session(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/open_session", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("Empty"), **kwargs, ) def end_session(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/end_session", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("Empty"), **kwargs, ) def keep_session_alive(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/keep_session_alive", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("Empty"), **kwargs, )
Ancestors
Methods
def create_session(self, *args, ctx, request, **kwargs)
-
Expand source code
def create_session(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/create_session", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("imandrax.session.Session"), **kwargs, )
def end_session(self, *args, ctx, request, **kwargs)
-
Expand source code
def end_session(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/end_session", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("Empty"), **kwargs, )
def keep_session_alive(self, *args, ctx, request, **kwargs)
-
Expand source code
def keep_session_alive(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/keep_session_alive", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("Empty"), **kwargs, )
def open_session(self, *args, ctx, request, **kwargs)
-
Expand source code
def open_session(self, *args, ctx, request, **kwargs): return self._make_request( url=F"{self._server_path_prefix}/imandrax.session.SessionManager/open_session", ctx=ctx, request=request, response_obj=_sym_db.GetSymbol("Empty"), **kwargs, )