schrodinger.application.livedesign.login module

Login page of the Maestro LiveDesign Export GUI.

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.application.livedesign.login.download_ld_client(url, tmp_dir, tar_filename, glob_path, timeout=None)

Download the ld client under tmp_dir. LD client tar will be extracted in tmp_dir/tar_filename.

Parameters
  • url (str) – url of the ld client

  • tmp_dir (str) – Directory under which ld client will be downloaded

  • tar_filename (str) – tar filename of the client (without tar.gz ext)

  • glob_path (str) – glob path with wildcards (ex: ldclient-*)

  • timeout (int or NoneType) – Timeout for the download request (in secs)

Returns

Returns the path to the client

Return type

str

Raises

Exception – Raises RuntimeError in case of any error

schrodinger.application.livedesign.login.remove_previous_existing_files(dirpath, name)

This helper method removed all files and directories matching the given name in the directory specified by dirpath.

Parameters
  • dirpath – Path to the directory under which the files needs to be removed

  • name (str) – to match any files or directories in the form of ‘name*’

schrodinger.application.livedesign.login.get_ld_client() schrodinger.application.livedesign.ldclient_proxy.LDClientProxy

Return the singleton proxy LiveDesign client. Proxy notifies the listeners whenever the connection to the LiveDesign server changes.

LiveDesign login panel manages the connection to the LiveDesign server and ensures the underlying LDClient object is re-initialized.

See ldclient_proxy.LDClientProxy for details.

schrodinger.application.livedesign.login.get_ldclient_models()

Return ldclient.models module from the ldclient package.

schrodinger.application.livedesign.login.get_ldclient_enums()

Return ldclient.enums module from the ldclient package.

schrodinger.application.livedesign.login.get_ldclient_responses()

Return ldclient.responses module from the ldclient package.

schrodinger.application.livedesign.login.get_ldclient_requests()

Return ldclient.requests module from the ldclient package.

schrodinger.application.livedesign.login.format_host(host)

Format the given host. Adds ‘https’ protocol if none, and removes any trailing ‘/’s

Parameters

host (str) – LiveDesign server host

Returns

Formatted host

Return type

str