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

Method __init__

patches/kaggle_gcp.py:90–93  ·  view source on GitHub ↗
(self, client, **kwargs)

Source from the content-addressed store, hash-verified

88 """Custom Connection class used to proxy the BigQuery client to Kaggle's data proxy."""
89
90 def __init__(self, client, **kwargs):
91 super().__init__(client, **kwargs)
92 self.extra_headers["X-KAGGLE-PROXY-DATA"] = os.getenv(
93 "KAGGLE_DATA_PROXY_TOKEN")
94
95 def api_request(self, *args, **kwargs):
96 """Wrap Connection.api_request in order to handle errors gracefully.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected