The freezerclient.utils
Module¶
-
class
freezerclient.utils.
Namespace
(obj={})[source]¶ Bases:
dict
A dict subclass that exposes its items as attributes.
Warning: Namespace instances do not have direct access to the dict methods.
-
freezerclient.utils.
create_headers_for_request
(token)[source]¶ Create a header dict to be passed to the api.
Parameters: token – token string coming from the api Returns: a dict containing all the headers for a request