MCPcopy
hub / github.com/datascale-ai/opentalking / _env_bool

Function _env_bool

apps/unified/main.py:69–73  ·  view source on GitHub ↗
(name: str, *, default: bool = False)

Source from the content-addressed store, hash-verified

67
68
69def _env_bool(name: str, *, default: bool = False) -> bool:
70 raw = os.environ.get(name)
71 if raw is None:
72 return default
73 return raw.strip().lower() in {"1", "true", "yes", "on"}
74
75
76async def _prewarm_local_stt_on_startup() -> None:

Callers 1

Calls 1

getMethod · 0.80

Tested by

no test coverage detected