MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _env_flag

Function _env_flag

agents/reading-agent/main.py:172–176  ·  view source on GitHub ↗
(name: str, default: bool = False)

Source from the content-addressed store, hash-verified

170
171
172def _env_flag(name: str, default: bool = False) -> bool:
173 raw = os.environ.get(name)
174 if raw is None:
175 return default
176 return raw.strip().lower() not in {"0", "false", "off", "no", ""}
177
178
179def _env_int(name: str, default: int, *, minimum: int = 1, maximum: int = 16) -> int:

Callers 5

_resolve_configured_dirFunction · 0.70
_obsidian_month_dirFunction · 0.70
_mineru_enabledFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected