kaggle 1.7.4.2__tar.gz → 1.8.0__tar.gz

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 (306) hide show
  1. kaggle-1.8.0/.github/workflows/no-response.yaml +33 -0
  2. {kaggle-1.7.4.2 → kaggle-1.8.0}/.gitignore +7 -0
  3. {kaggle-1.7.4.2 → kaggle-1.8.0}/CHANGELOG.md +39 -0
  4. kaggle-1.8.0/GEMINI.md +45 -0
  5. {kaggle-1.7.4.2 → kaggle-1.8.0}/PKG-INFO +11 -15
  6. {kaggle-1.7.4.2 → kaggle-1.8.0}/README.md +4 -7
  7. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/README.md +67 -29
  8. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/conf.py +9 -9
  9. kaggle-1.8.0/documentation/Makefile +24 -0
  10. kaggle-1.8.0/documentation/competitions.md +216 -0
  11. kaggle-1.8.0/documentation/conf.py +72 -0
  12. kaggle-1.8.0/documentation/configuration.md +89 -0
  13. kaggle-1.8.0/documentation/datasets.md +309 -0
  14. kaggle-1.8.0/documentation/index.rst +23 -0
  15. kaggle-1.8.0/documentation/intro.md +70 -0
  16. kaggle-1.8.0/documentation/kernels.md +277 -0
  17. kaggle-1.8.0/documentation/make.bat +35 -0
  18. kaggle-1.8.0/documentation/model_instances.md +182 -0
  19. kaggle-1.8.0/documentation/model_instances_versions.md +135 -0
  20. kaggle-1.8.0/documentation/models.md +184 -0
  21. kaggle-1.8.0/documentation/tutorials.md +322 -0
  22. {kaggle-1.7.4.2 → kaggle-1.8.0}/integration_tests/test_models.py +1 -0
  23. kaggle-1.8.0/pyproject.toml +121 -0
  24. {kaggle-1.7.4.2 → kaggle-1.8.0}/requirements.in +1 -0
  25. kaggle-1.8.0/requirements.txt +134 -0
  26. kaggle-1.8.0/src/kaggle/__init__.py +10 -0
  27. kaggle-1.8.0/src/kaggle/api/kaggle_api.py +603 -0
  28. kaggle-1.8.0/src/kaggle/api/kaggle_api_extended.py +5251 -0
  29. kaggle-1.8.0/src/kaggle/cli.py +1371 -0
  30. kaggle-1.8.0/src/kaggle/models/api_blob_type.py +4 -0
  31. kaggle-1.8.0/src/kaggle/models/dataset_column.py +228 -0
  32. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/dataset_new_request.py +130 -72
  33. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/dataset_new_version_request.py +88 -56
  34. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/dataset_update_settings_request.py +93 -59
  35. kaggle-1.8.0/src/kaggle/models/kaggle_models_extended.py +276 -0
  36. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/kernel_push_request.py +152 -100
  37. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kaggle/models/model_instance_new_version_request.py +30 -30
  38. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/model_instance_update_request.py +171 -71
  39. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/model_new_instance_request.py +223 -88
  40. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/model_new_request.py +61 -46
  41. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kaggle/models/model_update_request.py +66 -48
  42. kaggle-1.8.0/src/kaggle/models/start_blob_upload_request.py +240 -0
  43. kaggle-1.8.0/src/kaggle/models/start_blob_upload_response.py +142 -0
  44. kaggle-1.8.0/src/kaggle/models/upload_file.py +165 -0
  45. kaggle-1.8.0/src/kaggle/test/test_authenticate.py +43 -0
  46. kaggle-1.8.0/src/kagglesdk/__init__.py +6 -0
  47. kaggle-1.8.0/src/kagglesdk/benchmarks/services/benchmarks_api_service.py +19 -0
  48. kaggle-1.8.0/src/kagglesdk/benchmarks/types/benchmark_types.py +307 -0
  49. kaggle-1.8.0/src/kagglesdk/benchmarks/types/benchmarks_api_service.py +243 -0
  50. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/blobs/services/blob_api_service.py +1 -1
  51. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/blobs/types/blob_api_service.py +2 -2
  52. kaggle-1.8.0/src/kagglesdk/common/services/operations_service.py +46 -0
  53. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/common/types/file_download.py +1 -1
  54. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/common/types/http_redirect.py +1 -1
  55. kaggle-1.8.0/src/kagglesdk/common/types/operations.py +194 -0
  56. kaggle-1.8.0/src/kagglesdk/common/types/operations_service.py +48 -0
  57. kaggle-1.8.0/src/kagglesdk/community/types/content_enums.py +44 -0
  58. kaggle-1.8.0/src/kagglesdk/community/types/organization.py +410 -0
  59. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/competitions/services/competition_api_service.py +49 -12
  60. kaggle-1.8.0/src/kagglesdk/competitions/types/competition.py +14 -0
  61. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/competitions/types/competition_api_service.py +1639 -1275
  62. kaggle-1.8.0/src/kagglesdk/competitions/types/search_competitions.py +28 -0
  63. kaggle-1.8.0/src/kagglesdk/datasets/databundles/types/databundle_api_types.py +540 -0
  64. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/datasets/services/dataset_api_service.py +39 -14
  65. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/datasets/types/dataset_api_service.py +567 -297
  66. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/datasets/types/dataset_enums.py +21 -0
  67. kaggle-1.8.0/src/kagglesdk/datasets/types/dataset_service.py +145 -0
  68. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/datasets/types/dataset_types.py +74 -74
  69. kaggle-1.8.0/src/kagglesdk/datasets/types/search_datasets.py +6 -0
  70. kaggle-1.8.0/src/kagglesdk/discussions/types/search_discussions.py +43 -0
  71. kaggle-1.8.0/src/kagglesdk/discussions/types/writeup_enums.py +11 -0
  72. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/education/services/education_api_service.py +1 -1
  73. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/education/types/education_api_service.py +1 -1
  74. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/kaggle_client.py +55 -20
  75. kaggle-1.8.0/src/kagglesdk/kaggle_creds.py +148 -0
  76. kaggle-1.8.0/src/kagglesdk/kaggle_env.py +104 -0
  77. kaggle-1.8.0/src/kagglesdk/kaggle_http_client.py +261 -0
  78. kaggle-1.8.0/src/kagglesdk/kaggle_oauth.py +200 -0
  79. kaggle-1.8.0/src/kagglesdk/kaggle_object.py +344 -0
  80. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/kernels/services/kernels_api_service.py +46 -9
  81. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/kernels/types/kernels_api_service.py +658 -158
  82. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/kernels/types/kernels_enums.py +6 -0
  83. kaggle-1.8.0/src/kagglesdk/kernels/types/search_kernels.py +6 -0
  84. kaggle-1.8.0/src/kagglesdk/licenses/types/licenses_types.py +182 -0
  85. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/models/services/model_api_service.py +46 -21
  86. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/models/types/model_api_service.py +1018 -652
  87. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/models/types/model_enums.py +8 -0
  88. {kaggle-1.7.4.2 → kaggle-1.8.0}/src/kagglesdk/models/types/model_service.py +71 -71
  89. kaggle-1.8.0/src/kagglesdk/models/types/model_types.py +1338 -0
  90. kaggle-1.8.0/src/kagglesdk/models/types/search_models.py +8 -0
  91. kaggle-1.8.0/src/kagglesdk/search/services/search_api_service.py +19 -0
  92. kaggle-1.8.0/src/kagglesdk/search/types/search_api_service.py +2435 -0
  93. kaggle-1.8.0/src/kagglesdk/search/types/search_content_shared.py +50 -0
  94. kaggle-1.8.0/src/kagglesdk/search/types/search_enums.py +45 -0
  95. kaggle-1.8.0/src/kagglesdk/search/types/search_service.py +303 -0
  96. kaggle-1.8.0/src/kagglesdk/security/services/iam_service.py +31 -0
  97. kaggle-1.8.0/src/kagglesdk/security/services/oauth_service.py +58 -0
  98. kaggle-1.8.0/src/kagglesdk/security/types/authentication.py +171 -0
  99. kaggle-1.8.0/src/kagglesdk/security/types/iam_service.py +496 -0
  100. kaggle-1.8.0/src/kagglesdk/security/types/oauth_service.py +1181 -0
  101. kaggle-1.8.0/src/kagglesdk/security/types/roles.py +8 -0
  102. kaggle-1.8.0/src/kagglesdk/security/types/security_types.py +159 -0
  103. kaggle-1.8.0/src/kagglesdk/test/test_client.py +41 -0
  104. kaggle-1.8.0/src/kagglesdk/users/services/account_service.py +31 -0
  105. kaggle-1.8.0/src/kagglesdk/users/services/group_api_service.py +31 -0
  106. kaggle-1.8.0/src/kagglesdk/users/types/account_service.py +345 -0
  107. kaggle-1.8.0/src/kagglesdk/users/types/group_api_service.py +315 -0
  108. kaggle-1.8.0/src/kagglesdk/users/types/group_types.py +165 -0
  109. kaggle-1.8.0/src/kagglesdk/users/types/groups_enum.py +8 -0
  110. kaggle-1.8.0/src/kagglesdk/users/types/progression_service.py +9 -0
  111. kaggle-1.8.0/src/kagglesdk/users/types/search_users.py +23 -0
  112. kaggle-1.8.0/src/kagglesdk/users/types/user_avatar.py +226 -0
  113. {kaggle-1.7.4.2 → kaggle-1.8.0}/tests/test_commands.sh +21 -8
  114. kaggle-1.8.0/tests/unit_tests.py +810 -0
  115. {kaggle-1.7.4.2 → kaggle-1.8.0}/tools/GeneratePythonLibrary.sh +14 -20
  116. kaggle-1.8.0/tools/releases/Dockerfile +15 -0
  117. {kaggle-1.7.4.2 → kaggle-1.8.0}/tools/releases/cloudbuild.yaml +2 -2
  118. {kaggle-1.7.4.2 → kaggle-1.8.0}/tools/releases/requirements.txt +6 -6
  119. {kaggle-1.7.4.2 → kaggle-1.8.0}/tools/use-localhost.sh +1 -1
  120. {kaggle-1.7.4.2 → kaggle-1.8.0}/tools/use-prod.sh +1 -1
  121. kaggle-1.7.4.2/kaggle/__init__.py +0 -6
  122. kaggle-1.7.4.2/kaggle/api/kaggle_api.py +0 -614
  123. kaggle-1.7.4.2/kaggle/api/kaggle_api_extended.py +0 -4738
  124. kaggle-1.7.4.2/kaggle/cli.py +0 -1621
  125. kaggle-1.7.4.2/kaggle/configuration.py +0 -206
  126. kaggle-1.7.4.2/kaggle/models/api_blob_type.py +0 -4
  127. kaggle-1.7.4.2/kaggle/models/dataset_column.py +0 -228
  128. kaggle-1.7.4.2/kaggle/models/kaggle_models_extended.py +0 -279
  129. kaggle-1.7.4.2/kaggle/models/model_instance_new_version_request.py +0 -145
  130. kaggle-1.7.4.2/kaggle/models/model_update_request.py +0 -282
  131. kaggle-1.7.4.2/kaggle/models/start_blob_upload_request.py +0 -232
  132. kaggle-1.7.4.2/kaggle/models/start_blob_upload_response.py +0 -137
  133. kaggle-1.7.4.2/kaggle/models/upload_file.py +0 -169
  134. kaggle-1.7.4.2/kaggle/test/test_authenticate.py +0 -43
  135. kaggle-1.7.4.2/kagglesdk/__init__.py +0 -2
  136. kaggle-1.7.4.2/kagglesdk/competitions/types/competition_api_service.py +0 -2029
  137. kaggle-1.7.4.2/kagglesdk/datasets/services/dataset_api_service.py +0 -170
  138. kaggle-1.7.4.2/kagglesdk/datasets/types/dataset_api_service.py +0 -2777
  139. kaggle-1.7.4.2/kagglesdk/datasets/types/dataset_enums.py +0 -82
  140. kaggle-1.7.4.2/kagglesdk/datasets/types/dataset_types.py +0 -646
  141. kaggle-1.7.4.2/kagglesdk/education/services/education_api_service.py +0 -19
  142. kaggle-1.7.4.2/kagglesdk/kaggle_client.py +0 -66
  143. kaggle-1.7.4.2/kagglesdk/kaggle_env.py +0 -42
  144. kaggle-1.7.4.2/kagglesdk/kaggle_http_client.py +0 -316
  145. kaggle-1.7.4.2/kagglesdk/kaggle_object.py +0 -296
  146. kaggle-1.7.4.2/kagglesdk/models/types/model_api_service.py +0 -3703
  147. kaggle-1.7.4.2/kagglesdk/models/types/model_service.py +0 -275
  148. kaggle-1.7.4.2/kagglesdk/models/types/model_types.py +0 -286
  149. kaggle-1.7.4.2/kagglesdk/test/test_client.py +0 -45
  150. kaggle-1.7.4.2/pyproject.toml +0 -78
  151. kaggle-1.7.4.2/requirements.txt +0 -24
  152. kaggle-1.7.4.2/setup.cfg +0 -2
  153. kaggle-1.7.4.2/setup.py +0 -37
  154. kaggle-1.7.4.2/src/__init__.py +0 -1
  155. kaggle-1.7.4.2/src/kaggle/LICENSE +0 -201
  156. kaggle-1.7.4.2/src/kaggle/__init__.py +0 -6
  157. kaggle-1.7.4.2/src/kaggle/api/kaggle_api.py +0 -614
  158. kaggle-1.7.4.2/src/kaggle/api/kaggle_api_extended.py +0 -4738
  159. kaggle-1.7.4.2/src/kaggle/cli.py +0 -1621
  160. kaggle-1.7.4.2/src/kaggle/configuration.py +0 -206
  161. kaggle-1.7.4.2/src/kaggle/models/api_blob_type.py +0 -4
  162. kaggle-1.7.4.2/src/kaggle/models/dataset_column.py +0 -228
  163. kaggle-1.7.4.2/src/kaggle/models/dataset_new_request.py +0 -385
  164. kaggle-1.7.4.2/src/kaggle/models/dataset_new_version_request.py +0 -287
  165. kaggle-1.7.4.2/src/kaggle/models/dataset_update_settings_request.py +0 -310
  166. kaggle-1.7.4.2/src/kaggle/models/kaggle_models_extended.py +0 -279
  167. kaggle-1.7.4.2/src/kaggle/models/kernel_push_request.py +0 -556
  168. kaggle-1.7.4.2/src/kaggle/models/model_instance_update_request.py +0 -351
  169. kaggle-1.7.4.2/src/kaggle/models/model_new_instance_request.py +0 -417
  170. kaggle-1.7.4.2/src/kaggle/models/model_new_request.py +0 -314
  171. kaggle-1.7.4.2/src/kaggle/models/start_blob_upload_request.py +0 -232
  172. kaggle-1.7.4.2/src/kaggle/models/start_blob_upload_response.py +0 -137
  173. kaggle-1.7.4.2/src/kaggle/models/upload_file.py +0 -169
  174. kaggle-1.7.4.2/src/kaggle/test/test_authenticate.py +0 -43
  175. kaggle-1.7.4.2/src/kagglesdk/LICENSE +0 -201
  176. kaggle-1.7.4.2/src/kagglesdk/__init__.py +0 -2
  177. kaggle-1.7.4.2/src/kagglesdk/admin/services/inbox_file_service.py +0 -22
  178. kaggle-1.7.4.2/src/kagglesdk/admin/types/inbox_file_service.py +0 -74
  179. kaggle-1.7.4.2/src/kagglesdk/blobs/services/blob_api_service.py +0 -25
  180. kaggle-1.7.4.2/src/kagglesdk/blobs/types/blob_api_service.py +0 -177
  181. kaggle-1.7.4.2/src/kagglesdk/common/types/file_download.py +0 -102
  182. kaggle-1.7.4.2/src/kagglesdk/common/types/http_redirect.py +0 -105
  183. kaggle-1.7.4.2/src/kagglesdk/competitions/services/competition_api_service.py +0 -141
  184. kaggle-1.7.4.2/src/kagglesdk/competitions/types/competition_enums.py +0 -53
  185. kaggle-1.7.4.2/src/kagglesdk/competitions/types/submission_status.py +0 -9
  186. kaggle-1.7.4.2/src/kagglesdk/education/types/__init__.py +0 -0
  187. kaggle-1.7.4.2/src/kagglesdk/education/types/education_api_service.py +0 -248
  188. kaggle-1.7.4.2/src/kagglesdk/education/types/education_service.py +0 -139
  189. kaggle-1.7.4.2/src/kagglesdk/kaggle_env.py +0 -42
  190. kaggle-1.7.4.2/src/kagglesdk/kaggle_http_client.py +0 -316
  191. kaggle-1.7.4.2/src/kagglesdk/kaggle_object.py +0 -296
  192. kaggle-1.7.4.2/src/kagglesdk/kernels/__init__.py +0 -0
  193. kaggle-1.7.4.2/src/kagglesdk/kernels/services/__init__.py +0 -0
  194. kaggle-1.7.4.2/src/kagglesdk/kernels/services/kernels_api_service.py +0 -109
  195. kaggle-1.7.4.2/src/kagglesdk/kernels/types/__init__.py +0 -0
  196. kaggle-1.7.4.2/src/kagglesdk/kernels/types/kernels_api_service.py +0 -1951
  197. kaggle-1.7.4.2/src/kagglesdk/kernels/types/kernels_enums.py +0 -33
  198. kaggle-1.7.4.2/src/kagglesdk/models/__init__.py +0 -0
  199. kaggle-1.7.4.2/src/kagglesdk/models/services/__init__.py +0 -0
  200. kaggle-1.7.4.2/src/kagglesdk/models/services/model_api_service.py +0 -255
  201. kaggle-1.7.4.2/src/kagglesdk/models/services/model_service.py +0 -19
  202. kaggle-1.7.4.2/src/kagglesdk/models/types/__init__.py +0 -0
  203. kaggle-1.7.4.2/src/kagglesdk/models/types/model_enums.py +0 -60
  204. kaggle-1.7.4.2/src/kagglesdk/models/types/model_types.py +0 -286
  205. kaggle-1.7.4.2/src/kagglesdk/test/test_client.py +0 -45
  206. kaggle-1.7.4.2/src/kagglesdk/users/__init__.py +0 -0
  207. kaggle-1.7.4.2/src/kagglesdk/users/types/__init__.py +0 -0
  208. kaggle-1.7.4.2/src/kagglesdk/users/types/users_enums.py +0 -22
  209. kaggle-1.7.4.2/src/setup.cfg +0 -2
  210. kaggle-1.7.4.2/src/setup.py +0 -37
  211. kaggle-1.7.4.2/tests/unit_tests.py +0 -808
  212. kaggle-1.7.4.2/tools/releases/Dockerfile +0 -23
  213. {kaggle-1.7.4.2 → kaggle-1.8.0}/.gcloudignore +0 -0
  214. {kaggle-1.7.4.2 → kaggle-1.8.0}/CONTRIBUTING.md +0 -0
  215. {kaggle-1.7.4.2 → kaggle-1.8.0}/LICENSE.txt +0 -0
  216. {kaggle-1.7.4.2 → kaggle-1.8.0}/MANIFEST.in +0 -0
  217. {kaggle-1.7.4.2 → kaggle-1.8.0}/SECURITY.md +0 -0
  218. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/ApiBlobType.md +0 -0
  219. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/Collaborator.md +0 -0
  220. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/CreateInboxFileRequest.md +0 -0
  221. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/DatasetColumn.md +0 -0
  222. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/DatasetNewRequest.md +0 -0
  223. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/DatasetNewVersionRequest.md +0 -0
  224. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/DatasetUpdateSettingsRequest.md +0 -0
  225. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/Error.md +0 -0
  226. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/KaggleApi.md +0 -0
  227. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/KernelPushRequest.md +0 -0
  228. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/License.md +0 -0
  229. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/ModelInstanceNewVersionRequest.md +0 -0
  230. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/ModelInstanceUpdateRequest.md +0 -0
  231. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/ModelNewInstanceRequest.md +0 -0
  232. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/ModelNewRequest.md +0 -0
  233. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/ModelUpdateRequest.md +0 -0
  234. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/Result.md +0 -0
  235. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/StartBlobUploadRequest.md +0 -0
  236. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/StartBlobUploadResponse.md +0 -0
  237. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/UploadFile.md +0 -0
  238. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/datasets_metadata.md +0 -0
  239. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/index.rst +0 -0
  240. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/kernels_metadata.md +0 -0
  241. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/model_card.md +0 -0
  242. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/modelinstance_usage.md +0 -0
  243. {kaggle-1.7.4.2 → kaggle-1.8.0}/docs/models_metadata.md +0 -0
  244. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/LICENSE +0 -0
  245. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/api/__init__.py +0 -0
  246. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kaggle/models/__init__.py +0 -0
  247. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/LICENSE +0 -0
  248. {kaggle-1.7.4.2/kaggle/test → kaggle-1.8.0/src/kagglesdk/admin}/__init__.py +0 -0
  249. {kaggle-1.7.4.2/kagglesdk/admin → kaggle-1.8.0/src/kagglesdk/admin/services}/__init__.py +0 -0
  250. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/admin/services/inbox_file_service.py +0 -0
  251. {kaggle-1.7.4.2/kagglesdk/admin/services → kaggle-1.8.0/src/kagglesdk/admin/types}/__init__.py +0 -0
  252. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/admin/types/inbox_file_service.py +0 -0
  253. {kaggle-1.7.4.2/kagglesdk/admin/types → kaggle-1.8.0/src/kagglesdk/benchmarks}/__init__.py +0 -0
  254. {kaggle-1.7.4.2/kagglesdk/blobs → kaggle-1.8.0/src/kagglesdk/benchmarks/services}/__init__.py +0 -0
  255. {kaggle-1.7.4.2/kagglesdk/blobs/services → kaggle-1.8.0/src/kagglesdk/benchmarks/types}/__init__.py +0 -0
  256. {kaggle-1.7.4.2/kagglesdk/blobs/types → kaggle-1.8.0/src/kagglesdk/blobs}/__init__.py +0 -0
  257. {kaggle-1.7.4.2/kagglesdk/common → kaggle-1.8.0/src/kagglesdk/blobs/services}/__init__.py +0 -0
  258. {kaggle-1.7.4.2/kagglesdk/common → kaggle-1.8.0/src/kagglesdk/blobs}/types/__init__.py +0 -0
  259. {kaggle-1.7.4.2/kagglesdk/competitions → kaggle-1.8.0/src/kagglesdk/common}/__init__.py +0 -0
  260. {kaggle-1.7.4.2/kagglesdk/competitions → kaggle-1.8.0/src/kagglesdk/common}/services/__init__.py +0 -0
  261. {kaggle-1.7.4.2/kagglesdk/competitions → kaggle-1.8.0/src/kagglesdk/common}/types/__init__.py +0 -0
  262. {kaggle-1.7.4.2/kagglesdk/datasets → kaggle-1.8.0/src/kagglesdk/community}/__init__.py +0 -0
  263. {kaggle-1.7.4.2/kagglesdk/datasets/services → kaggle-1.8.0/src/kagglesdk/community/types}/__init__.py +0 -0
  264. {kaggle-1.7.4.2/kagglesdk/datasets/types → kaggle-1.8.0/src/kagglesdk/competitions}/__init__.py +0 -0
  265. {kaggle-1.7.4.2/kagglesdk/education → kaggle-1.8.0/src/kagglesdk/competitions/services}/__init__.py +0 -0
  266. {kaggle-1.7.4.2/kagglesdk/education/services → kaggle-1.8.0/src/kagglesdk/competitions/types}/__init__.py +0 -0
  267. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/competitions/types/competition_enums.py +0 -0
  268. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/competitions/types/submission_status.py +0 -0
  269. {kaggle-1.7.4.2/kagglesdk/education/types → kaggle-1.8.0/src/kagglesdk/datasets}/__init__.py +0 -0
  270. {kaggle-1.7.4.2/kagglesdk/kernels → kaggle-1.8.0/src/kagglesdk/datasets/databundles}/__init__.py +0 -0
  271. {kaggle-1.7.4.2/kagglesdk/kernels/services → kaggle-1.8.0/src/kagglesdk/datasets/databundles/types}/__init__.py +0 -0
  272. {kaggle-1.7.4.2/kagglesdk/kernels/types → kaggle-1.8.0/src/kagglesdk/datasets/services}/__init__.py +0 -0
  273. {kaggle-1.7.4.2/kagglesdk/models → kaggle-1.8.0/src/kagglesdk/datasets/types}/__init__.py +0 -0
  274. {kaggle-1.7.4.2/kagglesdk/models/services → kaggle-1.8.0/src/kagglesdk/discussions}/__init__.py +0 -0
  275. {kaggle-1.7.4.2/kagglesdk/models → kaggle-1.8.0/src/kagglesdk/discussions}/types/__init__.py +0 -0
  276. {kaggle-1.7.4.2/kagglesdk/users → kaggle-1.8.0/src/kagglesdk/education}/__init__.py +0 -0
  277. {kaggle-1.7.4.2/kagglesdk/users/types → kaggle-1.8.0/src/kagglesdk/education/services}/__init__.py +0 -0
  278. {kaggle-1.7.4.2/src/kaggle/api → kaggle-1.8.0/src/kagglesdk/education/types}/__init__.py +0 -0
  279. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/education/types/education_service.py +0 -0
  280. {kaggle-1.7.4.2/src/kaggle/models → kaggle-1.8.0/src/kagglesdk/kernels}/__init__.py +0 -0
  281. {kaggle-1.7.4.2/src/kaggle/test → kaggle-1.8.0/src/kagglesdk/kernels/services}/__init__.py +0 -0
  282. {kaggle-1.7.4.2/src/kagglesdk/admin → kaggle-1.8.0/src/kagglesdk/kernels/types}/__init__.py +0 -0
  283. {kaggle-1.7.4.2/src/kagglesdk/admin/services → kaggle-1.8.0/src/kagglesdk/licenses}/__init__.py +0 -0
  284. {kaggle-1.7.4.2/src/kagglesdk/admin → kaggle-1.8.0/src/kagglesdk/licenses}/types/__init__.py +0 -0
  285. {kaggle-1.7.4.2/src/kagglesdk/blobs → kaggle-1.8.0/src/kagglesdk/models}/__init__.py +0 -0
  286. {kaggle-1.7.4.2/src/kagglesdk/blobs → kaggle-1.8.0/src/kagglesdk/models}/services/__init__.py +0 -0
  287. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/models/services/model_service.py +0 -0
  288. {kaggle-1.7.4.2/src/kagglesdk/blobs → kaggle-1.8.0/src/kagglesdk/models}/types/__init__.py +0 -0
  289. {kaggle-1.7.4.2/src/kagglesdk/common → kaggle-1.8.0/src/kagglesdk/search}/__init__.py +0 -0
  290. {kaggle-1.7.4.2/src/kagglesdk/common/types → kaggle-1.8.0/src/kagglesdk/search/services}/__init__.py +0 -0
  291. {kaggle-1.7.4.2/src/kagglesdk/competitions → kaggle-1.8.0/src/kagglesdk/search/types}/__init__.py +0 -0
  292. {kaggle-1.7.4.2/src/kagglesdk/competitions/services → kaggle-1.8.0/src/kagglesdk/security}/__init__.py +0 -0
  293. {kaggle-1.7.4.2/src/kagglesdk/competitions/types → kaggle-1.8.0/src/kagglesdk/security/services}/__init__.py +0 -0
  294. {kaggle-1.7.4.2/src/kagglesdk/datasets → kaggle-1.8.0/src/kagglesdk/security/types}/__init__.py +0 -0
  295. {kaggle-1.7.4.2/src/kagglesdk/datasets/services → kaggle-1.8.0/src/kagglesdk/test}/__init__.py +0 -0
  296. {kaggle-1.7.4.2/src/kagglesdk/datasets/types → kaggle-1.8.0/src/kagglesdk/users}/__init__.py +0 -0
  297. {kaggle-1.7.4.2/src/kagglesdk/education → kaggle-1.8.0/src/kagglesdk/users/services}/__init__.py +0 -0
  298. {kaggle-1.7.4.2/src/kagglesdk/education/services → kaggle-1.8.0/src/kagglesdk/users/types}/__init__.py +0 -0
  299. {kaggle-1.7.4.2 → kaggle-1.8.0/src}/kagglesdk/users/types/users_enums.py +0 -0
  300. {kaggle-1.7.4.2 → kaggle-1.8.0}/tests/dataset/data.csv +0 -0
  301. /kaggle-1.7.4.2/tests/kernel/testing.ipynb → /kaggle-1.8.0/tests/kernel/testing-x.ipynb +0 -0
  302. {kaggle-1.7.4.2 → kaggle-1.8.0}/tests/model/instance/data.csv +0 -0
  303. {kaggle-1.7.4.2 → kaggle-1.8.0}/tests/model/instance/version/metadata.json +0 -0
  304. {kaggle-1.7.4.2 → kaggle-1.8.0}/tests/sample_submission.csv +0 -0
  305. {kaggle-1.7.4.2 → kaggle-1.8.0}/tools/cicd/integration-tests.yaml +0 -0
  306. {kaggle-1.7.4.2 → kaggle-1.8.0}/tools/releases/requirements.in +0 -0
