Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Assign NameStore NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Return BoolOpAnd CompareGtE SubscriptLoad NameLoad Index Num Num CompareGtE SubscriptLoad NameLoad Index Num Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return CompareEq TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Expr Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Str Str Str Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr orelse If CompareIn NameLoad ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Str If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad body Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn AttributeLoad NameLoad attr TupleLoad Num Num body Raise Call NameLoad NameLoad orelse If CompareLtELt Num AttributeLoad NameLoad attr Num body Return NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareLtELt Num AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse If CompareLtELt Num AttributeLoad NameLoad attr Num body Raise Call NameLoad NameLoad orelse Raise Call NameLoad NameLoad decorator_list decorator_list
N/A N/A A connection object to interface with REST services. N/A base64 N/A logging N/A socket N/A sys N/A urllib2 N/A urlparse pyactiveresource formats Error N/A Exception N/A N/A A general error derived from Exception. __init__ N/A N/A self msg url code N/A None None None N/A N/A N/A N/A Exception __init__ self msg N/A N/A self url url N/A N/A self code code N/A N/A ServerError N/A Error N/A N/A An error caused by an ActiveResource server. __init__ N/A N/A self response N/A None N/A N/A N/A response None N/A N/A N/A N/A Error __init__ self N/A response msg N/A response url N/A response code N/A N/A N/A N/A Error __init__ self N/A N/A ConnectionError N/A Error N/A N/A An error caused by network connection. __init__ N/A N/A self response message N/A None None N/A N/A N/A response N/A N/A N/A self response N/A Response None N/A url None N/A N/A N/A self response N/A N/A Response from_httpresponse response N/A url N/A response url N/A N/A message N/A N/A message N/A str N/A self response N/A N/A N/A Error __init__ self message url N/A N/A self response code N/A N/A Redirection N/A ConnectionError N/A N/A HTTP 3xx redirection. N/A N/A ClientError N/A ConnectionError N/A N/A An error caused by an ActiveResource client. N/A N/A ResourceConflict N/A ClientError N/A N/A An error raised when there is a resource conflict. N/A N/A ResourceInvalid N/A ClientError N/A N/A An error raised when a resource is invalid. N/A N/A ResourceNotFound N/A ClientError N/A N/A An error raised when a resource is not found. __init__ N/A N/A self response message N/A None None N/A N/A N/A N/A response None N/A message None N/A N/A message N/A %s: %s N/A N/A response msg N/A response url N/A N/A N/A ClientError __init__ self response response message message N/A N/A BadRequest N/A ClientError N/A N/A An error raised when client sends a bad request. N/A N/A UnauthorizedAccess N/A ClientError N/A N/A An error raised when an access is unauthorized. N/A N/A ForbiddenAccess N/A ClientError N/A N/A An error raised when access is not allowed. N/A N/A MethodNotAllowed N/A ClientError N/A N/A An error raised when a method is not allowed. N/A N/A Request N/A N/A urllib2 Request N/A N/A A request object which allows additional methods. __init__ N/A N/A self N/A args kwargs N/A N/A N/A self _method None N/A N/A N/A N/A urllib2 Request __init__ self args kwargs N/A get_method N/A N/A self N/A N/A N/A Return the HTTP method. N/A N/A N/A self _method N/A N/A N/A N/A N/A urllib2 Request get_method self N/A N/A self _method N/A set_method N/A N/A self method N/A N/A N/A Set the HTTP method. N/A N/A self _method method N/A N/A _urllib_has_timeout N/A N/A N/A N/A N/A Determines if our version of urllib2.urlopen has a timeout argument. N/A version N/A sys version_info N/A N/A N/A N/A version N/A 0 2 N/A N/A version N/A 1 6 N/A Response N/A object N/A N/A Represents a response from the http server. __init__ N/A N/A self code body headers msg response N/A None None N/A N/A Initialize a new Response object.

        code, body, headers, msg are retrievable as instance attributes.
        Individual headers can be retrieved using dictionary syntax (i.e.
        response['header'] => value.

        Args:
            code: The HTTP response code returned by the server.
            body: The body of the response.
            headers: A dictionary of HTTP headers.
            msg: The HTTP message (e.g. 200 OK => 'OK').
            response: The original httplib.HTTPResponse (if any).
         N/A N/A self code code N/A N/A self msg msg N/A N/A self body body N/A N/A headers None N/A N/A headers N/A N/A N/A self headers headers N/A N/A self response response N/A __eq__ N/A N/A self other N/A N/A N/A N/A isinstance other Response N/A N/A N/A N/A N/A self code N/A self body N/A self headers N/A N/A other code N/A other body N/A other headers N/A False N/A __repr__ N/A N/A self N/A N/A N/A N/A Response(code=%s, body="%s", headers=%s, msg="%s") N/A N/A self code N/A self body N/A self headers N/A self msg N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self headers N/A key N/A get N/A N/A self key value N/A None N/A N/A N/A N/A N/A self headers get key value N/A from_httpresponse N/A N/A cls response N/A N/A N/A Create a Response object based on an httplib.HTTPResponse object.

        Args:
            response: An httplib.HTTPResponse object.
        Returns:
            A Response object.
         N/A N/A cls N/A response code N/A N/A response read N/A dict N/A response headers N/A response msg response N/A classmethod N/A Connection N/A object N/A N/A A connection object to interface with REST services. __init__ N/A N/A self site user password timeout format N/A None None None N/A formats XMLFormat N/A N/A Initialize a new Connection object.

        Args:
            site: The base url for connections (e.g. 'http://foo')
            user: username for basic authentication.
            password: password for basic authentication.
            timeout: socket timeout.
            format: format object for en/decoding resource data.
         N/A N/A N/A self site N/A self user N/A self password N/A N/A self _parse_site site N/A N/A self user N/A user N/A self user N/A N/A self password N/A password N/A self password N/A N/A N/A self user N/A self password N/A N/A N/A self auth N/A N/A base64 b64encode N/A %s:%s N/A N/A self user N/A self password N/A N/A N/A self auth None N/A N/A self timeout timeout N/A N/A self log N/A N/A logging getLogger pyactiveresource.connection N/A N/A self format format N/A _parse_site N/A N/A self site N/A N/A N/A Retrieve the auth information and base url for a site.

        Args:
            site: The URL to parse.
        Returns:
            A tuple containing (site, username, password).
         N/A N/A proto host path query fragment N/A N/A urlparse urlsplit site N/A N/A auth_info host N/A N/A urllib2 splituser host N/A N/A auth_info N/A N/A N/A user password N/A None None N/A N/A N/A user password N/A N/A urllib2 splitpasswd auth_info N/A new_site N/A N/A urlparse urlunparse N/A proto host N/A N/A new_site user password N/A _request N/A N/A self url N/A N/A N/A Return a new request object.

        Args:
            url: The url to connect to.
        Returns:
            A Request object.
         N/A N/A Request url N/A _open N/A N/A self method path headers data N/A None None N/A N/A Perform an HTTP request.

        Args:
            method: The HTTP method (GET, PUT, POST, DELETE).
            path: The HTTP path to retrieve.
            headers: A dictionary of HTTP headers to add.
            data: The data to send as the body of the request.
        Returns:
             A Response object.
         N/A url N/A N/A urlparse urljoin N/A self site path N/A N/A N/A N/A self log info %s %s method url N/A request N/A N/A self _request url N/A N/A N/A request set_method method N/A headers N/A N/A N/A key value N/A N/A headers items N/A N/A N/A N/A request add_header key value N/A N/A self auth N/A N/A N/A N/A request add_header Authorization N/A Basic %s N/A self auth N/A N/A request headers N/A N/A header_string N/A N/A join N/A N/A N/A : join N/A k v N/A N/A k v N/A N/A N/A request headers items N/A N/A N/A N/A self log debug request-headers:%s header_string N/A data N/A N/A N/A N/A request add_header Content-Type N/A N/A self format mime_type N/A N/A N/A request add_data data N/A N/A N/A N/A self log debug request-body:%s N/A N/A request get_data N/A N/A N/A method N/A POST PUT N/A N/A N/A N/A request add_header Content-Type N/A N/A self format mime_type N/A N/A N/A request add_header Content-Length 0 N/A N/A N/A self timeout N/A N/A _urllib_has_timeout N/A N/A old_timeout N/A N/A socket getdefaulttimeout N/A N/A N/A socket setdefaulttimeout N/A self timeout N/A N/A N/A http_response None N/A N/A N/A http_response N/A N/A self _handle_error N/A N/A self _urlopen request N/A N/A N/A N/A urllib2 HTTPError N/A err N/A N/A http_response N/A N/A self _handle_error err N/A N/A N/A urllib2 URLError N/A err N/A N/A N/A Error err url N/A response N/A N/A Response from_httpresponse http_response N/A N/A N/A N/A self log debug Response(code=%d, headers=%s, msg="%s") N/A response code N/A response headers N/A response msg N/A N/A http_response N/A N/A N/A N/A http_response close N/A N/A N/A self timeout N/A N/A _urllib_has_timeout N/A N/A N/A N/A socket setdefaulttimeout old_timeout N/A N/A N/A N/A self log info --> %d %s %db N/A response code N/A response msg N/A len N/A response body N/A response N/A _urlopen N/A N/A self request N/A N/A N/A Wrap calls to urllib2 so they can be overriden.

        Args:
            request: A Request object.
        Returns:
            An httplib.HTTPResponse object.
        Raises:
            urllib2.HTTPError on server errors.
            urllib2.URLError on IO errors.
         N/A N/A _urllib_has_timeout N/A N/A N/A N/A urllib2 urlopen request timeout N/A self timeout N/A N/A N/A N/A urllib2 urlopen request N/A get N/A N/A self path headers N/A None N/A N/A Perform an HTTP get request.

        Args:
            path: The HTTP path to retrieve.
            headers: A dictionary of HTTP headers to add.
        Returns:
            A dictionary representing a resource.
         N/A N/A N/A N/A self format decode N/A N/A N/A self _open GET path headers headers body N/A delete N/A N/A self path headers N/A None N/A N/A Perform an HTTP delete request.

        Args:
            path: The HTTP path to retrieve.
            headers: A dictionary of HTTP headers to add.
        Returns:
            A Response object.
         N/A N/A N/A self _open DELETE path headers headers N/A put N/A N/A self path headers data N/A None None N/A N/A Perform an HTTP put request.

        Args:
            path: The HTTP path to retrieve.
            headers: A dictionary of HTTP headers to add.
            data: The data to send as the body of the request.
        Returns:
            A Response object.
         N/A N/A N/A self _open PUT path headers headers data data N/A post N/A N/A self path headers data N/A None None N/A N/A Perform an HTTP post request.

        Args:
            path: The HTTP path to retrieve.
            headers: A dictionary of HTTP headers to add.
            data: The data to send as the body of the request.
        Returns:
            A Response object.
         N/A N/A N/A self _open POST path headers headers data data N/A head N/A N/A self path headers N/A None N/A N/A Perform an HTTP put request.

        Args:
            path: The HTTP path to retrieve.
            headers: A dictionary of HTTP headers to add.
        Returns:
            A Response object.
         N/A N/A N/A self _open HEAD path headers headers N/A _handle_error N/A N/A self err N/A N/A N/A Handle an HTTP error.

        Args:
            err: A urllib2.HTTPError object.
        Returns:
            An HTTP response object if the error is recoverable.
        Raises:
            Redirection: if HTTP error code 301,302 returned.
            BadRequest: if HTTP error code 400 returned.
            UnauthorizedAccess: if HTTP error code 401 returned.
            ForbiddenAccess: if HTTP error code 403 returned.
            ResourceNotFound: if HTTP error code 404 is returned.
            MethodNotAllowed: if HTTP error code 405 is returned.
            ResourceConflict: if HTTP error code 409 is returned.
            ResourceInvalid: if HTTP error code 422 is returned.
            ClientError: if HTTP error code falls in 401 - 499.
            ServerError: if HTTP error code falls in 500 - 599.
            ConnectionError: if unknown HTTP error code returned.
         N/A N/A N/A err code N/A 301 302 N/A N/A N/A Redirection err N/A N/A N/A 200 N/A err code 400 N/A N/A err N/A N/A N/A N/A err code 400 N/A N/A N/A BadRequest err N/A N/A N/A N/A err code 401 N/A N/A N/A UnauthorizedAccess err N/A N/A N/A N/A err code 403 N/A N/A N/A ForbiddenAccess err N/A N/A N/A N/A err code 404 N/A N/A N/A ResourceNotFound err N/A N/A N/A N/A err code 405 N/A N/A N/A MethodNotAllowed err N/A N/A N/A N/A err code 409 N/A N/A N/A ResourceConflict err N/A N/A N/A N/A err code 422 N/A N/A N/A ResourceInvalid err N/A N/A N/A 401 N/A err code 500 N/A N/A N/A ClientError err N/A N/A N/A 500 N/A err code 600 N/A N/A N/A ServerError err N/A N/A N/A ConnectionError err N/A N/A