easyidp.config.reset¶
- easyidp.config.reset() EasyIDPConfig¶
Restore factory defaults and persist JSON immediately.
- Returns:
Self (fluent API).
- Return type:
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"), EasyIDPConfig) True >>> cfg.reset().get("log_level") 'INFO' >>> tmp.cleanup()