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

Function set_kaggle_user_agent

patches/kaggle_gcp.py:231–237  ·  view source on GitHub ↗
(client_info: ClientInfo)

Source from the content-addressed store, hash-verified

229 logging.info(f"Client patched: {client_klass}")
230
231def set_kaggle_user_agent(client_info: ClientInfo):
232 # Add kaggle client user agent in order to attribute usage.
233 if client_info is None:
234 client_info = ClientInfo(user_agent=KAGGLE_GCP_CLIENT_USER_AGENT)
235 else:
236 client_info.user_agent = KAGGLE_GCP_CLIENT_USER_AGENT
237 return client_info
238
239def init_gcs():
240 from google.cloud import storage

Callers 2

monkeypatch_bqFunction · 0.85
patched_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected