schrodinger.application.livedesign.ld_import_utils module

class schrodinger.application.livedesign.ld_import_utils.LDLoginInfo(host, session_id)

Bases: tuple

__contains__(key, /)

Return key in self.


Return len(self).

count(value, /)

Return number of occurrences of value.


Alias for field number 0

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.


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.


ld_login_info – is the login info to be used to create the ldclient.


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.

  • attachment_ids – is list of attachment IDs to download

  • structure_file_path – is the path to the file where structure needs to be written.