cue.config¶
is_frozen ¶
is_frozen() -> bool
True when running from a PyInstaller or Nuitka bundle.
PyInstaller sets sys.frozen; Nuitka doesn't, but its standalone
build drops the executable inside <app>.app/Contents/MacOS/ (or a
sibling run.dist/ on Linux/Windows), so we also treat a non-
Python-interpreter executable path as frozen.
validate_api_key ¶
validate_api_key(key: str) -> str
Validate API key format. Raises RuntimeError if invalid.
Public counterpart of the legacy _validate_key. Callers that want a
non-raising variant can use cue.settings_model.validate_api_key.
change_api_key ¶
change_api_key() -> str
Prompt for a new API key and save it. Public API for menu actions.
streaming_config ¶
streaming_config() -> dict
Return merged streaming config (defaults + user overrides).