kaggle 1.7.4.1__py3-none-any.whl → 1.7.4.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. kaggle/api/kaggle_api.py +92 -79
  2. kaggle/api/kaggle_api_extended.py +909 -878
  3. kaggle/configuration.py +3 -3
  4. kaggle/models/dataset_column.py +58 -49
  5. kaggle/models/dataset_new_request.py +47 -31
  6. kaggle/models/dataset_new_version_request.py +56 -31
  7. kaggle/models/dataset_update_settings_request.py +58 -32
  8. kaggle/models/kernel_push_request.py +86 -51
  9. kaggle/models/model_instance_new_version_request.py +20 -12
  10. kaggle/models/model_instance_update_request.py +68 -37
  11. kaggle/models/model_new_instance_request.py +85 -47
  12. kaggle/models/model_new_request.py +26 -19
  13. kaggle/models/model_update_request.py +34 -23
  14. kaggle/models/start_blob_upload_request.py +60 -49
  15. kaggle/models/start_blob_upload_response.py +27 -22
  16. kaggle/models/upload_file.py +33 -31
  17. {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/METADATA +1 -1
  18. {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/RECORD +40 -31
  19. kagglesdk/__init__.py +1 -1
  20. kagglesdk/datasets/types/dataset_api_service.py +16 -0
  21. kagglesdk/kaggle_client.py +12 -0
  22. kagglesdk/kaggle_env.py +9 -11
  23. kagglesdk/kaggle_http_client.py +91 -56
  24. kagglesdk/kaggle_object.py +97 -42
  25. kagglesdk/kernels/types/kernels_api_service.py +24 -0
  26. kagglesdk/models/services/model_api_service.py +7 -6
  27. kagglesdk/models/types/model_api_service.py +31 -15
  28. kagglesdk/security/__init__.py +0 -0
  29. kagglesdk/security/services/__init__.py +0 -0
  30. kagglesdk/security/services/oauth_service.py +32 -0
  31. kagglesdk/security/types/__init__.py +0 -0
  32. kagglesdk/security/types/authentication.py +171 -0
  33. kagglesdk/security/types/oauth_service.py +394 -0
  34. kagglesdk/test/test_client.py +4 -6
  35. kagglesdk/users/services/__init__.py +0 -0
  36. kagglesdk/users/services/account_service.py +19 -0
  37. kagglesdk/users/types/account_service.py +204 -0
  38. {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/WHEEL +0 -0
  39. {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/entry_points.txt +0 -0
  40. {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/licenses/LICENSE.txt +0 -0
@@ -79,11 +79,13 @@ class DatasetNewVersionRequest(object):
79
79
 
80
80
  @property
81
81
  def version_notes(self):
82
- """Gets the version_notes of this DatasetNewVersionRequest. # noqa: E501
82
+ """Gets the version_notes of this DatasetNewVersionRequest. # noqa:
83
+ E501.
83
84
 
84
85
  The version notes for the new dataset version # noqa: E501
85
86
 
86
- :return: The version_notes of this DatasetNewVersionRequest. # noqa: E501
87
+ :return: The version_notes of this DatasetNewVersionRequest. #
88
+ noqa: E501
87
89
  :rtype: str
88
90
  """
89
91
  return self._version_notes
@@ -94,7 +96,8 @@ class DatasetNewVersionRequest(object):
94
96
 
95
97
  The version notes for the new dataset version # noqa: E501
96
98
 
97
- :param version_notes: The version_notes of this DatasetNewVersionRequest. # noqa: E501
99
+ :param version_notes: The version_notes of this
100
+ DatasetNewVersionRequest. # noqa: E501
98
101
  :type: str
99
102
  """
100
103
  if version_notes is None:
@@ -104,11 +107,12 @@ class DatasetNewVersionRequest(object):
104
107
 
105
108
  @property
106
109
  def subtitle(self):
107
- """Gets the subtitle of this DatasetNewVersionRequest. # noqa: E501
110
+ """Gets the subtitle of this DatasetNewVersionRequest. # noqa: E501.
108
111
 
109
112
  The subtitle to set on the dataset # noqa: E501
110
113
 
111
- :return: The subtitle of this DatasetNewVersionRequest. # noqa: E501
114
+ :return: The subtitle of this DatasetNewVersionRequest. # noqa:
115
+ E501
112
116
  :rtype: str
113
117
  """
114
118
  return self._subtitle
@@ -119,7 +123,8 @@ class DatasetNewVersionRequest(object):
119
123
 
120
124
  The subtitle to set on the dataset # noqa: E501
121
125
 
122
- :param subtitle: The subtitle of this DatasetNewVersionRequest. # noqa: E501
126
+ :param subtitle: The subtitle of this DatasetNewVersionRequest.
127
+ # noqa: E501
123
128
  :type: str
124
129
  """
125
130
 
@@ -127,11 +132,13 @@ class DatasetNewVersionRequest(object):
127
132
 
128
133
  @property
129
134
  def description(self):
130
- """Gets the description of this DatasetNewVersionRequest. # noqa: E501
135
+ """Gets the description of this DatasetNewVersionRequest. # noqa:
136
+ E501.
131
137
 
132
138
  The description to set on the dataset # noqa: E501
133
139
 
134
- :return: The description of this DatasetNewVersionRequest. # noqa: E501
140
+ :return: The description of this DatasetNewVersionRequest. #
141
+ noqa: E501
135
142
  :rtype: str
136
143
  """
137
144
  return self._description
@@ -142,7 +149,8 @@ class DatasetNewVersionRequest(object):
142
149
 
143
150
  The description to set on the dataset # noqa: E501
144
151
 
145
- :param description: The description of this DatasetNewVersionRequest. # noqa: E501
152
+ :param description: The description of this
153
+ DatasetNewVersionRequest. # noqa: E501
146
154
  :type: str
147
155
  """
148
156
 
@@ -150,11 +158,13 @@ class DatasetNewVersionRequest(object):
150
158
 
151
159
  @property
152
160
  def files(self):
153
- """Gets the files of this DatasetNewVersionRequest. # noqa: E501
161
+ """Gets the files of this DatasetNewVersionRequest. # noqa: E501.
154
162
 
155
- A list of files that should be associated with the dataset # noqa: E501
163
+ A list of files that should be associated with the dataset #
164
+ noqa: E501
156
165
 
157
- :return: The files of this DatasetNewVersionRequest. # noqa: E501
166
+ :return: The files of this DatasetNewVersionRequest. # noqa:
167
+ E501
158
168
  :rtype: list[UploadFile]
159
169
  """
160
170
  return self._files
@@ -163,9 +173,11 @@ class DatasetNewVersionRequest(object):
163
173
  def files(self, files):
164
174
  """Sets the files of this DatasetNewVersionRequest.
165
175
 
166
- A list of files that should be associated with the dataset # noqa: E501
176
+ A list of files that should be associated with the dataset #
177
+ noqa: E501
167
178
 
168
- :param files: The files of this DatasetNewVersionRequest. # noqa: E501
179
+ :param files: The files of this DatasetNewVersionRequest. #
180
+ noqa: E501
169
181
  :type: list[UploadFile]
170
182
  """
171
183
  if files is None:
@@ -175,11 +187,14 @@ class DatasetNewVersionRequest(object):
175
187
 
176
188
  @property
177
189
  def convert_to_csv(self):
178
- """Gets the convert_to_csv of this DatasetNewVersionRequest. # noqa: E501
190
+ """Gets the convert_to_csv of this DatasetNewVersionRequest. # noqa:
191
+ E501.
179
192
 
180
- Whether or not a tabular dataset should be converted to csv # noqa: E501
193
+ Whether or not a tabular dataset should be converted to csv #
194
+ noqa: E501
181
195
 
182
- :return: The convert_to_csv of this DatasetNewVersionRequest. # noqa: E501
196
+ :return: The convert_to_csv of this DatasetNewVersionRequest. #
197
+ noqa: E501
183
198
  :rtype: bool
184
199
  """
185
200
  return self._convert_to_csv
@@ -188,9 +203,11 @@ class DatasetNewVersionRequest(object):
188
203
  def convert_to_csv(self, convert_to_csv):
189
204
  """Sets the convert_to_csv of this DatasetNewVersionRequest.
190
205
 
191
- Whether or not a tabular dataset should be converted to csv # noqa: E501
206
+ Whether or not a tabular dataset should be converted to csv #
207
+ noqa: E501
192
208
 
193
- :param convert_to_csv: The convert_to_csv of this DatasetNewVersionRequest. # noqa: E501
209
+ :param convert_to_csv: The convert_to_csv of this
210
+ DatasetNewVersionRequest. # noqa: E501
194
211
  :type: bool
195
212
  """
196
213
 
@@ -198,11 +215,13 @@ class DatasetNewVersionRequest(object):
198
215
 
199
216
  @property
200
217
  def category_ids(self):
201
- """Gets the category_ids of this DatasetNewVersionRequest. # noqa: E501
218
+ """Gets the category_ids of this DatasetNewVersionRequest. # noqa:
219
+ E501.
202
220
 
203
221
  A list of tag IDs to associated with the dataset # noqa: E501
204
222
 
205
- :return: The category_ids of this DatasetNewVersionRequest. # noqa: E501
223
+ :return: The category_ids of this DatasetNewVersionRequest. #
224
+ noqa: E501
206
225
  :rtype: list[str]
207
226
  """
208
227
  return self._category_ids
@@ -213,7 +232,8 @@ class DatasetNewVersionRequest(object):
213
232
 
214
233
  A list of tag IDs to associated with the dataset # noqa: E501
215
234
 
216
- :param category_ids: The category_ids of this DatasetNewVersionRequest. # noqa: E501
235
+ :param category_ids: The category_ids of this
236
+ DatasetNewVersionRequest. # noqa: E501
217
237
  :type: list[str]
218
238
  """
219
239
 
@@ -221,11 +241,14 @@ class DatasetNewVersionRequest(object):
221
241
 
222
242
  @property
223
243
  def delete_old_versions(self):
224
- """Gets the delete_old_versions of this DatasetNewVersionRequest. # noqa: E501
244
+ """Gets the delete_old_versions of this DatasetNewVersionRequest. #
245
+ noqa: E501.
225
246
 
226
- Whether or not all previous versions of the dataset should be deleted upon creating the new version # noqa: E501
247
+ Whether or not all previous versions of the dataset should be
248
+ deleted upon creating the new version # noqa: E501
227
249
 
228
- :return: The delete_old_versions of this DatasetNewVersionRequest. # noqa: E501
250
+ :return: The delete_old_versions of this
251
+ DatasetNewVersionRequest. # noqa: E501
229
252
  :rtype: bool
230
253
  """
231
254
  return self._delete_old_versions
@@ -234,16 +257,18 @@ class DatasetNewVersionRequest(object):
234
257
  def delete_old_versions(self, delete_old_versions):
235
258
  """Sets the delete_old_versions of this DatasetNewVersionRequest.
236
259
 
237
- Whether or not all previous versions of the dataset should be deleted upon creating the new version # noqa: E501
260
+ Whether or not all previous versions of the dataset should be
261
+ deleted upon creating the new version # noqa: E501
238
262
 
239
- :param delete_old_versions: The delete_old_versions of this DatasetNewVersionRequest. # noqa: E501
263
+ :param delete_old_versions: The delete_old_versions of this
264
+ DatasetNewVersionRequest. # noqa: E501
240
265
  :type: bool
241
266
  """
242
267
 
243
268
  self._delete_old_versions = delete_old_versions
244
269
 
245
270
  def to_dict(self):
246
- """Returns the model properties as a dict"""
271
+ """Returns the model properties as a dict."""
247
272
  result = {}
248
273
 
249
274
  for attr, _ in six.iteritems(self.project_types):
@@ -267,7 +292,7 @@ class DatasetNewVersionRequest(object):
267
292
  return result
268
293
 
269
294
  def to_str(self):
270
- """Returns the string representation of the model"""
295
+ """Returns the string representation of the model."""
271
296
  return pprint.pformat(self.to_dict())
272
297
 
273
298
  def __repr__(self):
@@ -275,13 +300,13 @@ class DatasetNewVersionRequest(object):
275
300
  return self.to_str()
276
301
 
277
302
  def __eq__(self, other):
278
- """Returns true if both objects are equal"""
303
+ """Returns true if both objects are equal."""
279
304
  if not isinstance(other, DatasetNewVersionRequest):
280
305
  return False
281
306
 
282
307
  return self.__dict__ == other.__dict__
283
308
 
284
309
  def __ne__(self, other):
285
- """Returns true if both objects are not equal"""
310
+ """Returns true if both objects are not equal."""
286
311
  return not self == other
287
312
 
@@ -83,11 +83,12 @@ class DatasetUpdateSettingsRequest(object):
83
83
 
84
84
  @property
85
85
  def title(self):
86
- """Gets the title of this DatasetUpdateSettingsRequest. # noqa: E501
86
+ """Gets the title of this DatasetUpdateSettingsRequest. # noqa: E501.
87
87
 
88
88
  Title of the dataset # noqa: E501
89
89
 
90
- :return: The title of this DatasetUpdateSettingsRequest. # noqa: E501
90
+ :return: The title of this DatasetUpdateSettingsRequest. #
91
+ noqa: E501
91
92
  :rtype: str
92
93
  """
93
94
  return self._title
@@ -98,7 +99,8 @@ class DatasetUpdateSettingsRequest(object):
98
99
 
99
100
  Title of the dataset # noqa: E501
100
101
 
101
- :param title: The title of this DatasetUpdateSettingsRequest. # noqa: E501
102
+ :param title: The title of this DatasetUpdateSettingsRequest. #
103
+ noqa: E501
102
104
  :type: str
103
105
  """
104
106
 
@@ -106,11 +108,13 @@ class DatasetUpdateSettingsRequest(object):
106
108
 
107
109
  @property
108
110
  def subtitle(self):
109
- """Gets the subtitle of this DatasetUpdateSettingsRequest. # noqa: E501
111
+ """Gets the subtitle of this DatasetUpdateSettingsRequest. # noqa:
112
+ E501.
110
113
 
111
114
  Subtitle of the dataset # noqa: E501
112
115
 
113
- :return: The subtitle of this DatasetUpdateSettingsRequest. # noqa: E501
116
+ :return: The subtitle of this DatasetUpdateSettingsRequest. #
117
+ noqa: E501
114
118
  :rtype: str
115
119
  """
116
120
  return self._subtitle
@@ -121,7 +125,8 @@ class DatasetUpdateSettingsRequest(object):
121
125
 
122
126
  Subtitle of the dataset # noqa: E501
123
127
 
124
- :param subtitle: The subtitle of this DatasetUpdateSettingsRequest. # noqa: E501
128
+ :param subtitle: The subtitle of this
129
+ DatasetUpdateSettingsRequest. # noqa: E501
125
130
  :type: str
126
131
  """
127
132
 
@@ -129,11 +134,13 @@ class DatasetUpdateSettingsRequest(object):
129
134
 
130
135
  @property
131
136
  def description(self):
132
- """Gets the description of this DatasetUpdateSettingsRequest. # noqa: E501
137
+ """Gets the description of this DatasetUpdateSettingsRequest. # noqa:
138
+ E501.
133
139
 
134
140
  Decription of the dataset # noqa: E501
135
141
 
136
- :return: The description of this DatasetUpdateSettingsRequest. # noqa: E501
142
+ :return: The description of this DatasetUpdateSettingsRequest. #
143
+ noqa: E501
137
144
  :rtype: str
138
145
  """
139
146
  return self._description
@@ -144,7 +151,8 @@ class DatasetUpdateSettingsRequest(object):
144
151
 
145
152
  Decription of the dataset # noqa: E501
146
153
 
147
- :param description: The description of this DatasetUpdateSettingsRequest. # noqa: E501
154
+ :param description: The description of this
155
+ DatasetUpdateSettingsRequest. # noqa: E501
148
156
  :type: str
149
157
  """
150
158
 
@@ -152,11 +160,13 @@ class DatasetUpdateSettingsRequest(object):
152
160
 
153
161
  @property
154
162
  def is_private(self):
155
- """Gets the is_private of this DatasetUpdateSettingsRequest. # noqa: E501
163
+ """Gets the is_private of this DatasetUpdateSettingsRequest. # noqa:
164
+ E501.
156
165
 
157
166
  Whether or not the dataset should be private # noqa: E501
158
167
 
159
- :return: The is_private of this DatasetUpdateSettingsRequest. # noqa: E501
168
+ :return: The is_private of this DatasetUpdateSettingsRequest. #
169
+ noqa: E501
160
170
  :rtype: bool
161
171
  """
162
172
  return self._is_private
@@ -167,7 +177,8 @@ class DatasetUpdateSettingsRequest(object):
167
177
 
168
178
  Whether or not the dataset should be private # noqa: E501
169
179
 
170
- :param is_private: The is_private of this DatasetUpdateSettingsRequest. # noqa: E501
180
+ :param is_private: The is_private of this
181
+ DatasetUpdateSettingsRequest. # noqa: E501
171
182
  :type: bool
172
183
  """
173
184
 
@@ -175,11 +186,13 @@ class DatasetUpdateSettingsRequest(object):
175
186
 
176
187
  @property
177
188
  def licenses(self):
178
- """Gets the licenses of this DatasetUpdateSettingsRequest. # noqa: E501
189
+ """Gets the licenses of this DatasetUpdateSettingsRequest. # noqa:
190
+ E501.
179
191
 
180
192
  A list of licenses that apply to this dataset # noqa: E501
181
193
 
182
- :return: The licenses of this DatasetUpdateSettingsRequest. # noqa: E501
194
+ :return: The licenses of this DatasetUpdateSettingsRequest. #
195
+ noqa: E501
183
196
  :rtype: list[object]
184
197
  """
185
198
  return self._licenses
@@ -190,7 +203,8 @@ class DatasetUpdateSettingsRequest(object):
190
203
 
191
204
  A list of licenses that apply to this dataset # noqa: E501
192
205
 
193
- :param licenses: The licenses of this DatasetUpdateSettingsRequest. # noqa: E501
206
+ :param licenses: The licenses of this
207
+ DatasetUpdateSettingsRequest. # noqa: E501
194
208
  :type: list[object]
195
209
  """
196
210
 
@@ -198,11 +212,13 @@ class DatasetUpdateSettingsRequest(object):
198
212
 
199
213
  @property
200
214
  def keywords(self):
201
- """Gets the keywords of this DatasetUpdateSettingsRequest. # noqa: E501
215
+ """Gets the keywords of this DatasetUpdateSettingsRequest. # noqa:
216
+ E501.
202
217
 
203
218
  A list of keywords that apply to this dataset # noqa: E501
204
219
 
205
- :return: The keywords of this DatasetUpdateSettingsRequest. # noqa: E501
220
+ :return: The keywords of this DatasetUpdateSettingsRequest. #
221
+ noqa: E501
206
222
  :rtype: list[str]
207
223
  """
208
224
  return self._keywords
@@ -213,7 +229,8 @@ class DatasetUpdateSettingsRequest(object):
213
229
 
214
230
  A list of keywords that apply to this dataset # noqa: E501
215
231
 
216
- :param keywords: The keywords of this DatasetUpdateSettingsRequest. # noqa: E501
232
+ :param keywords: The keywords of this
233
+ DatasetUpdateSettingsRequest. # noqa: E501
217
234
  :type: list[str]
218
235
  """
219
236
 
@@ -221,11 +238,14 @@ class DatasetUpdateSettingsRequest(object):
221
238
 
222
239
  @property
223
240
  def collaborators(self):
224
- """Gets the collaborators of this DatasetUpdateSettingsRequest. # noqa: E501
241
+ """Gets the collaborators of this DatasetUpdateSettingsRequest. #
242
+ noqa: E501.
225
243
 
226
- A list of collaborators that may read or edit this dataset # noqa: E501
244
+ A list of collaborators that may read or edit this dataset #
245
+ noqa: E501
227
246
 
228
- :return: The collaborators of this DatasetUpdateSettingsRequest. # noqa: E501
247
+ :return: The collaborators of this DatasetUpdateSettingsRequest.
248
+ # noqa: E501
229
249
  :rtype: list[object]
230
250
  """
231
251
  return self._collaborators
@@ -234,9 +254,11 @@ class DatasetUpdateSettingsRequest(object):
234
254
  def collaborators(self, collaborators):
235
255
  """Sets the collaborators of this DatasetUpdateSettingsRequest.
236
256
 
237
- A list of collaborators that may read or edit this dataset # noqa: E501
257
+ A list of collaborators that may read or edit this dataset #
258
+ noqa: E501
238
259
 
239
- :param collaborators: The collaborators of this DatasetUpdateSettingsRequest. # noqa: E501
260
+ :param collaborators: The collaborators of this
261
+ DatasetUpdateSettingsRequest. # noqa: E501
240
262
  :type: list[object]
241
263
  """
242
264
 
@@ -244,11 +266,13 @@ class DatasetUpdateSettingsRequest(object):
244
266
 
245
267
  @property
246
268
  def data(self):
247
- """Gets the data of this DatasetUpdateSettingsRequest. # noqa: E501
269
+ """Gets the data of this DatasetUpdateSettingsRequest. # noqa: E501.
248
270
 
249
- A list containing metadata for each file in the dataset # noqa: E501
271
+ A list containing metadata for each file in the dataset # noqa:
272
+ E501
250
273
 
251
- :return: The data of this DatasetUpdateSettingsRequest. # noqa: E501
274
+ :return: The data of this DatasetUpdateSettingsRequest. # noqa:
275
+ E501
252
276
  :rtype: list[object]
253
277
  """
254
278
  return self._data
@@ -257,16 +281,18 @@ class DatasetUpdateSettingsRequest(object):
257
281
  def data(self, data):
258
282
  """Sets the data of this DatasetUpdateSettingsRequest.
259
283
 
260
- A list containing metadata for each file in the dataset # noqa: E501
284
+ A list containing metadata for each file in the dataset # noqa:
285
+ E501
261
286
 
262
- :param data: The data of this DatasetUpdateSettingsRequest. # noqa: E501
287
+ :param data: The data of this DatasetUpdateSettingsRequest. #
288
+ noqa: E501
263
289
  :type: list[object]
264
290
  """
265
291
 
266
292
  self._data = data
267
293
 
268
294
  def to_dict(self):
269
- """Returns the model properties as a dict"""
295
+ """Returns the model properties as a dict."""
270
296
  result = {}
271
297
 
272
298
  for attr, _ in six.iteritems(self.project_types):
@@ -290,7 +316,7 @@ class DatasetUpdateSettingsRequest(object):
290
316
  return result
291
317
 
292
318
  def to_str(self):
293
- """Returns the string representation of the model"""
319
+ """Returns the string representation of the model."""
294
320
  return pprint.pformat(self.to_dict())
295
321
 
296
322
  def __repr__(self):
@@ -298,13 +324,13 @@ class DatasetUpdateSettingsRequest(object):
298
324
  return self.to_str()
299
325
 
300
326
  def __eq__(self, other):
301
- """Returns true if both objects are equal"""
327
+ """Returns true if both objects are equal."""
302
328
  if not isinstance(other, DatasetUpdateSettingsRequest):
303
329
  return False
304
330
 
305
331
  return self.__dict__ == other.__dict__
306
332
 
307
333
  def __ne__(self, other):
308
- """Returns true if both objects are not equal"""
334
+ """Returns true if both objects are not equal."""
309
335
  return not self == other
310
336