schrodinger.application.livedesign.ld_import_utils module¶
- class schrodinger.application.livedesign.ld_import_utils.LDLoginInfo(host, refresh_token)¶
Bases:
tuple
- __contains__(key, /)¶
Return key in self.
- __len__()¶
Return len(self).
- count(value, /)¶
Return number of occurrences of value.
- host¶
Alias for field number 0
- index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.
- refresh_token¶
Alias for field number 1
- schrodinger.application.livedesign.ld_import_utils.get_ldclient(ld_login_info: schrodinger.application.livedesign.ld_import_utils.LDLoginInfo) schrodinger.application.livedesign.ldclient_proxy.LDClientProxy ¶
Downloads and installs ldclient from the ld_login_info and cleans up the download directory once the context is exited. It yields the LDClientProxy object. This should not be used if there already exists a livedesign connection.
- Parameters
ld_login_info – is the login info to be used to create the ldclient.
- Returns
the ldclient proxy object
- schrodinger.application.livedesign.ld_import_utils.generate_structure_file_via_ldclient(attachment_ids: List[str], structure_file_path: str)¶
Creates structure file with structures from the LD server via LDClient for given attachment ids.
- Parameters
attachment_ids – is list of attachment IDs to download
structure_file_path – is the path to the file where structure needs to be written.