nanome.util.config module¶
-
load_settings
()[source]¶ Load settings from different sources, and combine them by priority.
Order of priority for settings: 1) Highest priority are CLI args used at runtime. 2) Then environment variables. 3) Finally, fall back on config file.
-
fetch
(key)[source]¶ - Fetch a configuration valueBuilt-in keys are:host - your NTS server addressport - your NTS server portkey - your NTS key file or stringplugin_files_path - where your plugins will store fileswrite_log_file - if this is True, plugin will write Logs to a local .log file
Parameters: key ( str
) – The key of the config value to fetch