kaggle 1.8.0__py3-none-any.whl → 1.8.3__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 (128) hide show
  1. kaggle/__init__.py +1 -1
  2. kaggle/api/kaggle_api_extended.py +24 -2
  3. {kaggle-1.8.0.dist-info → kaggle-1.8.3.dist-info}/METADATA +4 -3
  4. kaggle-1.8.3.dist-info/RECORD +28 -0
  5. {kaggle-1.8.0.dist-info → kaggle-1.8.3.dist-info}/WHEEL +1 -1
  6. kaggle-1.8.0.dist-info/RECORD +0 -148
  7. kagglesdk/LICENSE +0 -201
  8. kagglesdk/__init__.py +0 -6
  9. kagglesdk/admin/__init__.py +0 -0
  10. kagglesdk/admin/services/__init__.py +0 -0
  11. kagglesdk/admin/services/inbox_file_service.py +0 -22
  12. kagglesdk/admin/types/__init__.py +0 -0
  13. kagglesdk/admin/types/inbox_file_service.py +0 -74
  14. kagglesdk/benchmarks/__init__.py +0 -0
  15. kagglesdk/benchmarks/services/__init__.py +0 -0
  16. kagglesdk/benchmarks/services/benchmarks_api_service.py +0 -19
  17. kagglesdk/benchmarks/types/__init__.py +0 -0
  18. kagglesdk/benchmarks/types/benchmark_types.py +0 -307
  19. kagglesdk/benchmarks/types/benchmarks_api_service.py +0 -243
  20. kagglesdk/blobs/__init__.py +0 -0
  21. kagglesdk/blobs/services/__init__.py +0 -0
  22. kagglesdk/blobs/services/blob_api_service.py +0 -25
  23. kagglesdk/blobs/types/__init__.py +0 -0
  24. kagglesdk/blobs/types/blob_api_service.py +0 -177
  25. kagglesdk/common/__init__.py +0 -0
  26. kagglesdk/common/services/__init__.py +0 -0
  27. kagglesdk/common/services/operations_service.py +0 -46
  28. kagglesdk/common/types/__init__.py +0 -0
  29. kagglesdk/common/types/file_download.py +0 -102
  30. kagglesdk/common/types/http_redirect.py +0 -105
  31. kagglesdk/common/types/operations.py +0 -194
  32. kagglesdk/common/types/operations_service.py +0 -48
  33. kagglesdk/community/__init__.py +0 -0
  34. kagglesdk/community/types/__init__.py +0 -0
  35. kagglesdk/community/types/content_enums.py +0 -44
  36. kagglesdk/community/types/organization.py +0 -410
  37. kagglesdk/competitions/__init__.py +0 -0
  38. kagglesdk/competitions/services/__init__.py +0 -0
  39. kagglesdk/competitions/services/competition_api_service.py +0 -178
  40. kagglesdk/competitions/types/__init__.py +0 -0
  41. kagglesdk/competitions/types/competition.py +0 -14
  42. kagglesdk/competitions/types/competition_api_service.py +0 -2393
  43. kagglesdk/competitions/types/competition_enums.py +0 -53
  44. kagglesdk/competitions/types/search_competitions.py +0 -28
  45. kagglesdk/competitions/types/submission_status.py +0 -9
  46. kagglesdk/datasets/__init__.py +0 -0
  47. kagglesdk/datasets/databundles/__init__.py +0 -0
  48. kagglesdk/datasets/databundles/types/__init__.py +0 -0
  49. kagglesdk/datasets/databundles/types/databundle_api_types.py +0 -540
  50. kagglesdk/datasets/services/__init__.py +0 -0
  51. kagglesdk/datasets/services/dataset_api_service.py +0 -195
  52. kagglesdk/datasets/types/__init__.py +0 -0
  53. kagglesdk/datasets/types/dataset_api_service.py +0 -3047
  54. kagglesdk/datasets/types/dataset_enums.py +0 -103
  55. kagglesdk/datasets/types/dataset_service.py +0 -145
  56. kagglesdk/datasets/types/dataset_types.py +0 -646
  57. kagglesdk/datasets/types/search_datasets.py +0 -6
  58. kagglesdk/discussions/__init__.py +0 -0
  59. kagglesdk/discussions/types/__init__.py +0 -0
  60. kagglesdk/discussions/types/search_discussions.py +0 -43
  61. kagglesdk/discussions/types/writeup_enums.py +0 -11
  62. kagglesdk/education/__init__.py +0 -0
  63. kagglesdk/education/services/__init__.py +0 -0
  64. kagglesdk/education/services/education_api_service.py +0 -19
  65. kagglesdk/education/types/__init__.py +0 -0
  66. kagglesdk/education/types/education_api_service.py +0 -248
  67. kagglesdk/education/types/education_service.py +0 -139
  68. kagglesdk/kaggle_client.py +0 -101
  69. kagglesdk/kaggle_creds.py +0 -148
  70. kagglesdk/kaggle_env.py +0 -104
  71. kagglesdk/kaggle_http_client.py +0 -261
  72. kagglesdk/kaggle_oauth.py +0 -200
  73. kagglesdk/kaggle_object.py +0 -344
  74. kagglesdk/kernels/__init__.py +0 -0
  75. kagglesdk/kernels/services/__init__.py +0 -0
  76. kagglesdk/kernels/services/kernels_api_service.py +0 -146
  77. kagglesdk/kernels/types/__init__.py +0 -0
  78. kagglesdk/kernels/types/kernels_api_service.py +0 -2451
  79. kagglesdk/kernels/types/kernels_enums.py +0 -39
  80. kagglesdk/kernels/types/search_kernels.py +0 -6
  81. kagglesdk/licenses/__init__.py +0 -0
  82. kagglesdk/licenses/types/__init__.py +0 -0
  83. kagglesdk/licenses/types/licenses_types.py +0 -182
  84. kagglesdk/models/__init__.py +0 -0
  85. kagglesdk/models/services/__init__.py +0 -0
  86. kagglesdk/models/services/model_api_service.py +0 -280
  87. kagglesdk/models/services/model_service.py +0 -19
  88. kagglesdk/models/types/__init__.py +0 -0
  89. kagglesdk/models/types/model_api_service.py +0 -4069
  90. kagglesdk/models/types/model_enums.py +0 -68
  91. kagglesdk/models/types/model_service.py +0 -275
  92. kagglesdk/models/types/model_types.py +0 -1338
  93. kagglesdk/models/types/search_models.py +0 -8
  94. kagglesdk/search/__init__.py +0 -0
  95. kagglesdk/search/services/__init__.py +0 -0
  96. kagglesdk/search/services/search_api_service.py +0 -19
  97. kagglesdk/search/types/__init__.py +0 -0
  98. kagglesdk/search/types/search_api_service.py +0 -2435
  99. kagglesdk/search/types/search_content_shared.py +0 -50
  100. kagglesdk/search/types/search_enums.py +0 -45
  101. kagglesdk/search/types/search_service.py +0 -303
  102. kagglesdk/security/__init__.py +0 -0
  103. kagglesdk/security/services/__init__.py +0 -0
  104. kagglesdk/security/services/iam_service.py +0 -31
  105. kagglesdk/security/services/oauth_service.py +0 -58
  106. kagglesdk/security/types/__init__.py +0 -0
  107. kagglesdk/security/types/authentication.py +0 -171
  108. kagglesdk/security/types/iam_service.py +0 -496
  109. kagglesdk/security/types/oauth_service.py +0 -1181
  110. kagglesdk/security/types/roles.py +0 -8
  111. kagglesdk/security/types/security_types.py +0 -159
  112. kagglesdk/test/__init__.py +0 -0
  113. kagglesdk/test/test_client.py +0 -41
  114. kagglesdk/users/__init__.py +0 -0
  115. kagglesdk/users/services/__init__.py +0 -0
  116. kagglesdk/users/services/account_service.py +0 -31
  117. kagglesdk/users/services/group_api_service.py +0 -31
  118. kagglesdk/users/types/__init__.py +0 -0
  119. kagglesdk/users/types/account_service.py +0 -345
  120. kagglesdk/users/types/group_api_service.py +0 -315
  121. kagglesdk/users/types/group_types.py +0 -165
  122. kagglesdk/users/types/groups_enum.py +0 -8
  123. kagglesdk/users/types/progression_service.py +0 -9
  124. kagglesdk/users/types/search_users.py +0 -23
  125. kagglesdk/users/types/user_avatar.py +0 -226
  126. kagglesdk/users/types/users_enums.py +0 -22
  127. {kaggle-1.8.0.dist-info → kaggle-1.8.3.dist-info}/entry_points.txt +0 -0
  128. {kaggle-1.8.0.dist-info → kaggle-1.8.3.dist-info}/licenses/LICENSE.txt +0 -0
