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
kaggle/__init__.py CHANGED
@@ -3,7 +3,7 @@ from __future__ import absolute_import
3
3
  import os
4
4
  from kaggle.api.kaggle_api_extended import KaggleApi
5
5
 
6
- __version__ = "1.8.0"
6
+ __version__ = "1.8.3"
7
7
 
8
8
  enable_oauth = os.environ.get("KAGGLE_ENABLE_OAUTH") in ("1", "true", "yes")
9
9
  api = KaggleApi(enable_oauth=enable_oauth)
@@ -49,6 +49,7 @@ from slugify import slugify
49
49
  from tqdm import tqdm
50
50
  from urllib3.util.retry import Retry
51
51
  from google.protobuf import field_mask_pb2
52
+ from packaging.version import parse
52
53
 
53
54
  import kaggle
54
55
  from kagglesdk import get_access_token_from_env, KaggleClient, KaggleCredentials, KaggleEnv, KaggleOAuth # type: ignore[attr-defined]
@@ -739,7 +740,7 @@ class KaggleApi:
739
740
  self.CONFIG_NAME_AUTH_METHOD: AuthMethod.ACCESS_TOKEN,
740
741
  }
741
742
  self.logger.debug(f"Authenticated with access token in: {source}")
742
- del os.environ["KAGGLE_API_TOKEN"]
743
+ os.environ.pop("KAGGLE_API_TOKEN", None)
743
744
  return True
744
745
 
745
746
  def _authenticate_with_oauth_creds(self) -> bool:
@@ -1080,11 +1081,12 @@ class KaggleApi:
1080
1081
  username=self.config_values.get(self.CONFIG_NAME_USER),
1081
1082
  password=self.config_values.get(self.CONFIG_NAME_KEY),
1082
1083
  api_token=self.config_values.get(self.CONFIG_NAME_TOKEN),
1084
+ response_processor=self.get_response_processor(),
1083
1085
  )
1084
1086
 
1085
1087
  @staticmethod
1086
1088
  def build_kaggle_client_with_params(
1087
- args: List[str], username: str = None, password: str = None, api_token: str = None
1089
+ args: List[str], username: str = None, password: str = None, api_token: str = None, response_processor=None
1088
1090
  ) -> kagglesdk.kaggle_client.KaggleClient:
1089
1091
  """Builds a Kaggle client with the given parameters.
1090
1092
 
@@ -1093,6 +1095,7 @@ class KaggleApi:
1093
1095
  username (str): The username to use for authentication.
1094
1096
  password (str): The password to use for authentication.
1095
1097
  api_token (str): The API token to use for authentication.
1098
+ response_processor: Callback used to process HTTP response.
1096
1099
 
1097
1100
  Returns:
1098
1101
  kagglesdk.kaggle_client.KaggleClient: A Kaggle client.
@@ -1109,6 +1112,7 @@ class KaggleApi:
1109
1112
  username=username,
1110
1113
  password=password,
1111
1114
  api_token=api_token,
1115
+ response_processor=response_processor,
1112
1116
  )
1113
1117
 
1114
1118
  def camel_to_snake(self, name: str) -> str:
@@ -5200,6 +5204,24 @@ class KaggleApi:
5200
5204
  sys.stdout.write("Please respond with 'yes' or 'no'.\n")
5201
5205
  return False
5202
5206
 
5207
+ def _check_response_version(self, response: Response):
5208
+ if self.already_printed_version_warning:
5209
+ return
5210
+ latest_version_str = response.headers.get("X-Kaggle-APIVersion")
5211
+ if latest_version_str:
5212
+ current_version = parse(kaggle.__version__)
5213
+ latest_version = parse(latest_version_str)
5214
+ if latest_version > current_version:
5215
+ print(
5216
+ f"Warning: Looks like you're using an outdated `kaggle`` "
5217
+ "version (installed: {current_version}), please consider "
5218
+ "upgrading to the latest version ({latest_version_str})"
5219
+ )
5220
+ self.already_printed_version_warning = True
5221
+
5222
+ def get_response_processor(self):
5223
+ return self._check_response_version
5224
+
5203
5225
 
5204
5226
  class TqdmBufferedReader(io.BufferedReader):
5205
5227
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kaggle
3
- Version: 1.8.0
3
+ Version: 1.8.3
4
4
  Summary: Access Kaggle resources anywhere
5
5
  Project-URL: Homepage, https://github.com/Kaggle/kaggle-api
6
6
  Project-URL: Issues, https://github.com/Kaggle/kaggle-api/issues
@@ -214,12 +214,13 @@ Classifier: Programming Language :: Python :: 3
214
214
  Requires-Python: >=3.11
215
215
  Requires-Dist: black>=24.10.0
216
216
  Requires-Dist: bleach
217
- Requires-Dist: kagglesdk
217
+ Requires-Dist: kagglesdk<1.0,>=0.1.14
218
218
  Requires-Dist: mypy>=1.15.0
219
+ Requires-Dist: packaging
219
220
  Requires-Dist: protobuf
221
+ Requires-Dist: python-dateutil
220
222
  Requires-Dist: python-slugify
221
223
  Requires-Dist: requests
222
- Requires-Dist: setuptools>=21.0.0
223
224
  Requires-Dist: six>=1.10
224
225
  Requires-Dist: tqdm
225
226
  Requires-Dist: types-requests
@@ -0,0 +1,28 @@
1
+ kaggle/LICENSE,sha256=PN5H3cwV3xW9nvUXKcB_XOH60cWqne6qK3SAE8NI74s,11340
2
+ kaggle/__init__.py,sha256=MZBt7dmHvg-HKNkn5zDElO9TqRWvQOfncoY2LwdlNc4,280
3
+ kaggle/cli.py,sha256=UJ4GU85AW9jSf2YBjosVwLxrF-6wGUwK8J5DpvwiTeY,69225
4
+ kaggle/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ kaggle/api/kaggle_api.py,sha256=k_Fm5TxiUM6O19dMy43XTdYyBNIWWGWDE9QRf6otwUE,25521
6
+ kaggle/api/kaggle_api_extended.py,sha256=1QnWHi0hviL8EEN--xSSwJCy3xYKEmHDLP3YBkseBYY,222943
7
+ kaggle/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ kaggle/models/api_blob_type.py,sha256=GnTlC0wKfLzraD2MElKvQKZtifxBLfYzbnQocisdkDk,91
9
+ kaggle/models/dataset_column.py,sha256=2oRQkpR2ZE7gDqDubjVSIcfDPV7gPZdbwEbh_LVqpKI,7143
10
+ kaggle/models/dataset_new_request.py,sha256=BLL2iXLN7MWioNTkd0XVtfrbKaGGotOvRqDOGrQEJN4,12825
11
+ kaggle/models/dataset_new_version_request.py,sha256=5P6o-Vdutsl8_jPro0PIZPHUvv69e4_yoeW_NlVnUc0,9631
12
+ kaggle/models/dataset_update_settings_request.py,sha256=CH80sXQyPRC8859IMkAPqrUCYEUqEHKp7v-wLGBc_08,9748
13
+ kaggle/models/kaggle_models_extended.py,sha256=w-IEn0AQvIZRj3ialSoOMOJm8vu48whqte36IdggI7Q,7997
14
+ kaggle/models/kernel_push_request.py,sha256=MOdAi7nE8AzOVKmifMMZ9znu59OTdAeoGr2Ei4YoW1c,19772
15
+ kaggle/models/model_instance_new_version_request.py,sha256=yXbJwOfHOwxAEfoRn3cISjgWZs1reZilKIoh-B7BvJg,4537
16
+ kaggle/models/model_instance_update_request.py,sha256=_2ZRNUcGqosmBvaygR9gxRfg0yDHQFEK70ynjjOJiEY,14732
17
+ kaggle/models/model_new_instance_request.py,sha256=7hmpIGSZ5N01Exepj0RcgEDFLUUOIB4kDmzzdgkP9Ns,17585
18
+ kaggle/models/model_new_request.py,sha256=9T7e5lB0kiSIk91r2KAdvYuBMEgcCimqJ3VW0SjBWb4,9519
19
+ kaggle/models/model_update_request.py,sha256=3VmkLhkPCbjJPO9Jv4lwOrVKgKxDprWno9szbEjgyo0,8619
20
+ kaggle/models/start_blob_upload_request.py,sha256=J0q6_u25Q8WAoBOzpMdi6BGCJqPftb83rmwp5D21n_o,7668
21
+ kaggle/models/start_blob_upload_response.py,sha256=o8y_vJ92QGTSbEzDDWlEvX11ev0hZdPcoD0bXn-0y4w,4516
22
+ kaggle/models/upload_file.py,sha256=_8Y8y3_WFMPsHJJT-eojvLyegcSgbcikzB_x-vty3-4,5072
23
+ kaggle/test/test_authenticate.py,sha256=6HvLhQ4noCXs3hVJpQP-tlSYv1_I9kKfAT2Nu3PeC7Q,1185
24
+ kaggle-1.8.3.dist-info/METADATA,sha256=T64xwwmnHFtZaFAeMivjBtOpCtaogeGGHTwBTfZUe68,16939
25
+ kaggle-1.8.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
26
+ kaggle-1.8.3.dist-info/entry_points.txt,sha256=hl3dQAS4qpVkC5FWiqfnU6qKJU924OEN6PsHEiw-FGg,43
27
+ kaggle-1.8.3.dist-info/licenses/LICENSE.txt,sha256=IzhfWrxIlFAci3lzZCg5WWHZJBI1QSzsHxO0plI63vk,11541
28
+ kaggle-1.8.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,148 +0,0 @@
1
- kaggle/LICENSE,sha256=PN5H3cwV3xW9nvUXKcB_XOH60cWqne6qK3SAE8NI74s,11340
2
- kaggle/__init__.py,sha256=yv7Vf4zGCw_MdYOyMGZHoKANvZfE0DbzAyuGqmXHIo0,280
3
- kaggle/cli.py,sha256=UJ4GU85AW9jSf2YBjosVwLxrF-6wGUwK8J5DpvwiTeY,69225
4
- kaggle/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- kaggle/api/kaggle_api.py,sha256=k_Fm5TxiUM6O19dMy43XTdYyBNIWWGWDE9QRf6otwUE,25521
6
- kaggle/api/kaggle_api_extended.py,sha256=oYH4NMsE5osHM0hKspOe4PzNq0JuQRCMdX8Z7dNgpR4,221880
7
- kaggle/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- kaggle/models/api_blob_type.py,sha256=GnTlC0wKfLzraD2MElKvQKZtifxBLfYzbnQocisdkDk,91
9
- kaggle/models/dataset_column.py,sha256=2oRQkpR2ZE7gDqDubjVSIcfDPV7gPZdbwEbh_LVqpKI,7143
10
- kaggle/models/dataset_new_request.py,sha256=BLL2iXLN7MWioNTkd0XVtfrbKaGGotOvRqDOGrQEJN4,12825
11
- kaggle/models/dataset_new_version_request.py,sha256=5P6o-Vdutsl8_jPro0PIZPHUvv69e4_yoeW_NlVnUc0,9631
12
- kaggle/models/dataset_update_settings_request.py,sha256=CH80sXQyPRC8859IMkAPqrUCYEUqEHKp7v-wLGBc_08,9748
13
- kaggle/models/kaggle_models_extended.py,sha256=w-IEn0AQvIZRj3ialSoOMOJm8vu48whqte36IdggI7Q,7997
14
- kaggle/models/kernel_push_request.py,sha256=MOdAi7nE8AzOVKmifMMZ9znu59OTdAeoGr2Ei4YoW1c,19772
15
- kaggle/models/model_instance_new_version_request.py,sha256=yXbJwOfHOwxAEfoRn3cISjgWZs1reZilKIoh-B7BvJg,4537
16
- kaggle/models/model_instance_update_request.py,sha256=_2ZRNUcGqosmBvaygR9gxRfg0yDHQFEK70ynjjOJiEY,14732
17
- kaggle/models/model_new_instance_request.py,sha256=7hmpIGSZ5N01Exepj0RcgEDFLUUOIB4kDmzzdgkP9Ns,17585
18
- kaggle/models/model_new_request.py,sha256=9T7e5lB0kiSIk91r2KAdvYuBMEgcCimqJ3VW0SjBWb4,9519
19
- kaggle/models/model_update_request.py,sha256=3VmkLhkPCbjJPO9Jv4lwOrVKgKxDprWno9szbEjgyo0,8619
20
- kaggle/models/start_blob_upload_request.py,sha256=J0q6_u25Q8WAoBOzpMdi6BGCJqPftb83rmwp5D21n_o,7668
21
- kaggle/models/start_blob_upload_response.py,sha256=o8y_vJ92QGTSbEzDDWlEvX11ev0hZdPcoD0bXn-0y4w,4516
22
- kaggle/models/upload_file.py,sha256=_8Y8y3_WFMPsHJJT-eojvLyegcSgbcikzB_x-vty3-4,5072
23
- kaggle/test/test_authenticate.py,sha256=6HvLhQ4noCXs3hVJpQP-tlSYv1_I9kKfAT2Nu3PeC7Q,1185
24
- kagglesdk/LICENSE,sha256=PN5H3cwV3xW9nvUXKcB_XOH60cWqne6qK3SAE8NI74s,11340
25
- kagglesdk/__init__.py,sha256=cVrsp13_IEzuEMQvdkoweYR4OWnikodvNyZun2WEZ0M,242
26
- kagglesdk/kaggle_client.py,sha256=-vb8sJi3wXf4X9jgpG6nMCO56sM8FVLlqVFOi5M4Qlc,4412
27
- kagglesdk/kaggle_creds.py,sha256=J3wKGbHWoyXSPZziiQyVu9-2jvAczc1bwaYMUcbAlTo,5312
28
- kagglesdk/kaggle_env.py,sha256=d4jScDoXvCj-oySU9hcU7u8eIaFQRHxCV9B2iwh_IH4,3067
29
- kagglesdk/kaggle_http_client.py,sha256=NjaMCaU9yzIsqcO3rg-DJWcLyM-sssJDMnpHB0sUR5o,9065
30
- kagglesdk/kaggle_oauth.py,sha256=vdW-KdvX0TIIIweqN328czG46U-jeiGSov9-h3ad7s4,8042
31
- kagglesdk/kaggle_object.py,sha256=JwWHT9uS_ctEjjXcQQTiE6zR-tygQIz1NmXFtKbRIAI,11527
32
- kagglesdk/admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- kagglesdk/admin/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- kagglesdk/admin/services/inbox_file_service.py,sha256=dbNqDOZChTWolt9eP39M8dPg7AXEXWIwgjLgV8thsik,777
35
- kagglesdk/admin/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- kagglesdk/admin/types/inbox_file_service.py,sha256=zszOGitmdrEMWxizCxOQ27cCwKDWPu8yYQhNHCPPzVA,1996
37
- kagglesdk/benchmarks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- kagglesdk/benchmarks/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- kagglesdk/benchmarks/services/benchmarks_api_service.py,sha256=EqBNqZo5s-rl0X2_PIWsTl7gEaknD59sgbvpvCHj4kQ,765
40
- kagglesdk/benchmarks/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
- kagglesdk/benchmarks/types/benchmark_types.py,sha256=IIxRyK-a1HnhJQE9ii4cK_Ijbqpgjp9HjbC1cUYmx0o,10645
42
- kagglesdk/benchmarks/types/benchmarks_api_service.py,sha256=LmkWesMsRdkoHrblarGlQiD8vd63mRTo4DzN1Q1xA9U,8081
43
- kagglesdk/blobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
- kagglesdk/blobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
- kagglesdk/blobs/services/blob_api_service.py,sha256=_T-YARDs932H7Ymnt7S0ext0pysJH2A6b4UsL3J_tDM,878
46
- kagglesdk/blobs/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
- kagglesdk/blobs/types/blob_api_service.py,sha256=u34tYX-Bvfb2ZnvBvlZ7U-Z54xaep71sT5s6EhgLtYg,5021
48
- kagglesdk/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
- kagglesdk/common/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
- kagglesdk/common/services/operations_service.py,sha256=ADpgTIfVGfXRZCmKILHgK3nIJMmcc_k4CnyK0zYr60A,1971
51
- kagglesdk/common/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
- kagglesdk/common/types/file_download.py,sha256=vTMt1O6g02HWYdGIHHU7LVEa3p4Zb_0nW7KkHQsknjw,2891
53
- kagglesdk/common/types/http_redirect.py,sha256=R1D6BAKsV_8NHDM2AGgnyzGUIlvdOBq53PRX8inleu8,3039
54
- kagglesdk/common/types/operations.py,sha256=Sii_0yVchdqzKG97Uht0OUB96nlcXX-38r1x8y-13h8,6498
55
- kagglesdk/common/types/operations_service.py,sha256=OgkygkqF-76O6CxEzdZyDiiUaKCR1rUk48ERbckkovE,965
56
- kagglesdk/community/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
- kagglesdk/community/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
- kagglesdk/community/types/content_enums.py,sha256=eVqp4hmY98WyKhhlBd8JNUPcI9VVrI2DRq1GsYWWnMM,1311
59
- kagglesdk/community/types/organization.py,sha256=Zw0UblU-QT6g04Zpb5k5EcNI0gZBVjywZnmLK4-moo0,14264
60
- kagglesdk/competitions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
- kagglesdk/competitions/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
- kagglesdk/competitions/services/competition_api_service.py,sha256=pxLaXDJAVNGx3-SVwHdcCflp93u_FqFnqd-LOhMyHoA,7328
63
- kagglesdk/competitions/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
- kagglesdk/competitions/types/competition.py,sha256=wn006bPVrug_L60VQcIhemSN78wNPDbmQ4V2EATJod4,181
65
- kagglesdk/competitions/types/competition_api_service.py,sha256=ZzwF6EAey7V-yL7UUZVT5nVQv6frvOP3PJZVPNNdN9I,71817
66
- kagglesdk/competitions/types/competition_enums.py,sha256=gqjTYtlJ7bOB7QC0bniLDv7_GX_V8BFkOYY1NqN-fvU,1780
67
- kagglesdk/competitions/types/search_competitions.py,sha256=swT2sYmWQSraJkmSMS4fcF7N5QxOKGTqBeT8op8Cg_o,1033
68
- kagglesdk/competitions/types/submission_status.py,sha256=DHbTr8S7AK8QpZ26Lg1m6CnDj_LeirVuP_xYuSBbwnE,247
69
- kagglesdk/datasets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
- kagglesdk/datasets/databundles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
- kagglesdk/datasets/databundles/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
- kagglesdk/datasets/databundles/types/databundle_api_types.py,sha256=QGC-nJv4iadoIBwT4G_6I37RHdmUrwvm3_7f744GEqA,16484
73
- kagglesdk/datasets/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- kagglesdk/datasets/services/dataset_api_service.py,sha256=tl2VmFrV2ALjAttcMctAUhkbF0KFlZlmSZRQCfXs1u4,7894
75
- kagglesdk/datasets/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
- kagglesdk/datasets/types/dataset_api_service.py,sha256=hd0V4npMo-RcdMo1V8IzAXWbUj16_mhC_pSIim3ymnY,89971
77
- kagglesdk/datasets/types/dataset_enums.py,sha256=olD6-PSW04n67zAdkg7UfIHwfO8y_2bDnBZDYbb_na4,2942
78
- kagglesdk/datasets/types/dataset_service.py,sha256=crjbt6DtvmXCGoS4sD5Fb8ZoJUkw8kr6gmxriNyw4Qo,5187
79
- kagglesdk/datasets/types/dataset_types.py,sha256=nfGrsFFz7lhS-AmET24hgawhXza4g1zK1VbR4j9deGw,19782
80
- kagglesdk/datasets/types/search_datasets.py,sha256=XnOnanmcE-V6Nc6md5Ti19kAdwA0bOAJF9FFs_SgthU,145
81
- kagglesdk/discussions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
- kagglesdk/discussions/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
- kagglesdk/discussions/types/search_discussions.py,sha256=NqrYyLS268Di35a81hExqbXIIwQAs0GPWLMPCs612Ms,1473
84
- kagglesdk/discussions/types/writeup_enums.py,sha256=BgDLBj7hzRpUwpeD4PcikR26_SCONQYYXrJuYqANkWg,195
85
- kagglesdk/education/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
- kagglesdk/education/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
- kagglesdk/education/services/education_api_service.py,sha256=210H0osjOYz41XmS8Xhzn8JQ0JGKUzqlHvWANbvShJ8,802
88
- kagglesdk/education/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
89
- kagglesdk/education/types/education_api_service.py,sha256=Qy9MMjpe7SnCQ2Sq2xKmslvqRnMcyYbazyCmtexky_o,8858
90
- kagglesdk/education/types/education_service.py,sha256=iThgq4bvRphAdNqiwAKRHZR-AEhKouPaIacgfhu39Pk,4063
91
- kagglesdk/kernels/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
- kagglesdk/kernels/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
93
- kagglesdk/kernels/services/kernels_api_service.py,sha256=jGabYm8sHpQz7A6ylRiMNX2h76gQBMyIW52aCVct2-Y,5874
94
- kagglesdk/kernels/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
95
- kagglesdk/kernels/types/kernels_api_service.py,sha256=25tSpaeX7sNnVFLMImIMD6fLesGUbeJWthpqrJ_UH5w,77747
96
- kagglesdk/kernels/types/kernels_enums.py,sha256=oVDOJbVfvM6zvq9YXMozc7v7MFpViTlfVNnlYG7lHOE,735
97
- kagglesdk/kernels/types/search_kernels.py,sha256=BANM6xrOycJ5q2J3LBkeeBPcCk39sRVSQj7M_PpB604,140
98
- kagglesdk/licenses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
99
- kagglesdk/licenses/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
- kagglesdk/licenses/types/licenses_types.py,sha256=gPpXW5ZCQIxfwkNC28hiAuhnxsp_LK_5C2hDRcc263M,6266
101
- kagglesdk/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
- kagglesdk/models/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
103
- kagglesdk/models/services/model_api_service.py,sha256=d5bhHBau0lwpmRzHodeHqC6g847SLp8LEsFdcswCv_A,11269
104
- kagglesdk/models/services/model_service.py,sha256=-KM64rnYBO8L2ten5VEhQW7OhZa7yaIc4dOYROtJvYU,672
105
- kagglesdk/models/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
106
- kagglesdk/models/types/model_api_service.py,sha256=HEEX4spWu3dD988JESHHLvPfUBUFC9eaIfkcF4YrafM,123200
107
- kagglesdk/models/types/model_enums.py,sha256=YIq_oDp4-b_dO7D-AILyFHtKydYee44Otq6ugYOFJIU,2240
108
- kagglesdk/models/types/model_service.py,sha256=PDz_u6FPB0YFzm3-MBM659JFqbHVc7I9pZeuHLxVeT4,7658
109
- kagglesdk/models/types/model_types.py,sha256=7rYoTZcImZJQmzQ5IYwWpLSHS0KUjqymgc1XA_ggBwg,44530
110
- kagglesdk/models/types/search_models.py,sha256=I6XlEKIcgMnAx7SwRJjak9oHsw2wPPMEeTQn_O34C8c,223
111
- kagglesdk/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
112
- kagglesdk/search/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
113
- kagglesdk/search/services/search_api_service.py,sha256=qeyG-uwhXpQvnJedDZXC3Or1M-JCEqLAAcZUmp6VKCQ,657
114
- kagglesdk/search/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
- kagglesdk/search/types/search_api_service.py,sha256=Bf98qW0LkWhmkhzgL4h1nrplPhVuigluEGj7FB60QoE,89202
116
- kagglesdk/search/types/search_content_shared.py,sha256=hZkhFhK9YOtx2QTqlY2zkGYjzjtPkcYfOWiv2SnAFkw,1158
117
- kagglesdk/search/types/search_enums.py,sha256=0nc6AUvDM55GxBL7ay1-0CL1XPL8bE-AWoOWu1o1jNQ,1319
118
- kagglesdk/search/types/search_service.py,sha256=bvxp7HN_gUO--fLxokqBzdaAzryNCbpeASQXTEFqreA,10424
119
- kagglesdk/security/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
120
- kagglesdk/security/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
121
- kagglesdk/security/services/iam_service.py,sha256=9YTNWq94d_J04aaF2YyIk6gBR7uCLXx69lzw2Lrv3fY,1002
122
- kagglesdk/security/services/oauth_service.py,sha256=wbtBv_NQzFTKP6FO_Q7WDEdXkX4MEMHSDvlasPtAZu0,2195
123
- kagglesdk/security/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
- kagglesdk/security/types/authentication.py,sha256=WN5guVcHX9TD4s0nfgb8kaxnZgc9Q3lYUz3Ny1KD6GE,4917
125
- kagglesdk/security/types/iam_service.py,sha256=uDhNstAfEGhHfmIksZU4TWnyFAO0b8wwtGsyTACb4sY,14199
126
- kagglesdk/security/types/oauth_service.py,sha256=2hR2aTCQc1kKYPbbrnWxxKHzRSBqz0l9c_8hQMx1t50,38672
127
- kagglesdk/security/types/roles.py,sha256=js-0riCWXycQRY_6VxX5xtJQA_iH0CJhFp82bARMXp4,162
128
- kagglesdk/security/types/security_types.py,sha256=C32m5qq8LDBr5bbp21fPO9G73nsPll2rrbsJ0JDd21A,5838
129
- kagglesdk/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
130
- kagglesdk/test/test_client.py,sha256=g-O8t9QmV_DBcy6uUdP13gxqEVQH4QJ6k6eOSFZsWqw,1113
131
- kagglesdk/users/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
132
- kagglesdk/users/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
133
- kagglesdk/users/services/account_service.py,sha256=XhENumOhT2b1o8r9KiVqWwEN24Ev6HMOMFBLk16bwjM,1092
134
- kagglesdk/users/services/group_api_service.py,sha256=j1QXCYlcZAp5HOrnLwfbNNq8SU-MF9a8-7SBFt0tnEk,1487
135
- kagglesdk/users/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
- kagglesdk/users/types/account_service.py,sha256=1AhBmBdPUGmerADuoE_FxVY4KKRuEha5WTRCIwPBwH8,10350
137
- kagglesdk/users/types/group_api_service.py,sha256=mjKirKx5x4bopsyf56XwTLftPCeLduFwsFIg4kauoxs,8769
138
- kagglesdk/users/types/group_types.py,sha256=7V2gSTDpMztESmhspMOxaRjNOjP3y2G0GKIJFu6m46M,5132
139
- kagglesdk/users/types/groups_enum.py,sha256=jU-TY_DA0G1hoo5VtYLOUbmPa7UDCktE4d2izkmkNWM,195
140
- kagglesdk/users/types/progression_service.py,sha256=bVh37T2yse17n_Zh-CvOo9Sr8tYw4zyDkfbrldQLKW0,247
141
- kagglesdk/users/types/search_users.py,sha256=0Tcp_UrpOCEcoI9bIVqUO2zjSW2hqwDN4HRTXdMHPh4,1024
142
- kagglesdk/users/types/user_avatar.py,sha256=600bvofTMsmxVsGjJKfKcSzNxB4K3OMksRbGCLUbAzU,7658
143
- kagglesdk/users/types/users_enums.py,sha256=iAzI5TAM8tysOcqG2AUsb-DTdWEQF9XPOCy-M8Vv_ro,380
144
- kaggle-1.8.0.dist-info/METADATA,sha256=EL0fih6V-WI1sNGe83EKO43D8NzHeCd7h8Y7oCZXcvU,16904
145
- kaggle-1.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
146
- kaggle-1.8.0.dist-info/entry_points.txt,sha256=hl3dQAS4qpVkC5FWiqfnU6qKJU924OEN6PsHEiw-FGg,43
147
- kaggle-1.8.0.dist-info/licenses/LICENSE.txt,sha256=IzhfWrxIlFAci3lzZCg5WWHZJBI1QSzsHxO0plI63vk,11541
148
- kaggle-1.8.0.dist-info/RECORD,,
kagglesdk/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2018 Kaggle Inc
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
kagglesdk/__init__.py DELETED
@@ -1,6 +0,0 @@
1
- __version__ = "0.1.0"
2
-
3
- from kagglesdk.kaggle_client import KaggleClient
4
- from kagglesdk.kaggle_creds import KaggleCredentials
5
- from kagglesdk.kaggle_env import get_access_token_from_env, KaggleEnv
6
- from kagglesdk.kaggle_oauth import KaggleOAuth
File without changes
File without changes
@@ -1,22 +0,0 @@
1
- from kagglesdk.admin.types.inbox_file_service import CreateInboxFileRequest, CreateInboxFileResponse
2
- from kagglesdk.kaggle_http_client import KaggleHttpClient
3
-
4
- class InboxFileClient(object):
5
- """File drop/pickup functionality."""
6
-
7
- def __init__(self, client: KaggleHttpClient):
8
- self._client = client
9
-
10
- def create_inbox_file(self, request: CreateInboxFileRequest = None) -> CreateInboxFileResponse:
11
- r"""
12
- Creates (aka 'drops') a new file into the inbox.
13
-
14
- Args:
15
- request (CreateInboxFileRequest):
16
- The request object; initialized to empty instance if not specified.
17
- """
18
-
19
- if request is None:
20
- request = CreateInboxFileRequest()
21
-
22
- return self._client.call("admin.InboxFileService", "CreateInboxFile", request, CreateInboxFileResponse)
File without changes
@@ -1,74 +0,0 @@
1
- from kagglesdk.kaggle_object import *
2
-
3
- class CreateInboxFileRequest(KaggleObject):
4
- r"""
5
- Attributes:
6
- virtual_directory (str)
7
- Directory name used for tagging the uploaded file.
8
- blob_file_token (str)
9
- Token representing the uploaded file.
10
- """
11
-
12
- def __init__(self):
13
- self._virtual_directory = ""
14
- self._blob_file_token = ""
15
- self._freeze()
16
-
17
- @property
18
- def virtual_directory(self) -> str:
19
- """Directory name used for tagging the uploaded file."""
20
- return self._virtual_directory
21
-
22
- @virtual_directory.setter
23
- def virtual_directory(self, virtual_directory: str):
24
- if virtual_directory is None:
25
- del self.virtual_directory
26
- return
27
- if not isinstance(virtual_directory, str):
28
- raise TypeError('virtual_directory must be of type str')
29
- self._virtual_directory = virtual_directory
30
-
31
- @property
32
- def blob_file_token(self) -> str:
33
- """Token representing the uploaded file."""
34
- return self._blob_file_token
35
-
36
- @blob_file_token.setter
37
- def blob_file_token(self, blob_file_token: str):
38
- if blob_file_token is None:
39
- del self.blob_file_token
40
- return
41
- if not isinstance(blob_file_token, str):
42
- raise TypeError('blob_file_token must be of type str')
43
- self._blob_file_token = blob_file_token
44
-
45
- def endpoint(self):
46
- path = '/api/v1/inbox/files/create'
47
- return path.format_map(self.to_field_map(self))
48
-
49
-
50
- @staticmethod
51
- def method():
52
- return 'POST'
53
-
54
- @staticmethod
55
- def body_fields():
56
- return '*'
57
-
58
-
59
- class CreateInboxFileResponse(KaggleObject):
60
- r"""
61
- NOTE: This is sent to non-admins, so we're intentionally *NOT* sending back
62
- the full InboxFile (with its URL for a direct download).
63
-
64
- """
65
-
66
- pass
67
-
68
- CreateInboxFileRequest._fields = [
69
- FieldMetadata("virtualDirectory", "virtual_directory", "_virtual_directory", str, "", PredefinedSerializer()),
70
- FieldMetadata("blobFileToken", "blob_file_token", "_blob_file_token", str, "", PredefinedSerializer()),
71
- ]
72
-
73
- CreateInboxFileResponse._fields = []
74
-
File without changes
File without changes
@@ -1,19 +0,0 @@
1
- from kagglesdk.benchmarks.types.benchmarks_api_service import ApiBenchmarkLeaderboard, ApiGetBenchmarkLeaderboardRequest
2
- from kagglesdk.kaggle_http_client import KaggleHttpClient
3
-
4
- class BenchmarksApiClient(object):
5
-
6
- def __init__(self, client: KaggleHttpClient):
7
- self._client = client
8
-
9
- def get_benchmark_leaderboard(self, request: ApiGetBenchmarkLeaderboardRequest = None) -> ApiBenchmarkLeaderboard:
10
- r"""
11
- Args:
12
- request (ApiGetBenchmarkLeaderboardRequest):
13
- The request object; initialized to empty instance if not specified.
14
- """
15
-
16
- if request is None:
17
- request = ApiGetBenchmarkLeaderboardRequest()
18
-
19
- return self._client.call("benchmarks.BenchmarksApiService", "GetBenchmarkLeaderboard", request, ApiBenchmarkLeaderboard)
File without changes