Package schrodinger :: Package application :: Package glide :: Module http_client :: Class HTTPClient
[hide private]
[frames] | no frames]

Class HTTPClient

object --+
         |
        HTTPClient

Instance Methods [hide private]
 
__init__(self, con=None, host='localhost', port=8000, timeout=1000)
Initialize a new HTTPClient object.
 
dock(self, ct)
Dock the ligand in Structure object 'ct' using the remote Glide server.
 
ct_to_multipart(self, ct)
Encode a CT in multipart/form-data format, ready to POST.
 
shutdown_server(self)
Ask the Glide HTTP server to shut down.

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, con=None, host='localhost', port=8000, timeout=1000)
(Constructor)

 

Initialize a new HTTPClient object. The optional 'con' is an existing httplib.HTTPConnection object. If not provided, then 'host', 'port', and 'timeout' will be used to create one. The default timeout value is very large to make sure that it is enough for most docking jobs to finish.

Overrides: object.__init__

dock(self, ct)

 

Dock the ligand in Structure object 'ct' using the remote Glide server. Returns an iterator with the output pose(s).

ct_to_multipart(self, ct)

 

Encode a CT in multipart/form-data format, ready to POST. Returns the body of the request and the boundary