rekordbox_set_list_manager.utils.config#
Lightweight JSON config for persistent application settings.
Functions#
|
Return config value for key, or default if not set. |
|
Persist value under key. |
Return the list of recently opened file paths (newest first). |
|
|
Add path to the top of the recent-files list (max _MAX_RECENT). |
Module Contents#
- rekordbox_set_list_manager.utils.config.get(key, default=None)[source]#
Return config value for key, or default if not set.
- Parameters:
key (str) – The config key to look up.
default (object) – Value returned when key is absent. Defaults to
None.
- Returns:
The stored value, or default if the key has not been set.
- Return type:
object
- rekordbox_set_list_manager.utils.config.set_value(key, value)[source]#
Persist value under key.
- Parameters:
key (str) – The config key to write.
value (object) – The value to store; must be JSON-serialisable.
- Return type:
None