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

Function _get_env_int

skills/profile-updater/scripts/update_profile.py:42–47  ·  view source on GitHub ↗
(name: str, default: int)

Source from the content-addressed store, hash-verified

40
41
42def _get_env_int(name: str, default: int) -> int:
43 raw = str(os.environ.get(name, str(default))).strip()
44 try:
45 return max(1, int(raw))
46 except ValueError:
47 return default
48
49
50def _get_env_float(name: str, default: float) -> float:

Callers 2

_drift_configFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected