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