Package schrodinger :: Package application :: Package pldb :: Package packages :: Package pldb_gui_shell_dir :: Module client_shell :: Class PLDBSearchClientShell
[hide private]
[frames] | no frames]

Class PLDBSearchClientShell

object --+
         |
        PLDBSearchClientShell

Class to handle HTTP requests

Instance Methods [hide private]
 
__init__(self, host, username, password, password_encrypted=False, widget_parent=None)
Initialze and setup the PLDB search client
 
get_maestro_client(self, tmp_dir=None)
 
check_client_equality(self, maestro_script, query_params)
 
get_server_settings(self, get_encrypted_password=False)
 
invoke_json_request_password(self, uri)
Invokes a GET request with JSON output, returns output of json.loads() on the HTTP response and encrypted password
 
invoke_json_request(self, uri)
Invoke a GET request (with JSON output).
 
__auth_header_data(self)
 
proxy_auth_required(self, proxy, authenticator)
 
config_proxy(self, url)
 
invoke_request(self, path, http_method, headers=None, data=None, raw=False, headers_only=False)
 
invoke_request_base(self, path, http_method, headers=None, data=None, raw=False, headers_only=False, get_encrypted_password=False)
Args: path: e.g.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, host, username, password, password_encrypted=False, widget_parent=None)
(Constructor)

 

Initialze and setup the PLDB search client

Overrides: object.__init__

invoke_json_request(self, uri)

 

Invoke a GET request (with JSON output). Returns output of json.loads() on the HTTP response.

Raises RuntimeError if the request failed.

invoke_request_base(self, path, http_method, headers=None, data=None, raw=False, headers_only=False, get_encrypted_password=False)

 

Args:
    path: e.g. '/api/v1/queries'
    http_method: get/post/update/delete
    data: POST params (string)
    raw: Whether to return the raw data instead of a Python string
    header_only: only the header portion is requested, without the
                 actual content. Should only be used with "get"
                 method. Returns 'Content-Disposition' header value
Returns:
    The response string from the server, with no alterations

Raises:
    RuntimeError if request fails