kaggle 1.8.3__py3-none-any.whl → 1.8.4__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.
@@ -1,240 +0,0 @@
1
- #!/usr/bin/python
2
- #
3
- # Copyright 2024 Kaggle Inc
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # coding: utf-8
18
-
19
- import pprint
20
- import re # noqa: F401
21
-
22
- import six
23
-
24
-
25
- class StartBlobUploadRequest(object):
26
- """
27
- Attributes:
28
- project_types (dict): The key is attribute name
29
- and the value is attribute type.
30
- attribute_map (dict): The key is attribute name
31
- and the value is json key in definition.
32
- """
33
-
34
- project_types = {
35
- "type": "object",
36
- "name": "str",
37
- "content_length": "int",
38
- "content_type": "str",
39
- "last_modified_epoch_seconds": "int",
40
- }
41
-
42
- attribute_map = {
43
- "type": "type",
44
- "name": "name",
45
- "content_length": "contentLength",
46
- "content_type": "contentType",
47
- "last_modified_epoch_seconds": "lastModifiedEpochSeconds",
48
- }
49
-
50
- def __init__(
51
- self, type=None, name=None, content_length=None, content_type=None, last_modified_epoch_seconds=None
52
- ): # noqa: E501
53
- """StartBlobUploadRequest - a model defined in Swagger""" # noqa: E501
54
-
55
- self._type = None
56
- self._name = None
57
- self._content_length = None
58
- self._content_type = None
59
- self._last_modified_epoch_seconds = None
60
- self.discriminator = None
61
-
62
- if type is not None:
63
- self.type = type
64
- self.name = name
65
- self.content_length = content_length
66
- if content_type is not None:
67
- self.content_type = content_type
68
- if last_modified_epoch_seconds is not None:
69
- self.last_modified_epoch_seconds = last_modified_epoch_seconds
70
-
71
- @property
72
- def type(self):
73
- """Gets the type of this StartBlobUploadRequest. # noqa: E501.
74
-
75
- The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
76
- noqa: E501
77
-
78
- :return: The type of this StartBlobUploadRequest. # noqa: E501
79
- :rtype: object
80
- """
81
- return self._type
82
-
83
- @type.setter
84
- def type(self, type):
85
- """Sets the type of this StartBlobUploadRequest.
86
-
87
- The type of the blob (one of \"dataset\", \"model\", \"inbox\") #
88
- noqa: E501
89
-
90
- :param type: The type of this StartBlobUploadRequest. # noqa: E501
91
- :type: object
92
- """
93
-
94
- self._type = type
95
-
96
- @property
97
- def name(self):
98
- """Gets the name of this StartBlobUploadRequest. # noqa: E501.
99
-
100
- Name of the file # noqa: E501
101
-
102
- :return: The name of this StartBlobUploadRequest. # noqa: E501
103
- :rtype: str
104
- """
105
- return self._name
106
-
107
- @name.setter
108
- def name(self, name):
109
- """Sets the name of this StartBlobUploadRequest.
110
-
111
- Name of the file # noqa: E501
112
-
113
- :param name: The name of this StartBlobUploadRequest. # noqa: E501
114
- :type: str
115
- """
116
- if name is None:
117
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
118
-
119
- self._name = name
120
-
121
- @property
122
- def content_length(self):
123
- """Gets the content_length of this StartBlobUploadRequest. # noqa: E501.
124
-
125
- Content length of the file in bytes # noqa: E501
126
-
127
- :return: The content_length of this StartBlobUploadRequest. # noqa:
128
- E501
129
- :rtype: int
130
- """
131
- return self._content_length
132
-
133
- @content_length.setter
134
- def content_length(self, content_length):
135
- """Sets the content_length of this StartBlobUploadRequest.
136
-
137
- Content length of the file in bytes # noqa: E501
138
-
139
- :param content_length: The content_length of this
140
- StartBlobUploadRequest. # noqa: E501
141
- :type: int
142
- """
143
- if content_length is None:
144
- raise ValueError("Invalid value for `content_length`, must not be `None`") # noqa: E501
145
-
146
- self._content_length = content_length
147
-
148
- @property
149
- def content_type(self):
150
- """Gets the content_type of this StartBlobUploadRequest. # noqa: E501.
151
-
152
- Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
153
-
154
- :return: The content_type of this StartBlobUploadRequest. # noqa:
155
- E501
156
- :rtype: str
157
- """
158
- return self._content_type
159
-
160
- @content_type.setter
161
- def content_type(self, content_type):
162
- """Sets the content_type of this StartBlobUploadRequest.
163
-
164
- Content/MIME type (e.g. \"text/plain\") of the file # noqa: E501
165
-
166
- :param content_type: The content_type of this
167
- StartBlobUploadRequest. # noqa: E501
168
- :type: str
169
- """
170
-
171
- self._content_type = content_type
172
-
173
- @property
174
- def last_modified_epoch_seconds(self):
175
- """Gets the last_modified_epoch_seconds of this StartBlobUploadRequest. #
176
- noqa: E501.
177
-
178
- Last modified date of file in seconds since epoch in UTC # noqa:
179
- E501
180
-
181
- :return: The last_modified_epoch_seconds of this
182
- StartBlobUploadRequest. # noqa: E501
183
- :rtype: int
184
- """
185
- return self._last_modified_epoch_seconds
186
-
187
- @last_modified_epoch_seconds.setter
188
- def last_modified_epoch_seconds(self, last_modified_epoch_seconds):
189
- """Sets the last_modified_epoch_seconds of this StartBlobUploadRequest.
190
-
191
- Last modified date of file in seconds since epoch in UTC # noqa:
192
- E501
193
-
194
- :param last_modified_epoch_seconds: The last_modified_epoch_seconds
195
- of this StartBlobUploadRequest. # noqa: E501
196
- :type: int
197
- """
198
-
199
- self._last_modified_epoch_seconds = last_modified_epoch_seconds
200
-
201
- def to_dict(self):
202
- """Returns the model properties as a dict."""
203
- result = {}
204
-
205
- for attr, _ in six.iteritems(self.project_types):
206
- value = getattr(self, attr)
207
- if isinstance(value, list):
208
- result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
209
- elif hasattr(value, "to_dict"):
210
- result[attr] = value.to_dict()
211
- elif isinstance(value, dict):
212
- result[attr] = dict(
213
- map(
214
- lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
215
- value.items(),
216
- )
217
- )
218
- else:
219
- result[attr] = value
220
-
221
- return result
222
-
223
- def to_str(self):
224
- """Returns the string representation of the model."""
225
- return pprint.pformat(self.to_dict())
226
-
227
- def __repr__(self):
228
- """For `print` and `pprint`"""
229
- return self.to_str()
230
-
231
- def __eq__(self, other):
232
- """Returns true if both objects are equal."""
233
- if not isinstance(other, StartBlobUploadRequest):
234
- return False
235
-
236
- return self.__dict__ == other.__dict__
237
-
238
- def __ne__(self, other):
239
- """Returns true if both objects are not equal."""
240
- return not self == other
@@ -1,142 +0,0 @@
1
- #!/usr/bin/python
2
- #
3
- # Copyright 2024 Kaggle Inc
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # coding: utf-8
18
-
19
- import pprint
20
- import re # noqa: F401
21
-
22
- import six
23
-
24
-
25
- class StartBlobUploadResponse(object):
26
- """
27
- Attributes:
28
- project_types (dict): The key is attribute name
29
- and the value is attribute type.
30
- attribute_map (dict): The key is attribute name
31
- and the value is json key in definition.
32
- """
33
-
34
- project_types = {"token": "str", "create_url": "str"}
35
-
36
- attribute_map = {"token": "token", "create_url": "createUrl"}
37
-
38
- def __init__(self, token=None, create_url=None): # noqa: E501
39
- """StartBlobUploadResponse - a model defined in Swagger""" # noqa: E501
40
-
41
- self._token = None
42
- self._create_url = None
43
- self.discriminator = None
44
-
45
- self.token = token
46
- self.create_url = create_url
47
-
48
- @property
49
- def token(self):
50
- """Gets the token of this StartBlobUploadResponse. # noqa: E501.
51
-
52
- Opaque string token used to reference the new blob/file. # noqa:
53
- E501
54
-
55
- :return: The token of this StartBlobUploadResponse. # noqa: E501
56
- :rtype: str
57
- """
58
- return self._token
59
-
60
- @token.setter
61
- def token(self, token):
62
- """Sets the token of this StartBlobUploadResponse.
63
-
64
- Opaque string token used to reference the new blob/file. # noqa:
65
- E501
66
-
67
- :param token: The token of this StartBlobUploadResponse. # noqa:
68
- E501
69
- :type: str
70
- """
71
- if token is None:
72
- raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501
73
-
74
- self._token = token
75
-
76
- @property
77
- def create_url(self):
78
- """Gets the create_url of this StartBlobUploadResponse. # noqa: E501.
79
-
80
- URL to use to start the upload. # noqa: E501
81
-
82
- :return: The create_url of this StartBlobUploadResponse. # noqa:
83
- E501
84
- :rtype: str
85
- """
86
- return self._create_url
87
-
88
- @create_url.setter
89
- def create_url(self, create_url):
90
- """Sets the create_url of this StartBlobUploadResponse.
91
-
92
- URL to use to start the upload. # noqa: E501
93
-
94
- :param create_url: The create_url of this StartBlobUploadResponse. #
95
- noqa: E501
96
- :type: str
97
- """
98
- if create_url is None:
99
- raise ValueError("Invalid value for `create_url`, must not be `None`") # noqa: E501
100
-
101
- self._create_url = create_url
102
-
103
- def to_dict(self):
104
- """Returns the model properties as a dict."""
105
- result = {}
106
-
107
- for attr, _ in six.iteritems(self.project_types):
108
- value = getattr(self, attr)
109
- if isinstance(value, list):
110
- result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
111
- elif hasattr(value, "to_dict"):
112
- result[attr] = value.to_dict()
113
- elif isinstance(value, dict):
114
- result[attr] = dict(
115
- map(
116
- lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
117
- value.items(),
118
- )
119
- )
120
- else:
121
- result[attr] = value
122
-
123
- return result
124
-
125
- def to_str(self):
126
- """Returns the string representation of the model."""
127
- return pprint.pformat(self.to_dict())
128
-
129
- def __repr__(self):
130
- """For `print` and `pprint`"""
131
- return self.to_str()
132
-
133
- def __eq__(self, other):
134
- """Returns true if both objects are equal."""
135
- if not isinstance(other, StartBlobUploadResponse):
136
- return False
137
-
138
- return self.__dict__ == other.__dict__
139
-
140
- def __ne__(self, other):
141
- """Returns true if both objects are not equal."""
142
- return not self == other
@@ -1,28 +0,0 @@
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,,
File without changes