Package schrodinger :: Package job :: Module jobapi
[hide private]
[frames] | no frames]

Module jobapi

Classes [hide private]
  JobAPI
Provide access to the Schrodinger Job API.
Functions [hide private]
 
_get(url, **kwargs)
 
_delete(url, **kwargs)
 
_post(url, body=None, **kwargs)
 
_put(url, body=None, **kwargs)
 
_head(url, **kwargs)
 
_response_body(resp, format)
 
_raise_for_status(resp)
Raise an HTTPError if the response failed with a status code >= 400 and < 600.
Variables [hide private]
  JSON_FORMAT = 'application/json'
  PLAIN_FORMAT = 'text/plain'
  FULL_VIEW = 'full'
  INDEX_VIEW = 'index'
  JOBID_VIEW = 'jobid'
  FTYPE_INPUT = 'input'
  FTYPE_OUTPUT = 'output'
  FTYPE_OTHER = 'other'
  OPTION_TRUE = 'true'
  OPTION_FALSE = 'false'
  REQUEST_TIMEOUT = 120
  __package__ = 'schrodinger.job'
Function Details [hide private]

_raise_for_status(resp)

 

Raise an HTTPError if the response failed with a status code >= 400 and < 600. The body of the response is assumed to include more information about the error.

This re-implements the raise_for_status() method from the requests module, but includes the URL and response body in the raised exception.