userkeys¶
Save values on disk
This module makes possible to save values on disk. Values are shared between the Today Widget and the main app. Values are stored in a JSON dictionary, so it’s not possible to save every type of data.
-
userkeys.
delete
(key: str)¶ Deletes the value stored with the given key.
Parameters: key – The key identifying the value to delete.
-
userkeys.
get
(key: str)¶ Returns the value stored with the given key.
Parameters: key – The key identifying the value.
-
userkeys.
set
(value, key: str)¶ Adds the given value to the database with the given key.
Parameters: - value – A JSON compatible value.
- key – The key identifying the value.