schrodinger.application.livedesign.ld_maestro_actions module

schrodinger.application.livedesign.ld_maestro_actions.validate_params(request_json: Dict[str, Union[str, List[str]]], required_params: Tuple[str]) bool

Validates if the given JSON has all the required parameters.

Parameters
  • request_json – The JSON request to be validated.

  • required_params – The list of required parameters to be present in JSON.

Returns

True if all the required parameters are present, False otherwise.

schrodinger.application.livedesign.ld_maestro_actions.validate_request_from_ld(request_json: Dict[str, Union[str, List[str]]]) bool

Validates the given JSON request by checking if it has all the required parameters and if the parameters are valid.

Parameters

request_json – The JSON request to be validated.

Returns

True if the request is valid, False otherwise.

schrodinger.application.livedesign.ld_maestro_actions.ask_disconnect_active_connection() bool

Warn the user about an incompatible login. :return: True if the user wants to disconnect, False otherwise.

schrodinger.application.livedesign.ld_maestro_actions.is_same_user_connected(user: str, host: str) bool

Check if the user is already connected to the given host. :param user: The username to be checked. :param host: The host to be checked. :return: True if the user is already connected to the host, False otherwise.

schrodinger.application.livedesign.ld_maestro_actions.ensure_user_is_logged_in(username: str, host: str) bool

Ensure that the user is logged in to the given host. :param username: The username to be used for authentication. :param host: The host to be used for authentication.

Returns

True if the user is logged in, False otherwise.

schrodinger.application.livedesign.ld_maestro_actions.process_livedesign_request(request_json: str) bool

Handles live design request coming from the live design server. :param request_json: The JSON string containing the request body.

Returns

True if the request is successfully processed, False otherwise.

schrodinger.application.livedesign.ld_maestro_actions.handle_live_design_request(request_json: str)

Handle the live design request coming from the live design FE. :param request_json: The JSON string containing the request body.