Dictionary storage for OAuth2 Credentials.
DictionaryStorage(dictionary, key, lock=None)¶
Store and retrieve credentials to and from a dictionary-like object.
- dictionary – A dictionary or dictionary-like object.
- key – A string or other hashable. The credentials will be stored in
- lock – An optional threading.Lock-like object. The lock will be acquired before anything is written or read from the dictionary.
Remove the credentials from the dictionary, if they exist.
Retrieve the credentials from the dictionary, if they exist.