MCPcopy Create free account
hub / github.com/Kaggle/docker-python / _is_kaggle_handle

Function _is_kaggle_handle

patches/kaggle_module_resolver.py:13–14  ·  view source on GitHub ↗
(handle)

Source from the content-addressed store, hash-verified

11 return os.getenv("KAGGLE_KERNEL_RUN_TYPE") != None and os.getenv("KAGGLE_USER_SECRETS_TOKEN") != None
12
13def _is_kaggle_handle(handle):
14 return long_url_pattern.match(handle) != None or short_url_pattern.match(handle) != None
15
16class KaggleFileResolver(resolver.HttpResolverBase):
17 def is_supported(self, handle):

Callers 1

is_supportedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected