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

Method get_token

modelscope/hub/api.py:405–412  ·  view source on GitHub ↗

Deprecated: use :meth:`get_git_token` instead.

()

Source from the content-addressed store, hash-verified

403
404 @staticmethod
405 def get_token() -> Optional[str]:
406 """Deprecated: use :meth:`get_git_token` instead."""
407 import warnings
408 warnings.warn(
409 'ModelScopeConfig.get_token() is deprecated, '
410 'use ModelScopeConfig.get_git_token() instead.',
411 DeprecationWarning, stacklevel=2)
412 return ModelScopeConfig.get_git_token()
413
414 @staticmethod
415 def get_user_agent(user_agent: Union[Dict, str, None] = None) -> str:

Callers

nothing calls this directly

Calls 1

get_git_tokenMethod · 0.80

Tested by

no test coverage detected