@@ -0,0 +1,33 @@
1
+ name: No Response
2
+
3
+ # Both `issue_comment` and `scheduled` event types are required for this Action
4
+ # to work properly.
5
+ on:
6
+ issue_comment:
7
+ types: [created]
8
+ schedule:
9
+ # Schedule for five minutes after midnight, every day
10
+ - cron: '5 0 * * *'
11
+
12
+ # By specifying the access of one of the scopes, all of those that are not
13
+ # specified are set to 'none'.
14
+ permissions:
15
+ issues: write
16
+
17
+ jobs:
18
+ noResponse:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb
22
+ with:
23
+ token: ${{ github.token }}
24
+ # Comment to post when closing an Issue for lack of response. Set to `false` to disable
25
+ closeComment: >
26
+ Without additional information we're not able to resolve this issue,
27
+ so it will be closed at this time. You're still free to add more info
28
+ and respond to any questions above, though. We'll reopen the case
29
+ if you do. Thanks for your contribution!
30
+ # Number of days of inactivity before an issue is closed for lack of response.
31
+ daysUntilClose: 14
32
+ # Label requiring a response.
33
+ responseRequiredLabel: "waiting for response"
@@ -15,6 +15,10 @@ dist/
15
15
  downloads/
16
16
  eggs/
17
17
  .eggs/
