MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / google_workspace_enabled

Function google_workspace_enabled

graphify/google_workspace.py:25–28  ·  view source on GitHub ↗

Return True when Google Workspace shortcut export is enabled.

(value: str | None = None)

Source from the content-addressed store, hash-verified

23
24
25def google_workspace_enabled(value: str | None = None) -> bool:
26 """Return True when Google Workspace shortcut export is enabled."""
27 raw = value if value is not None else os.environ.get("GRAPHIFY_GOOGLE_WORKSPACE", "")
28 return raw.strip().lower() in {"1", "true", "yes", "on"}
29
30
31def _safe_yaml_str(value: str) -> str:

Callers 1

detectFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected