skybrush_log_analyzer.config
skybrush_log_analyzer.config.Config
dataclass
Application config.
Source code in skybrush_log_analyzer/config.py
account_url
instance-attribute
URL of the Skybrush account that issues API tokens for the API key.
api_key
instance-attribute
The API key, or None when the config has none.
api_url
instance-attribute
URL of the Skybrush Log Analyzer API.
config_dir
instance-attribute
The directory the config was loaded from.
load(config_dir=None)
classmethod
Loads the application config from the given config directory, using the defaults when it has no config file.
Without a config directory, the first one with a config file is used, in this order:
- Project-local:
<current-working-directory>/.skybrush-log-analyzer/ - Global:
<user-config-dir>/skybrush-log-analyzer/
The global one is used when neither has a config file.