18
+ kaggle
19
+ kagglesdk
20
+ !*/kaggle/
21
+ !*/kagglesdk/
18
22
  lib/
19
23
  lib64/
20
24
  parts/
@@ -65,3 +69,6 @@ target/
65
69
 
66
70
  # Rider/IntelliJ
67
71
  .idea/
72
+
73
+ # Gemini
74
+ .gemini
@@ -1,6 +1,45 @@
1
1
  Changelog
2
2
  ====
3
3
 
4
+ ### 1.8.0
5
+
6
+ * Fix resumable download error (#865)
7
+ * Fix dataset version spec (#862)
8
+ * Add machine_shape to the metadata of kaggle kernels pull (#856)
9
+ * Add pagination options to models
10
+ * Add pagination options for submissions (#832)
11
+ * Add pagination options to list commands (#815)
12
+ * Add canonical aliases for push/pull (#787)
13
+ * Add parquet as a filter option (#786)
14
+ * Add variations as alt for instances (#784)
15
+ * Enable (and rename) synonyms i and v (#782)
16
+
17
+ ### 1.7.5.0 (not released)
18
+
19
+ * Require Python 3.11.
20
+ * Add KernelExecutionType (#775)
21
+ * Output docker_image as part of the pull metadata (#773)
22
+ * Allow user to specify docker_image during kernel push (#774)
23
+ * Add kernel version type to save request (#771)
24
+ * Add tests for delete and de-flake (#769)
25
+ * Rename "yes" params and make confirmation consistent (#765)
26
+ * Fix bug that caused double serialization (#764)
27
+ * Add kaggle kernels delete (#762)
28
+ * Add test for dataset_delete() and make script more robust (#760)
29
+ * Check dataset status before uploading (#759)
30
+ * Add kaggle datasets delete (#755)
31
+ * Fix calls to download_file() (#752)
32
+ * Add type annotations for mypy (#746)
33
+ * Use Optional[...] in cases where the proto file does (#744)
34
+ * Improve some type hints and fix a bug (#741)
35
+ * Reformat everything with black (#737)
36
+ * Add more type hints (#736)
37
+ * Add type annotations to main file (#735)
38
+ * Bulk reformat docstrings (#732)
39
+ * Merge envars before sending a request (#729)
40
+ * Use PROD if no environment is specified. (#726)
41
+ * Add a no response action to auto-close issues (#723)
42
+
4
43
  ### 1.7.4.2
5
44
 
6
45
  * Fix a problem in downloading kernel output files.
kaggle-1.8.0/GEMINI.md ADDED
@@ -0,0 +1,45 @@
1
+ # Coworker Relationship
2
+ - We are a team. Your success is my success.
3
+ - I'm your boss, but we're informal.
4
+ - We both have valuable, complementary experience.
5
+ - It's okay to admit when we don't know something.
6
+ - Push back with evidence.
7
+
8
+ # Coding Standards
9
+ - Use simple, clean, and maintainable solutions.
10
+ - Make the smallest reasonable changes. Ask for permission before rewriting.
11
+ - Match the existing code style.
12
+ - Stay on task. Create issues for unrelated fixes.
13
+ - Don't remove comments unless they are false.
14
+ - Use evergreen comments.
15
+ - No mock implementations.
16
+ - Do not rewrite code to fix a bug without permission.
17
+ - Use evergreen naming conventions.
18
+
19
+ # Documentation
20
+ - Store documentation in the `documentation` directory.
21
+ - Use Markdown and create an index named `intro.md` with links.
22
+ - Document all commands, sub-commands, and options with examples.
23
+
24
+ # Anlyzing Python Code
25
+ - When analyzing Python code, use the `api` module to parse it, UNLESS instructed otherwise.
26
+ - Use `api.get_docstring()` to locate a docstring for an item.
27
+ - To find type hints, walk the AST using `api.walk_tree()` looking for type parameters with `ast.TypeVar()`, `ast.ParamSpec()`, and `ast.TypeVarTuple()`.
28
+
29
+ # Getting Help
30
+ - Ask for clarification.
31
+ - Ask for help when needed.
32
+
33
+ # Testing
34
+ - Tests must cover the implemented functionality.
35
+ - Pay attention to logs and test output.
36
+ - Test output must be pristine.
37
+ - Test for expected errors.
38
+ - Practice TDD:
39
+ 1. Write a failing test.
40
+ 2. Write the minimum code to pass the test.
41
+ 3. Refactor.
42
+ 4. Repeat.
43
+
44
+ # Specific Technologies
45
+ - @~/.gemini/docs/python.md
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kaggle
3
- Version: 1.7.4.2
3
+ Version: 1.8.0
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
@@ -211,21 +211,20 @@ Keywords: API,Kaggle
211
211
  Classifier: License :: OSI Approved :: Apache Software License
212
212
  Classifier: Operating System :: OS Independent
213
213
  Classifier: Programming Language :: Python :: 3
214
- Requires-Python: >=3.7
214
+ Requires-Python: >=3.11
215
+ Requires-Dist: black>=24.10.0
215
216
  Requires-Dist: bleach
216
- Requires-Dist: certifi>=14.05.14
217
- Requires-Dist: charset-normalizer
218
- Requires-Dist: idna
217
+ Requires-Dist: kagglesdk
218
+ Requires-Dist: mypy>=1.15.0
219
219
  Requires-Dist: protobuf
220
- Requires-Dist: python-dateutil>=2.5.3
221
220
  Requires-Dist: python-slugify
222
221
  Requires-Dist: requests
223
222
  Requires-Dist: setuptools>=21.0.0
224
223
  Requires-Dist: six>=1.10
225
- Requires-Dist: text-unidecode
226
224
  Requires-Dist: tqdm
225
+ Requires-Dist: types-requests
226
+ Requires-Dist: types-tqdm
227
227
  Requires-Dist: urllib3>=1.15.1
228
- Requires-Dist: webencodings
229
228
  Description-Content-Type: text/markdown
230
229
 
231
230
  # Kaggle API
@@ -253,13 +252,6 @@ or adding to those services, you should be working in your Kaggle mid-tier devel
253
252
  environment. You'll run Kaggle locally, in the container, and test the Python code by
254
253
  running it in the container so it can connect to your local testing environment.
255
254
 
256
- Also, run the following command to get `autogen.sh` installed:
257
- ```bash
258
- rm -rf /tmp/autogen && mkdir -p /tmp/autogen && unzip -qo /tmp/autogen.zip -d /tmp/autogen &&
259
- mv /tmp/autogen/autogen-*/* /tmp/autogen && rm -rf /tmp/autogen/autogen-* &&
260
- sudo chmod a+rx /tmp/autogen/autogen.sh
261
- ```
262
-
263
255
  ### Prerequisites
264
256
 
265
257
  We use [hatch](https://hatch.pypa.io) to manage this project.
@@ -287,6 +279,10 @@ All the changes must be done in the `src/` directory.
287
279
 
288
280
  ### Run
289
281
 
282
+ Use `hatch run install` to compile the program and install it in the default `hatch` environment.
283
+ To run that version locally for testing, use hatch: `hatch run kaggle -v`. If you'd rather not
284
+ type `hatch run` every time, launch a new shell in the hatch environment: `hatch shell`.
285
+
290
286
  You can also run the code in python directly:
291
287
 
292
288
  ```sh
@@ -23,13 +23,6 @@ or adding to those services, you should be working in your Kaggle mid-tier devel
23
23
  environment. You'll run Kaggle locally, in the container, and test the Python code by
24
24
  running it in the container so it can connect to your local testing environment.
25
25
 
26
- Also, run the following command to get `autogen.sh` installed:
27
- ```bash
28
- rm -rf /tmp/autogen && mkdir -p /tmp/autogen && unzip -qo /tmp/autogen.zip -d /tmp/autogen &&
29
- mv /tmp/autogen/autogen-*/* /tmp/autogen && rm -rf /tmp/autogen/autogen-* &&
30
- sudo chmod a+rx /tmp/autogen/autogen.sh
31
- ```
32
-
33
26
  ### Prerequisites
34
27
 
35
28
  We use [hatch](https://hatch.pypa.io) to manage this project.
@@ -57,6 +50,10 @@ All the changes must be done in the `src/` directory.
57
50
 
58
51
  ### Run
59
52
 
53
+ Use `hatch run install` to compile the program and install it in the default `hatch` environment.
54
+ To run that version locally for testing, use hatch: `hatch run kaggle -v`. If you'd rather not
55
+ type `hatch run` every time, launch a new shell in the hatch environment: `hatch shell`.
56
+
60
57
  You can also run the code in python directly:
61
58
 
62
59
  ```sh
@@ -25,30 +25,12 @@ IMPORTANT: We do not offer Python 2 support. Please ensure that you are using P
25
25
 
26
26
  ## API credentials
27
27
 
28
- To use the Kaggle API, sign up for a Kaggle account at https://www.kaggle.com. Then go to the 'Account' tab of your user profile (`https://www.kaggle.com/<username>/account`) and select 'Create API Token'. This will trigger the download of `kaggle.json`, a file containing your API credentials.
29
- Place this file in the location appropriate for your operating system:
30
- * Linux: `$XDG_CONFIG_HOME/kaggle/kaggle.json` (defaults to `~/.config/kaggle/kaggle.json`). The path `~/.kaggle/kaggle.json` which was used by older versions of the tool is also still supported.
31
- * Windows: `C:\Users\<Windows-username>\.kaggle\kaggle.json` - you can check the exact location, sans drive, with `echo %HOMEPATH%`.
32
- * Other: `~/.kaggle/kaggle.json`
28
+ To use the Kaggle API, sign up for a Kaggle account at https://www.kaggle.com. Then go to the 'Account' tab of your user profile (`https://www.kaggle.com/<username>/account`) and select 'Generate New Token'. Copy the generated token and save it in an environment
29
+ variable named `KAGGLE_API_TOKEN` or place the value in a file named `~/.kaggle/access_token`. (The file may optionally have a `.txt` extension.)
33
30
 
34
- You can define a shell environment variable `KAGGLE_CONFIG_DIR` to change this location to `$KAGGLE_CONFIG_DIR/kaggle.json` (on Windows it will be `%KAGGLE_CONFIG_DIR%\kaggle.json`).
35
-
36
-
37
- For your security, ensure that other users of your computer do not have read access to your credentials. On Unix-based systems you can do this with the following command:
38
-
39
- `chmod 600 ~/.config/kaggle/kaggle.json`
40
-
41
- You can also choose to export your Kaggle username and token to the environment:
42
-
43
- ```bash
44
- export KAGGLE_USERNAME=datadinosaur
45
- export KAGGLE_KEY=xxxxxxxxxxxxxx
46
- ```
47
- In addition, you can export any other configuration value that normally would be in
48
- the `kaggle.json` in the format 'KAGGLE_<VARIABLE>' (note uppercase).
49
- For example, if the file had the variable "proxy" you would export `KAGGLE_PROXY`
50
- and it would be discovered by the client.
31
+ Note: If you already have a `~/.kaggle/kaggle.json` file with legacy API credentials, it will continue to work.
51
32
 
33
+ What's noteworthy is that now when generating new tokens you do not have to update existing token usage. The old tokens will continue to work; previously they expired when a new token was generated.
52
34
 
53
35
  ## Commands
54
36
 
@@ -260,7 +242,7 @@ optional arguments:
260
242
  --sort-by SORT_BY Sort list results. Default is 'hottest'. Valid options are 'hottest', 'votes', 'updated', and 'active'
261
243
  --max-size MAX_SIZE Specify the maximum size of the dataset to return (bytes)
262
244
  --min-size MIN_SIZE Specify the minimum size of the dataset to return (bytes)
263
- --file-type FILE_TYPE Search for datasets with a specific file type. Default is 'all'. Valid options are 'all', 'csv', 'sqlite', 'json', and 'bigQuery'. Please note that bigQuery datasets cannot be downloaded
245
+ --file-type FILE_TYPE Search for datasets with a specific file type. Default is 'all'. Valid options are 'all', 'csv', 'sqlite', 'json', 'parquet', and 'bigQuery'. Please note that bigQuery datasets cannot be downloaded
264
246
  --license LICENSE_NAME
265
247
  Search for datasets with a specific license. Default is 'all'. Valid options are 'all', 'cc', 'gpl', 'odb', and 'other'
266
248
  --tags TAG_IDS Search for datasets that have specific tags. Tag list should be comma separated
@@ -428,6 +410,22 @@ Example:
428
410
 
429
411
  `kaggle datasets status zillow/zecon`
430
412
 
413
+ ##### Delete a dataset
414
+
415
+ ```
416
+ usage: kaggle datasets delete [-y] [-h] [dataset]
417
+
418
+ required arguments:
419
+ dataset Dataset URL suffix in format <owner>/<dataset-name> (use "kaggle datasets list" to show options)
420
+
421
+ optional arguments:
422
+ -h, --help show this help message and exit
423
+ -ym --yes Sets any confirmation values to "yes" automatically. Users will not be asked to confirm.
424
+ ```
425
+
426
+ Example:
427
+
428
+ `kaggle datasets delete -y lastplacelarry/testdataset`
431
429
 
432
430
  ### Kernels
433
431
 
@@ -440,15 +438,34 @@ optional arguments:
440
438
  -h, --help show this help message and exit
441
439
 
442
440
  commands:
443
- {list,init,push,pull,output,status}
441
+ {get,list,init,push,pull,output,status}
442
+ get Get the code for a kernel (formerly pull)
444
443
  list List available kernels
445
444
  init Initialize metadata file for a kernel
446
- push Push new code to a kernel and run the kernel
447
- pull Pull down code from a kernel
445
+ push Deprecated by update: Push new code to a kernel and run the kernel
446
+ pull Deprecated by get: Pull down code from a kernel
448
447
  output Get data output from the latest kernel run
448
+ update Update a kernel with new code and run it (formerly push)
449
449
  status Display the status of the latest kernel run
450
450
  ```
451
451
 
452
+ ##### Get a kernel
453
+
454
+ ```
455
+ usage: kaggle kernels get [-h] [-p PATH] [-w] [-m] [kernel]
456
+
457
+ optional arguments:
458
+ -h, --help show this help message and exit
459
+ kernel Kernel URL suffix in format <owner>/<kernel-name> (use "kaggle kernels list" to show options)
460
+ -p PATH, --path PATH Folder where file(s) will be downloaded, defaults to current working directory
461
+ -w, --wp Download files to current working path
462
+ -m, --metadata Generate metadata when pulling kernel
463
+ ```
464
+
465
+ Example:
466
+
467
+ `kaggle kernels get rtatman/list-of-5-day-challenges -p /path/to/dest`
468
+
452
469
  ##### List kernels
453
470
 
454
471
  ```
@@ -500,8 +517,8 @@ optional arguments:
500
517
  Example:
501
518
 
502
519
  `kaggle kernels init -p /path/to/folder`
503
-
504
- ##### Push a kernel
520
+
521
+ ##### Push a kernel (deprecated, use update)
505
522
 
506
523
  ```
507
524
  usage: kaggle kernels push [-h] -p FOLDER
@@ -518,7 +535,7 @@ Example:
518
535
 
519
536
  `kaggle kernels push -p /path/to/folder`
520
537
 
521
- ##### Pull a kernel
538
+ ##### Pull a kernel (deprecated, use get)
522
539
 
523
540
  ```
524
541
  usage: kaggle kernels pull [-h] [-p PATH] [-w] [-m] [kernel]
@@ -555,6 +572,27 @@ Example:
555
572
 
556
573
  `kaggle kernels output mrisdal/exploring-survival-on-the-titanic -p /path/to/dest`
557
574
 
575
+ ##### Update a kernel
576
+
577
+ ```
578
+ usage: kaggle kernels update [-h] -p FOLDER
579
+
580
+ This command should only be used after "get". Use "create" to create a new kernel.
581
+
582
+ optional arguments:
583
+ -h, --help show this help message and exit
584
+ -t N, --timeout N Limit the run time of a kernel to the given number of seconds.
585
+ The global maximum time will not be exceeded.
586
+ -p FOLDER, --path FOLDER
587
+ Folder for upload, containing data files and a special kernel-metadata.json file
588
+ (https://github.com/Kaggle/kaggle-api/wiki/Kernel-Metadata).
589
+ Defaults to current working directory
590
+ ```
591
+
592
+ Example:
593
+
594
+ `kaggle kernels update -p /path/to/folder`
595
+
558
596
  ##### Get the status of the latest kernel run
559
597
 
560
598
  ```
@@ -29,37 +29,37 @@
29
29
  import os
30
30
  import sys
31
31
 
32
- sys.path.insert(0, os.path.abspath('.'))
32
+ sys.path.insert(0, os.path.abspath("."))
33
33
 
34
34
  # -- Project information -----------------------------------------------------
35
35
 
36
- project = 'kaggle'
37
- copyright = '2024, kaggle'
38
- author = 'kaggle'
36
+ project = "kaggle"
37
+ copyright = "2024, kaggle"
38
+ author = "kaggle"
39
39
 
40
40
  # -- General configuration ---------------------------------------------------
41
41
 
42
42
  # Add any Sphinx extension module names here, as strings. They can be
43
43
  # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
44
44
  # ones.
45
- extensions = ['sphinxarg.ext']
45
+ extensions = ["sphinxarg.ext"]
46
46
 
47
47
  # Add any paths that contain templates here, relative to this directory.
48
- templates_path = ['_templates']
48
+ templates_path = ["_templates"]
49
49
 
50
50
  # List of patterns, relative to source directory, that match files and
51
51
  # directories to ignore when looking for source files.
52
52
  # This pattern also affects html_static_path and html_extra_path.
53
- exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
53
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
54
54
 
55
55
  # -- Options for HTML output -------------------------------------------------
56
56
 
57
57
  # The theme to use for HTML and HTML Help pages. See the documentation for
58
58
  # a list of builtin themes.
59
59
  #
60
- html_theme = 'alabaster'
60
+ html_theme = "alabaster"
61
61
 
62
62
  # Add any paths that contain custom static files (such as style sheets) here,
63
63
  # relative to this directory. They are copied after the builtin static files,
64
64
  # so a file named "default.css" will overwrite the builtin "default.css".
65
- html_static_path = ['_static']
65
+ html_static_path = ["_static"]
@@ -0,0 +1,24 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+ SPHINX_APIDOC_OPTIONS=members,show-inheritance
11
+
12
+ # Put it first so that "make" without argument is like "make help".
13
+ help:
14
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
15
+
16
+ .PHONY: help Makefile
17
+
18
+ # Catch-all target: route all unknown targets to Sphinx using the new
19
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
20
+ %: Makefile
21
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
22
+
23
+ cleaner: Makefile
24
+ rm -rf _build source
@@ -0,0 +1,216 @@
1
+ # Competitions Commands
2
+
3
+ Commands for interacting with Kaggle competitions.
4
+
5
+ For tutorials on how to submit to competitions :
6
+ * [How to Submit to a Competition](./tutorials.md#tutorial-how-to-submit-to-a-competition)
7
+ * [How to Submit to a Code Competition](./tutorials.md#tutorial-how-to-submit-to-a-code-competition)
8
+
9
+ ## `kaggle competitions list`
10
+
11
+ Lists available competitions.
12
+
13
+ **Usage:**
14
+
15
+ ```bash
16
+ kaggle competitions list [options]
17
+ ```
18
+
19
+ **Options:**
20
+
21
+ * `--group <GROUP>`: Filter by competition group. Valid options: `general`, `entered`, `inClass`.
22
+ * `--category <CATEGORY>`: Filter by competition category. Valid options: `all`, `featured`, `research`, `recruitment`, `gettingStarted`, `masters`, `playground`.
23
+ * `--sort-by <SORT_BY>`: Sort results. Valid options: `grouped`, `prize`, `earliestDeadline`, `latestDeadline`, `numberOfTeams`, `recentlyCreated` (default: `latestDeadline`).
24
+ * `-p, --page <PAGE>`: Page number for results (default: 1).
25
+ * `-s, --search <SEARCH_TERM>`: Search term.
26
+ * `-v, --csv`: Print results in CSV format.
27
+
28
+ **Example:**
29
+
30
+ List featured competitions in the general group, sorted by prize:
31
+
32
+ ```bash
33
+ kaggle competitions list --group general --category featured --sort-by prize
34
+ ```
35
+
36
+ **Purpose:**
37
+
38
+ This command helps you discover new competitions or find specific ones based on various criteria.
39
+
40
+ ## `kaggle competitions files`
41
+
42
+ Lists files for a specific competition.
43
+
44
+ **Usage:**
45
+
46
+ ```bash
47
+ kaggle competitions files <COMPETITION> [options]
48
+ ```
49
+
50
+ **Arguments:**
51
+
52
+ * `<COMPETITION>`: Competition URL suffix (e.g., `titanic`).
53
+
54
+ **Options:**
55
+
56
+ * `-v, --csv`: Print results in CSV format.
57
+ * `-q, --quiet`: Suppress verbose output.
58
+ * `--page-token <PAGE_TOKEN>`: Page token for results paging.
59
+ * `--page-size <PAGE_SIZE>`: Number of items to show on a page (default: 20, max: 200).
60
+
61
+ **Example:**
62
+
63
+ List the first 3 files for the "titanic" competition in CSV format, quietly:
64
+
65
+ ```bash
66
+ kaggle competitions files titanic --page-size=3 -v -q
67
+ ```
68
+
69
+ **Purpose:**
70
+
71
+ Use this command to see the data files available for a competition before downloading them.
72
+
73
+ ## `kaggle competitions download`
74
+
75
+ Downloads competition files.
76
+
77
+ **Usage:**
78
+
79
+ ```bash
80
+ kaggle competitions download <COMPETITION> [options]
81
+ ```
82
+
83
+ **Arguments:**
84
+
85
+ * `<COMPETITION>`: Competition URL suffix (e.g., `titanic`).
86
+
87
+ **Options:**
88
+
89
+ * `-f, --file <FILE_NAME>`: Specific file to download (downloads all if not specified).
90
+ * `-p, --path <PATH>`: Folder to download files to (defaults to current directory).
91
+ * `-w, --wp`: Download files to the current working path (equivalent to `-p .`).
92
+ * `-o, --force`: Force download, overwriting existing files.
93
+ * `-q, --quiet`: Suppress verbose output.
94
+
95
+ **Examples:**
96
+
97
+ 1. Download all files for the "titanic" competition to the current directory, overwriting existing files, quietly:
98
+
99
+ ```bash
100
+ kaggle competitions download titanic -w -o -q
101
+ ```
102
+
103
+ 2. Download the `test.csv` file from the "titanic" competition to a folder named `tost`:
104
+
105
+ ```bash
106
+ kaggle competitions download titanic -f test.csv -p tost
107
+ ```
108
+
109
+ **Purpose:**
110
+
111
+ This command allows you to get the necessary data files for a competition onto your local machine.
112
+
113
+ ## `kaggle competitions submit`
114
+
115
+ Makes a new submission to a competition.
116
+
117
+ **Usage:**
118
+
119
+ ```bash
120
+ kaggle competitions submit <COMPETITION> -f <FILE_NAME> -m <MESSAGE> [options]
121
+ ```
122
+
123
+ **Arguments:**
124
+
125
+ * `<COMPETITION>`: Competition URL suffix (e.g., `house-prices-advanced-regression-techniques`).
126
+ * `-f, --file <FILE_NAME>`: The submission file.
127
+ * `-m, --message <MESSAGE>`: The submission message.
128
+
129
+ **Options:**
130
+
131
+ * `-k, --kernel <KERNEL>`: Name of the kernel (notebook) to submit (for code competitions).
132
+ * `-v, --version <VERSION>`: Version of the kernel to submit.
133
+ * `-q, --quiet`: Suppress verbose output.
134
+
135
+ **Example:**
136
+
137
+ Submit `sample_submission.csv` to the "house-prices-advanced-regression-techniques" competition with the message "Test message":
138
+
139
+ ```bash
140
+ kaggle competitions submit house-prices-advanced-regression-techniques -f sample_submission.csv -m "Test message"
141
+ ```
142
+
143
+ **Purpose:**
144
+
145
+ Use this command to upload your predictions or code to a competition for scoring.
146
+
147
+ ## `kaggle competitions submissions`
148
+
149
+ Shows your past submissions for a competition.
150
+
151
+ **Usage:**
152
+
153
+ ```bash
154
+ kaggle competitions submissions <COMPETITION> [options]
155
+ ```
156
+
157
+ **Arguments:**
158
+
159
+ * `<COMPETITION>`: Competition URL suffix (e.g., `house-prices-advanced-regression-techniques`).
160
+
161
+ **Options:**
162
+
163
+ * `-v, --csv`: Print results in CSV format.
164
+ * `-q, --quiet`: Suppress verbose output.
165
+
166
+ **Example:**
167
+
168
+ Show submissions for "house-prices-advanced-regression-techniques" in CSV format, quietly:
169
+
170
+ ```bash
171
+ kaggle competitions submissions house-prices-advanced-regression-techniques -v -q
172
+ ```
173
+
174
+ **Purpose:**
175
+
176
+ This command allows you to review your previous submission attempts and their scores.
177
+
178
+ ## `kaggle competitions leaderboard`
179
+
180
+ Gets competition leaderboard information.
181
+
182
+ **Usage:**
183
+
184
+ ```bash
185
+ kaggle competitions leaderboard <COMPETITION> [options]
186
+ ```
187
+
188
+ **Arguments:**
189
+
190
+ * `<COMPETITION>`: Competition URL suffix (e.g., `titanic`).
191
+
192
+ **Options:**
193
+
194
+ * `-s, --show`: Show the top of the leaderboard in the console.
195
+ * `-d, --download`: Download the entire leaderboard to a CSV file.
196
+ * `-p, --path <PATH>`: Folder to download the leaderboard to (if `-d` is used).
197
+ * `-v, --csv`: Print results in CSV format (used with `-s`).
198
+ * `-q, --quiet`: Suppress verbose output.
199
+
200
+ **Examples:**
201
+
202
+ 1. Download the "titanic" leaderboard to a folder named `leaders`, quietly:
203
+
204
+ ```bash
205
+ kaggle competitions leaderboard titanic -d -p leaders -q
206
+ ```
207
+
208
+ 2. Download the leaderboard and save it to `leaderboard.txt`:
209
+
210
+ ```bash
211
+ kaggle competitions leaderboard titanic > leaderboard.txt
212
+ ```
213
+
214
+ **Purpose:**
215
+
216
+ This command lets you view your ranking and the scores of other participants in a competition.