Module Import alias TryExcept body ImportFrom alias alias alias handlers ExceptHandler type NameLoad body ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore ListLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Raise Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareLtELtE Num AttributeLoad NameLoad attr Num body Assign NameStore IfExp CompareEq AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr orelse If CompareLtELtE Num AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIn AttributeLoad NameLoad attr ListLoad Num Num body Return If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Index Num attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr If CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler body Return AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLtELtE Num AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr NameLoad orelse Return decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpAnd SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad If CompareLtELtE Num AttributeLoad NameLoad attr Num body If CompareEq AttributeLoad NameLoad attr Num body Return NameLoad orelse Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str Str NameLoad IfExp CompareIsNot NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A requests N/A N/A urllib.parse urlparse urlsplit urlunsplit N/A N/A N/A ImportError N/A urlparse urlparse urlsplit urlunsplit N/A exceptions serialize Serializer utils url_join iterator copy_kwargs N/A __all__ N/A Resource API ResourceAttributesMixin N/A object N/A N/A 
    A Mixin that allows access to an undefined attribute on a class.
    Instead of raising an attribute error, the undefined attribute will
    return a Resource Instance which can be used to make calls to the
    resource identified by the attribute.

    The type of the resource returned can be overridden by adding a
    resource_class attribute.

    It assumes that a Meta class exists at self._meta with all the required
    attributes.
     __getattr__ N/A N/A self item N/A N/A N/A N/A N/A item startswith _ N/A N/A N/A AttributeError item N/A kwargs N/A copy_kwargs N/A self _store N/A N/A N/A kwargs update N/A base_url N/A url_join N/A N/A self _store N/A base_url item N/A N/A N/A self _get_resource kwargs N/A N/A Resource N/A ResourceAttributesMixin object N/A N/A 
    Resource provides the main functionality behind slumber. It handles the
    attribute -> url, kwarg -> query param, and other related behind the scenes
    python to HTTP transformations. It's goal is to represent a single resource
    which may or may not have children.

    It assumes that a Meta class exists at self._meta with all the required
    attributes.
     __init__ N/A N/A self N/A args kwargs N/A N/A N/A self _store kwargs N/A __call__ N/A N/A self id format url_override N/A None None None N/A N/A 
        Returns a new instance of self modified by one or more of the available
        parameters. These allows us to do things like override format for a
        specific request, and enables the api.resource(ID).get() syntax to get
        a specific resource by it's ID.
         N/A N/A N/A id None N/A format None N/A url_override None N/A N/A self N/A kwargs N/A copy_kwargs N/A self _store N/A N/A id None N/A N/A N/A kwargs N/A base_url N/A url_join N/A N/A self _store N/A base_url id N/A N/A format None N/A N/A N/A kwargs N/A format format N/A N/A url_override None N/A N/A N/A kwargs N/A base_url url_override N/A N/A kwargs N/A session N/A N/A self _store N/A session N/A N/A N/A self _get_resource kwargs N/A _request N/A N/A self method data files params N/A None None None N/A N/A serializer N/A N/A self _store N/A serializer N/A url N/A N/A self url N/A headers N/A accept N/A N/A serializer get_content_type N/A N/A files N/A N/A N/A headers N/A content-type N/A N/A serializer get_content_type N/A N/A data None N/A N/A data N/A N/A serializer dumps data N/A resp N/A N/A N/A N/A self _store N/A session request method url data data params params files files headers headers N/A N/A 400 N/A resp status_code 499 N/A N/A exception_class N/A N/A N/A resp status_code 404 N/A exceptions HttpNotFoundError N/A exceptions HttpClientError N/A N/A exception_class N/A Client Error %s: %s N/A N/A resp status_code url response resp content N/A resp content N/A N/A N/A 500 N/A resp status_code 599 N/A N/A N/A N/A exceptions HttpServerError N/A Server Error %s: %s N/A N/A resp status_code url response resp content N/A resp content N/A N/A self _ resp N/A resp N/A _handle_redirect N/A N/A self resp N/A kwargs N/A N/A resource_obj N/A self url_override N/A N/A resp headers N/A location N/A N/A N/A resource_obj get kwargs N/A _try_to_serialize_response N/A N/A self resp N/A N/A N/A s N/A N/A self _store N/A serializer N/A N/A N/A resp status_code N/A 204 205 N/A N/A N/A N/A N/A N/A N/A resp headers get content-type None N/A resp content N/A N/A content_type N/A N/A N/A N/A N/A N/A N/A N/A resp headers get content-type split ; N/A 0 strip N/A N/A N/A stype N/A N/A s get_serializer content_type content_type N/A N/A N/A N/A exceptions SerializerNotAvailable N/A N/A N/A resp content N/A N/A N/A type N/A resp content bytes N/A N/A N/A N/A encoding N/A N/A N/A requests utils guess_json_utf N/A resp content N/A N/A N/A stype loads N/A N/A N/A resp content decode encoding N/A N/A N/A N/A N/A resp content N/A N/A N/A stype loads N/A resp content N/A N/A N/A resp content N/A _process_response N/A N/A self resp N/A N/A N/A N/A 200 N/A resp status_code 299 N/A N/A N/A N/A self _try_to_serialize_response resp N/A N/A N/A url N/A N/A self N/A N/A N/A url N/A N/A self _store N/A base_url N/A N/A N/A N/A self _store N/A append_slash N/A N/A N/A url endswith / N/A N/A url N/A url / N/A url N/A get N/A N/A self N/A kwargs N/A N/A resp N/A N/A self _request GET params kwargs N/A N/A N/A self _process_response resp N/A options N/A N/A self N/A kwargs N/A N/A resp N/A N/A self _request OPTIONS params kwargs N/A N/A N/A self _process_response resp N/A head N/A N/A self N/A kwargs N/A N/A resp N/A N/A self _request HEAD params kwargs N/A N/A N/A self _process_response resp N/A post N/A N/A self data files N/A None None kwargs N/A N/A resp N/A N/A self _request POST data data files files params kwargs N/A N/A N/A self _process_response resp N/A patch N/A N/A self data files N/A None None kwargs N/A N/A resp N/A N/A self _request PATCH data data files files params kwargs N/A N/A N/A self _process_response resp N/A put N/A N/A self data files N/A None None kwargs N/A N/A resp N/A N/A self _request PUT data data files files params kwargs N/A N/A N/A self _process_response resp N/A delete N/A N/A self N/A kwargs N/A N/A resp N/A N/A self _request DELETE params kwargs N/A N/A 200 N/A resp status_code 299 N/A N/A N/A N/A resp status_code 204 N/A N/A True N/A N/A True N/A N/A False N/A _get_resource N/A N/A self N/A kwargs N/A N/A N/A N/A self __class__ kwargs N/A N/A API N/A ResourceAttributesMixin object N/A N/A resource_class Resource __init__ N/A N/A self base_url auth format append_slash session serializer N/A None None None True None None N/A N/A N/A serializer None N/A N/A serializer N/A Serializer default format N/A N/A session None N/A N/A session N/A N/A requests session N/A N/A auth None N/A N/A N/A session auth auth N/A N/A self _store N/A base_url format append_slash session serializer base_url N/A N/A format None format json append_slash session serializer N/A N/A N/A N/A N/A self _store get base_url None N/A N/A N/A N/A exceptions ImproperlyConfigured base_url is required N/A _get_resource N/A N/A self N/A kwargs N/A N/A N/A N/A self resource_class kwargs N/A N/A