MCPcopy Create free account
hub / github.com/modelscope/modelscope / get_git_token

Method get_git_token

modelscope/hub/api.py:400–402  ·  view source on GitHub ↗

Return the persisted git access token, or ``None`` if not set.

()

Source from the content-addressed store, hash-verified

398
399 @staticmethod
400 def get_git_token() -> Optional[str]:
401 """Return the persisted git access token, or ``None`` if not set."""
402 return get_default_config().load_git_token()
403
404 @staticmethod
405 def get_token() -> Optional[str]:

Callers 3

_authorizeMethod · 0.80
get_tokenMethod · 0.80
_resolve_git_tokenFunction · 0.80

Calls 1

get_default_configFunction · 0.90

Tested by

no test coverage detected