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

Function _env_bool

deployments/desktop/shared/agents.py:359–363  ·  view source on GitHub ↗
(name: str, default: bool = False)

Source from the content-addressed store, hash-verified

357
358
359def _env_bool(name: str, default: bool = False) -> bool:
360 raw = os.environ.get(name)
361 if raw is None:
362 return default
363 return raw.strip().lower() in {"1", "true", "yes", "on"}
364
365
366def _env_int(name: str, default: int, *, min_value: int = 1, max_value: int = 100000) -> int:

Callers 5

settingsFunction · 0.70
create_reading_reportsFunction · 0.70
read_arxivFunction · 0.70
read_local_pdfFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected