MCPcopy Create free account
hub / github.com/mlco2/codecarbon / _save_credentials

Function _save_credentials

codecarbon/cli/auth.py:87–90  ·  view source on GitHub ↗

Save OAuth tokens to the local credentials file.

(tokens)

Source from the content-addressed store, hash-verified

85
86
87def _save_credentials(tokens):
88 """Save OAuth tokens to the local credentials file."""
89 with open(_CREDENTIALS_FILE, "w") as f:
90 json.dump(tokens, f)
91
92
93def _load_credentials():

Callers 2

authorizeFunction · 0.85
get_access_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…