@@ -1,646 +0,0 @@
1
- from kagglesdk.kaggle_object import *
2
- from kagglesdk.users.types.users_enums import CollaboratorType
3
- from typing import Optional, List
4
-
5
- class DatasetCollaborator(KaggleObject):
6
- r"""
7
- Attributes:
8
- username (str)
9
- group_slug (str)
10
- role (CollaboratorType)
11
- """
12
-
13
- def __init__(self):
14
- self._username = None
15
- self._group_slug = None
16
- self._role = CollaboratorType.COLLABORATOR_TYPE_UNSPECIFIED
17
- self._freeze()
18
-
19
- @property
20
- def username(self) -> str:
21
- return self._username or ""
22
-
23
- @username.setter
24
- def username(self, username: str):
25
- if username is None:
26
- del self.username
27
- return
28
- if not isinstance(username, str):
29
- raise TypeError('username must be of type str')
30
- del self.group_slug
31
- self._username = username
32
-
33
- @property
34
- def group_slug(self) -> str:
35
- return self._group_slug or ""
36
-
37
- @group_slug.setter
38
- def group_slug(self, group_slug: str):
39
- if group_slug is None:
40
- del self.group_slug
41
- return
42
- if not isinstance(group_slug, str):
43
- raise TypeError('group_slug must be of type str')
44
- del self.username
45
- self._group_slug = group_slug
46
-
47
- @property
48
- def role(self) -> 'CollaboratorType':
49
- return self._role
50
-
51
- @role.setter
52
- def role(self, role: 'CollaboratorType'):
53
- if role is None:
54
- del self.role
55
- return
56
- if not isinstance(role, CollaboratorType):
57
- raise TypeError('role must be of type CollaboratorType')
58
- self._role = role
59
-
60
-
61
- class DatasetInfo(KaggleObject):
62
- r"""
63
- Attributes:
64
- dataset_id (int)
65
- dataset_slug (str)
66
- owner_user (str)
67
- usability_rating (float)
68
- total_views (int)
69
- total_votes (int)
70
- total_downloads (int)
71
- title (str)
72
- Copy/paste from DatasetSettings below. Can't use composition because
73
- that'd be a backwards-incompatible change for the Python Api.
74
- subtitle (str)
75
- description (str)
76
- is_private (bool)
77
- keywords (str)
78
- licenses (SettingsLicense)
79
- collaborators (DatasetCollaborator)
80
- data (DatasetSettingsFile)
81
- """
82
-
83
- def __init__(self):
84
- self._dataset_id = 0
85
- self._dataset_slug = None
86
- self._owner_user = None
87
- self._usability_rating = None
88
- self._total_views = 0
89
- self._total_votes = 0
90
- self._total_downloads = 0
91
- self._title = None
92
- self._subtitle = None
93
- self._description = None
94
- self._is_private = False
95
- self._keywords = []
96
- self._licenses = []
97
- self._collaborators = []
98
- self._data = []
99
- self._freeze()
100
-
101
- @property
102
- def dataset_id(self) -> int:
103
- return self._dataset_id
104
-
105
- @dataset_id.setter
106
- def dataset_id(self, dataset_id: int):
107
- if dataset_id is None:
108
- del self.dataset_id
109
- return
110
- if not isinstance(dataset_id, int):
111
- raise TypeError('dataset_id must be of type int')
112
- self._dataset_id = dataset_id
113
-
114
- @property
115
- def dataset_slug(self) -> str:
116
- return self._dataset_slug or ""
117
-
118
- @dataset_slug.setter
119
- def dataset_slug(self, dataset_slug: Optional[str]):
120
- if dataset_slug is None:
121
- del self.dataset_slug
122
- return
123
- if not isinstance(dataset_slug, str):
124
- raise TypeError('dataset_slug must be of type str')
125
- self._dataset_slug = dataset_slug
126
-
127
- @property
128
- def owner_user(self) -> str:
129
- return self._owner_user or ""
130
-
131
- @owner_user.setter
132
- def owner_user(self, owner_user: Optional[str]):
133
- if owner_user is None:
134
- del self.owner_user
135
- return
136
- if not isinstance(owner_user, str):
137
- raise TypeError('owner_user must be of type str')
138
- self._owner_user = owner_user
139
-
140
- @property
141
- def usability_rating(self) -> float:
142
- return self._usability_rating or 0.0
143
-
144
- @usability_rating.setter
145
- def usability_rating(self, usability_rating: Optional[float]):
146
- if usability_rating is None:
147
- del self.usability_rating
148
- return
149
- if not isinstance(usability_rating, float):
150
- raise TypeError('usability_rating must be of type float')
151
- self._usability_rating = usability_rating
152
-
153
- @property
154
- def total_views(self) -> int:
155
- return self._total_views
156
-
157
- @total_views.setter
158
- def total_views(self, total_views: int):
159
- if total_views is None:
160
- del self.total_views
161
- return
162
- if not isinstance(total_views, int):
163
- raise TypeError('total_views must be of type int')
164
- self._total_views = total_views
165
-
166
- @property
167
- def total_votes(self) -> int:
168
- return self._total_votes
169
-
170
- @total_votes.setter
171
- def total_votes(self, total_votes: int):
172
- if total_votes is None:
173
- del self.total_votes
174
- return
175
- if not isinstance(total_votes, int):
176
- raise TypeError('total_votes must be of type int')
177
- self._total_votes = total_votes
178
-
179
- @property
180
- def total_downloads(self) -> int:
181
- return self._total_downloads
182
-
183
- @total_downloads.setter
184
- def total_downloads(self, total_downloads: int):
185
- if total_downloads is None:
186
- del self.total_downloads
187
- return
188
- if not isinstance(total_downloads, int):
189
- raise TypeError('total_downloads must be of type int')
190
- self._total_downloads = total_downloads
191
-
192
- @property
193
- def title(self) -> str:
194
- r"""
195
- Copy/paste from DatasetSettings below. Can't use composition because
196
- that'd be a backwards-incompatible change for the Python Api.
197
- """
198
- return self._title or ""
199
-
200
- @title.setter
201
- def title(self, title: Optional[str]):
202
- if title is None:
203
- del self.title
204
- return
205
- if not isinstance(title, str):
206
- raise TypeError('title must be of type str')
207
- self._title = title
208
-
209
- @property
210
- def subtitle(self) -> str:
211
- return self._subtitle or ""
212
-
213
- @subtitle.setter
214
- def subtitle(self, subtitle: Optional[str]):
215
- if subtitle is None:
216
- del self.subtitle
217
- return
218
- if not isinstance(subtitle, str):
219
- raise TypeError('subtitle must be of type str')
220
- self._subtitle = subtitle
221
-
222
- @property
223
- def description(self) -> str:
224
- return self._description or ""
225
-
226
- @description.setter
227
- def description(self, description: Optional[str]):
228
- if description is None:
229
- del self.description
230
- return
231
- if not isinstance(description, str):
232
- raise TypeError('description must be of type str')
233
- self._description = description
234
-
235
- @property
236
- def is_private(self) -> bool:
237
- return self._is_private
238
-
239
- @is_private.setter
240
- def is_private(self, is_private: bool):
241
- if is_private is None:
242
- del self.is_private
243
- return
244
- if not isinstance(is_private, bool):
245
- raise TypeError('is_private must be of type bool')
246
- self._is_private = is_private
247
-
248
- @property
249
- def keywords(self) -> Optional[List[str]]:
250
- return self._keywords
251
-
252
- @keywords.setter
253
- def keywords(self, keywords: Optional[List[str]]):
254
- if keywords is None:
255
- del self.keywords
256
- return
257
- if not isinstance(keywords, list):
258
- raise TypeError('keywords must be of type list')
259
- if not all([isinstance(t, str) for t in keywords]):
260
- raise TypeError('keywords must contain only items of type str')
261
- self._keywords = keywords
262
-
263
- @property
264
- def licenses(self) -> Optional[List[Optional['SettingsLicense']]]:
265
- return self._licenses
266
-
267
- @licenses.setter
268
- def licenses(self, licenses: Optional[List[Optional['SettingsLicense']]]):
269
- if licenses is None:
270
- del self.licenses
271
- return
272
- if not isinstance(licenses, list):
273
- raise TypeError('licenses must be of type list')
274
- if not all([isinstance(t, SettingsLicense) for t in licenses]):
275
- raise TypeError('licenses must contain only items of type SettingsLicense')
276
- self._licenses = licenses
277
-
278
- @property
279
- def collaborators(self) -> Optional[List[Optional['DatasetCollaborator']]]:
280
- return self._collaborators
281
-
282
- @collaborators.setter
283
- def collaborators(self, collaborators: Optional[List[Optional['DatasetCollaborator']]]):
284
- if collaborators is None:
285
- del self.collaborators
286
- return
287
- if not isinstance(collaborators, list):
288
- raise TypeError('collaborators must be of type list')
289
- if not all([isinstance(t, DatasetCollaborator) for t in collaborators]):
290
- raise TypeError('collaborators must contain only items of type DatasetCollaborator')
291
- self._collaborators = collaborators
292
-
293
- @property
294
- def data(self) -> Optional[List[Optional['DatasetSettingsFile']]]:
295
- return self._data
296
-
297
- @data.setter
298
- def data(self, data: Optional[List[Optional['DatasetSettingsFile']]]):
299
- if data is None:
300
- del self.data
301
- return
302
- if not isinstance(data, list):
303
- raise TypeError('data must be of type list')
304
- if not all([isinstance(t, DatasetSettingsFile) for t in data]):
305
- raise TypeError('data must contain only items of type DatasetSettingsFile')
306
- self._data = data
307
-
308
-
309
- class DatasetSettings(KaggleObject):
310
- r"""
311
- Attributes:
312
- title (str)
313
- subtitle (str)
314
- description (str)
315
- is_private (bool)
316
- keywords (str)
317
- licenses (SettingsLicense)
318
- collaborators (DatasetCollaborator)
319
- data (DatasetSettingsFile)
320
- """
321
-
322
- def __init__(self):
323
- self._title = None
324
- self._subtitle = None
325
- self._description = None
326
- self._is_private = False
327
- self._keywords = []
328
- self._licenses = []
329
- self._collaborators = []
330
- self._data = []
331
- self._freeze()
332
-
333
- @property
334
- def title(self) -> str:
335
- return self._title or ""
336
-
337
- @title.setter
338
- def title(self, title: Optional[str]):
339
- if title is None:
340
- del self.title
341
- return
342
- if not isinstance(title, str):
343
- raise TypeError('title must be of type str')
344
- self._title = title
345
-
346
- @property
347
- def subtitle(self) -> str:
348
- return self._subtitle or ""
349
-
350
- @subtitle.setter
351
- def subtitle(self, subtitle: Optional[str]):
352
- if subtitle is None:
353
- del self.subtitle
354
- return
355
- if not isinstance(subtitle, str):
356
- raise TypeError('subtitle must be of type str')
357
- self._subtitle = subtitle
358
-
359
- @property
360
- def description(self) -> str:
361
- return self._description or ""
362
-
363
- @description.setter
364
- def description(self, description: Optional[str]):
365
- if description is None:
366
- del self.description
367
- return
368
- if not isinstance(description, str):
369
- raise TypeError('description must be of type str')
370
- self._description = description
371
-
372
- @property
373
- def is_private(self) -> bool:
374
- return self._is_private
375
-
376
- @is_private.setter
377
- def is_private(self, is_private: bool):
378
- if is_private is None:
379
- del self.is_private
380
- return
381
- if not isinstance(is_private, bool):
382
- raise TypeError('is_private must be of type bool')
383
- self._is_private = is_private
384
-
385
- @property
386
- def keywords(self) -> Optional[List[str]]:
387
- return self._keywords
388
-
389
- @keywords.setter
390
- def keywords(self, keywords: Optional[List[str]]):
391
- if keywords is None:
392
- del self.keywords
393
- return
394
- if not isinstance(keywords, list):
395
- raise TypeError('keywords must be of type list')
396
- if not all([isinstance(t, str) for t in keywords]):
397
- raise TypeError('keywords must contain only items of type str')
398
- self._keywords = keywords
399
-
400
- @property
401
- def licenses(self) -> Optional[List[Optional['SettingsLicense']]]:
402
- return self._licenses
403
-
404
- @licenses.setter
405
- def licenses(self, licenses: Optional[List[Optional['SettingsLicense']]]):
406
- if licenses is None:
407
- del self.licenses
408
- return
409
- if not isinstance(licenses, list):
410
- raise TypeError('licenses must be of type list')
411
- if not all([isinstance(t, SettingsLicense) for t in licenses]):
412
- raise TypeError('licenses must contain only items of type SettingsLicense')
413
- self._licenses = licenses
414
-
415
- @property
416
- def collaborators(self) -> Optional[List[Optional['DatasetCollaborator']]]:
417
- return self._collaborators
418
-
419
- @collaborators.setter
420
- def collaborators(self, collaborators: Optional[List[Optional['DatasetCollaborator']]]):
421
- if collaborators is None:
422
- del self.collaborators
423
- return
424
- if not isinstance(collaborators, list):
425
- raise TypeError('collaborators must be of type list')
426
- if not all([isinstance(t, DatasetCollaborator) for t in collaborators]):
427
- raise TypeError('collaborators must contain only items of type DatasetCollaborator')
428
- self._collaborators = collaborators
429
-
430
- @property
431
- def data(self) -> Optional[List[Optional['DatasetSettingsFile']]]:
432
- return self._data
433
-
434
- @data.setter
435
- def data(self, data: Optional[List[Optional['DatasetSettingsFile']]]):
436
- if data is None:
437
- del self.data
438
- return
439
- if not isinstance(data, list):
440
- raise TypeError('data must be of type list')
441
- if not all([isinstance(t, DatasetSettingsFile) for t in data]):
442
- raise TypeError('data must contain only items of type DatasetSettingsFile')
443
- self._data = data
444
-
445
-
446
- class DatasetSettingsFile(KaggleObject):
447
- r"""
448
- Attributes:
449
- name (str)
450
- description (str)
451
- total_bytes (int)
452
- columns (DatasetSettingsFileColumn)
453
- """
454
-
455
- def __init__(self):
456
- self._name = ""
457
- self._description = None
458
- self._total_bytes = 0
459
- self._columns = []
460
- self._freeze()
461
-
462
- @property
463
- def name(self) -> str:
464
- return self._name
465
-
466
- @name.setter
467
- def name(self, name: str):
468
- if name is None:
469
- del self.name
470
- return
471
- if not isinstance(name, str):
472
- raise TypeError('name must be of type str')
473
- self._name = name
474
-
475
- @property
476
- def description(self) -> str:
477
- return self._description or ""
478
-
479
- @description.setter
480
- def description(self, description: Optional[str]):
481
- if description is None:
482
- del self.description
483
- return
484
- if not isinstance(description, str):
485
- raise TypeError('description must be of type str')
486
- self._description = description
487
-
488
- @property
489
- def total_bytes(self) -> int:
490
- return self._total_bytes
491
-
492
- @total_bytes.setter
493
- def total_bytes(self, total_bytes: int):
494
- if total_bytes is None:
495
- del self.total_bytes
496
- return
497
- if not isinstance(total_bytes, int):
498
- raise TypeError('total_bytes must be of type int')
499
- self._total_bytes = total_bytes
500
-
501
- @property
502
- def columns(self) -> Optional[List[Optional['DatasetSettingsFileColumn']]]:
503
- return self._columns
504
-
505
- @columns.setter
506
- def columns(self, columns: Optional[List[Optional['DatasetSettingsFileColumn']]]):
507
- if columns is None:
508
- del self.columns
509
- return
510
- if not isinstance(columns, list):
511
- raise TypeError('columns must be of type list')
512
- if not all([isinstance(t, DatasetSettingsFileColumn) for t in columns]):
513
- raise TypeError('columns must contain only items of type DatasetSettingsFileColumn')
514
- self._columns = columns
515
-
516
-
517
- class DatasetSettingsFileColumn(KaggleObject):
518
- r"""
519
- Attributes:
520
- name (str)
521
- description (str)
522
- type (str)
523
- """
524
-
525
- def __init__(self):
526
- self._name = ""
527
- self._description = None
528
- self._type = None
529
- self._freeze()
530
-
531
- @property
532
- def name(self) -> str:
533
- return self._name
534
-
535
- @name.setter
536
- def name(self, name: str):
537
- if name is None:
538
- del self.name
539
- return
540
- if not isinstance(name, str):
541
- raise TypeError('name must be of type str')
542
- self._name = name
543
-
544
- @property
545
- def description(self) -> str:
546
- return self._description or ""
547
-
548
- @description.setter
549
- def description(self, description: Optional[str]):
550
- if description is None:
551
- del self.description
552
- return
553
- if not isinstance(description, str):
554
- raise TypeError('description must be of type str')
555
- self._description = description
556
-
557
- @property
558
- def type(self) -> str:
559
- return self._type or ""
560
-
561
- @type.setter
562
- def type(self, type: Optional[str]):
563
- if type is None:
564
- del self.type
565
- return
566
- if not isinstance(type, str):
567
- raise TypeError('type must be of type str')
568
- self._type = type
569
-
570
-
571
- class SettingsLicense(KaggleObject):
572
- r"""
573
- Attributes:
574
- name (str)
575
- """
576
-
577
- def __init__(self):
578
- self._name = None
579
- self._freeze()
580
-
581
- @property
582
- def name(self) -> str:
583
- return self._name or ""
584
-
585
- @name.setter
586
- def name(self, name: Optional[str]):
587
- if name is None:
588
- del self.name
589
- return
590
- if not isinstance(name, str):
591
- raise TypeError('name must be of type str')
592
- self._name = name
593
-
594
-
595
- DatasetCollaborator._fields = [
596
- FieldMetadata("username", "username", "_username", str, None, PredefinedSerializer(), optional=True),
597
- FieldMetadata("groupSlug", "group_slug", "_group_slug", str, None, PredefinedSerializer(), optional=True),
598
- FieldMetadata("role", "role", "_role", CollaboratorType, CollaboratorType.COLLABORATOR_TYPE_UNSPECIFIED, EnumSerializer()),
599
- ]
600
-
601
- DatasetInfo._fields = [
602
- FieldMetadata("datasetId", "dataset_id", "_dataset_id", int, 0, PredefinedSerializer()),
603
- FieldMetadata("datasetSlug", "dataset_slug", "_dataset_slug", str, None, PredefinedSerializer(), optional=True),
604
- FieldMetadata("ownerUser", "owner_user", "_owner_user", str, None, PredefinedSerializer(), optional=True),
605
- FieldMetadata("usabilityRating", "usability_rating", "_usability_rating", float, None, PredefinedSerializer(), optional=True),
606
- FieldMetadata("totalViews", "total_views", "_total_views", int, 0, PredefinedSerializer()),
607
- FieldMetadata("totalVotes", "total_votes", "_total_votes", int, 0, PredefinedSerializer()),
608
- FieldMetadata("totalDownloads", "total_downloads", "_total_downloads", int, 0, PredefinedSerializer()),
609
- FieldMetadata("title", "title", "_title", str, None, PredefinedSerializer(), optional=True),
610
- FieldMetadata("subtitle", "subtitle", "_subtitle", str, None, PredefinedSerializer(), optional=True),
611
- FieldMetadata("description", "description", "_description", str, None, PredefinedSerializer(), optional=True),
612
- FieldMetadata("isPrivate", "is_private", "_is_private", bool, False, PredefinedSerializer()),
613
- FieldMetadata("keywords", "keywords", "_keywords", str, [], ListSerializer(PredefinedSerializer())),
614
- FieldMetadata("licenses", "licenses", "_licenses", SettingsLicense, [], ListSerializer(KaggleObjectSerializer())),
615
- FieldMetadata("collaborators", "collaborators", "_collaborators", DatasetCollaborator, [], ListSerializer(KaggleObjectSerializer())),
616
- FieldMetadata("data", "data", "_data", DatasetSettingsFile, [], ListSerializer(KaggleObjectSerializer())),
617
- ]
618
-
619
- DatasetSettings._fields = [
620
- FieldMetadata("title", "title", "_title", str, None, PredefinedSerializer(), optional=True),
621
- FieldMetadata("subtitle", "subtitle", "_subtitle", str, None, PredefinedSerializer(), optional=True),
622
- FieldMetadata("description", "description", "_description", str, None, PredefinedSerializer(), optional=True),
623
- FieldMetadata("isPrivate", "is_private", "_is_private", bool, False, PredefinedSerializer()),
624
- FieldMetadata("keywords", "keywords", "_keywords", str, [], ListSerializer(PredefinedSerializer())),
625
- FieldMetadata("licenses", "licenses", "_licenses", SettingsLicense, [], ListSerializer(KaggleObjectSerializer())),
626
- FieldMetadata("collaborators", "collaborators", "_collaborators", DatasetCollaborator, [], ListSerializer(KaggleObjectSerializer())),
627
- FieldMetadata("data", "data", "_data", DatasetSettingsFile, [], ListSerializer(KaggleObjectSerializer())),
628
- ]
629
-
630
- DatasetSettingsFile._fields = [
631
- FieldMetadata("name", "name", "_name", str, "", PredefinedSerializer()),
632
- FieldMetadata("description", "description", "_description", str, None, PredefinedSerializer(), optional=True),
633
- FieldMetadata("totalBytes", "total_bytes", "_total_bytes", int, 0, PredefinedSerializer()),
634
- FieldMetadata("columns", "columns", "_columns", DatasetSettingsFileColumn, [], ListSerializer(KaggleObjectSerializer())),
635
- ]
636
-
637
- DatasetSettingsFileColumn._fields = [
638
- FieldMetadata("name", "name", "_name", str, "", PredefinedSerializer()),
639
- FieldMetadata("description", "description", "_description", str, None, PredefinedSerializer(), optional=True),
640
- FieldMetadata("type", "type", "_type", str, None, PredefinedSerializer(), optional=True),
641
- ]
642
-
643
- SettingsLicense._fields = [
644
- FieldMetadata("name", "name", "_name", str, None, PredefinedSerializer(), optional=True),
645
- ]
646
-
@@ -1,6 +0,0 @@
1
- import enum
2
-
3
- class SearchDatasetsOrderBy(enum.Enum):
4
- SEARCH_DATASETS_ORDER_BY_UNSPECIFIED = 0
5
- SEARCH_DATASETS_ORDER_BY_USABILITY_RATING = 1
6
-
File without changes
File without changes
@@ -1,43 +0,0 @@
1
- import enum
2
-
3
- class SearchDiscussionsOrderBy(enum.Enum):
4
- SEARCH_DISCUSSIONS_ORDER_BY_UNSPECIFIED = 0
5
- SEARCH_DISCUSSIONS_ORDER_BY_LAST_TOPIC_COMMENT_DATE = 1
6
-
7
- class SearchDiscussionsDocumentType(enum.Enum):
8
- SEARCH_DISCUSSIONS_DOCUMENT_TYPE_UNSPECIFIED = 0
9
- SEARCH_DISCUSSIONS_DOCUMENT_TYPE_COMMENT = 1
10
- SEARCH_DISCUSSIONS_DOCUMENT_TYPE_TOPIC = 2
11
- SEARCH_DISCUSSIONS_DOCUMENT_TYPE_WRITE_UP = 3
12
-
13
- class SearchDiscussionsSourceType(enum.Enum):
14
- SEARCH_DISCUSSIONS_SOURCE_TYPE_UNSPECIFIED = 0
15
- SEARCH_DISCUSSIONS_SOURCE_TYPE_COMPETITION = 1
16
- SEARCH_DISCUSSIONS_SOURCE_TYPE_DATASET = 2
17
- SEARCH_DISCUSSIONS_SOURCE_TYPE_KERNEL = 4
18
- SEARCH_DISCUSSIONS_SOURCE_TYPE_SITE_FORUM = 5
19
- SEARCH_DISCUSSIONS_SOURCE_TYPE_COMPETITION_SOLUTION = 6
20
- SEARCH_DISCUSSIONS_SOURCE_TYPE_MODEL = 7
21
- SEARCH_DISCUSSIONS_SOURCE_TYPE_WRITE_UP = 8
22
- SEARCH_DISCUSSIONS_SOURCE_TYPE_LEARN_TRACK = 9
23
-
24
- class SearchDiscussionsTopicType(enum.Enum):
25
- SEARCH_DISCUSSIONS_TOPIC_TYPE_UNSPECIFIED = 0
26
- SEARCH_DISCUSSIONS_TOPIC_TYPE_TOPICS = 1
27
- SEARCH_DISCUSSIONS_TOPIC_TYPE_WRITE_UPS = 2
28
-
29
- class WriteUpInclusionType(enum.Enum):
30
- WRITE_UP_INCLUSION_TYPE_UNSPECIFIED = 0
31
- WRITE_UP_INCLUSION_TYPE_EXCLUDE = 1
32
- r"""
33
- Only ForumTopics will be included, while
34
- WriteUps will be excluded
35
- """
36
- WRITE_UP_INCLUSION_TYPE_INCLUDE = 2
37
- """WriteUps and ForumTopics will be included"""
38
- WRITE_UP_INCLUSION_TYPE_ONLY = 3
39
- r"""
40
- Only WriteUps will be included, while
41
- ForumTopics will be excluded
42
- """
43
-
@@ -1,11 +0,0 @@
1
- import enum
2
-
3
- class WriteUpType(enum.Enum):
4
- WRITE_UP_TYPE_UNSPECIFIED = 0
5
- HACKATHON_PROJECT = 1
6
- COMPETITION_SOLUTION = 2
7
- PERSONAL_PROJECT = 3
8
- KNOWLEDGE = 4
9
- FORUM_TOPIC = 5
10
- BLOG = 6
11
-