MCPcopy Index your code
hub / github.com/Kaggle/docker-python / KernelIntegrations

Class KernelIntegrations

patches/kaggle_gcp.py:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class KernelIntegrations():
29 def __init__(self):
30 self.integrations = {}
31
32 def add_integration(self, target):
33 self.integrations[target] = True
34
35 def has_integration(self, target):
36 return target in self.integrations
37
38 def has_bigquery(self):
39 return GcpTarget.BIGQUERY in self.integrations
40
41 def has_gcs(self):
42 return GcpTarget.GCS in self.integrations
43
44 def has_cloudai(self):
45 return GcpTarget.CLOUDAI in self.integrations or \
46 GcpTarget.AUTOML in self.integrations
47
48class KaggleKernelCredentials(credentials.Credentials):
49 """Custom Credentials used to authenticate using the Kernel's connected OAuth account.

Callers 1

get_integrationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected