Skip to content

Commit 9f58c6f

Browse files
washcyclerysteboe
authored andcommitted
Added cert_file to configuration
1 parent 0e102ae commit 9f58c6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kaggle/api/kaggle_api_extended.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class KaggleApi(KaggleApi):
6969
CONFIG_NAME_PATH = 'path'
7070
CONFIG_NAME_USER = 'username'
7171
CONFIG_NAME_KEY = 'key'
72+
CONFIG_NAME_CERT_FILE = 'cert_file'
7273

7374
HEADER_API_VERSION = 'X-Kaggle-ApiVersion'
7475
DATASET_METADATA_FILE = 'dataset-metadata.json'
@@ -170,6 +171,11 @@ def _load_config(self, config_data):
170171
if self.CONFIG_NAME_PROXY in config_data:
171172
configuration.proxy = config_data[self.CONFIG_NAME_PROXY]
172173

174+
# Cert File
175+
176+
if self.CONFIG_NAME_PROXY in config_data:
177+
configuration.cert_file = config_data[self.CONFIG_NAME_CERT_FILE]
178+
173179
# Keep config values with class instance, and load api client!
174180

175181
self.config_values = config_data

0 commit comments

Comments
 (0)