()
| 12 | KAGGLE_GCP_CLIENT_USER_AGENT="kaggle-gcp-client/1.0" |
| 13 | |
| 14 | def get_integrations(): |
| 15 | kernel_integrations_var = os.getenv("KAGGLE_KERNEL_INTEGRATIONS") |
| 16 | kernel_integrations = KernelIntegrations() |
| 17 | if kernel_integrations_var is None: |
| 18 | return kernel_integrations |
| 19 | for integration in kernel_integrations_var.split(':'): |
| 20 | try: |
| 21 | target = GcpTarget[integration.upper()] |
| 22 | kernel_integrations.add_integration(target) |
| 23 | except KeyError as e: |
| 24 | logging.debug(f"Unknown integration target: {integration.upper()}") |
| 25 | return kernel_integrations |
| 26 | |
| 27 | |
| 28 | class KernelIntegrations(): |
no test coverage detected