easyidp.config.set¶
- easyidp.config.set(**kwargs: Any) EasyIDPConfig¶
Update config values and persist JSON immediately.
- Parameters:
**kwargs (Any) – One or more recognised config keys with new values.
- Returns:
Self (fluent API).
- Return type:
- Raises:
KeyError – If any key in kwargs is not recognised.
Examples
>>> from pathlib import Path >>> import tempfile >>> tmp = tempfile.TemporaryDirectory() >>> cfg = EasyIDPConfig(config_path=Path(tmp.name) / "config.json") >>> isinstance(cfg.set(log_level="DEBUG", show_banner=False), EasyIDPConfig) True >>> cfg.get("show_banner") False >>> tmp.cleanup()