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

Method get_cookies

modelscope/hub/api.py:354–359  ·  view source on GitHub ↗

Load persisted cookies, returning ``None`` if absent or expired.

()

Source from the content-addressed store, hash-verified

352
353 @staticmethod
354 def get_cookies():
355 """Load persisted cookies, returning ``None`` if absent or expired."""
356 cookies = get_default_config().load_cookies()
357 if cookies is None and not ModelScopeConfig.cookie_expired_warning:
358 ModelScopeConfig.cookie_expired_warning = True
359 return cookies
360
361 @staticmethod
362 def get_user_session_id() -> str:

Callers 6

get_from_cache_msFunction · 0.80
_authorizeMethod · 0.80
__init__Method · 0.80

Calls 1

get_default_configFunction · 0.90

Tested by 1