evo-files 0.2.1__py3-none-any.whl → 0.2.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.
- evo/files/endpoints/__init__.py +1 -1
- evo/files/endpoints/api/file_v2_api.py +9 -8
- evo/files/io.py +11 -1
- {evo_files-0.2.1.dist-info → evo_files-0.2.3.dist-info}/METADATA +1 -1
- {evo_files-0.2.1.dist-info → evo_files-0.2.3.dist-info}/RECORD +7 -7
- {evo_files-0.2.1.dist-info → evo_files-0.2.3.dist-info}/WHEEL +0 -0
- {evo_files-0.2.1.dist-info → evo_files-0.2.3.dist-info}/licenses/LICENSE.md +0 -0
evo/files/endpoints/__init__.py
CHANGED
|
@@ -24,11 +24,12 @@ For more information on using the File API, see [Overview](https://developer.see
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
This code is generated from the OpenAPI specification for File API.
|
|
27
|
-
API version: 2.
|
|
27
|
+
API version: 2.10.0
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
from evo.common.connector import APIConnector
|
|
31
31
|
from evo.common.data import EmptyResponse, RequestMethod
|
|
32
|
+
from evo.common.utils import get_header_metadata
|
|
32
33
|
|
|
33
34
|
from ..models import * # noqa: F403
|
|
34
35
|
|
|
@@ -95,7 +96,7 @@ class FileV2Api:
|
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
# Prepare the header parameters.
|
|
98
|
-
_header_params = {}
|
|
99
|
+
_header_params = {} | get_header_metadata(__name__)
|
|
99
100
|
if additional_headers is not None:
|
|
100
101
|
_header_params.update(additional_headers)
|
|
101
102
|
|
|
@@ -161,7 +162,7 @@ class FileV2Api:
|
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
# Prepare the header parameters.
|
|
164
|
-
_header_params = {}
|
|
165
|
+
_header_params = {} | get_header_metadata(__name__)
|
|
165
166
|
if additional_headers is not None:
|
|
166
167
|
_header_params.update(additional_headers)
|
|
167
168
|
|
|
@@ -249,7 +250,7 @@ class FileV2Api:
|
|
|
249
250
|
# Prepare the header parameters.
|
|
250
251
|
_header_params = {
|
|
251
252
|
"Accept": "application/json",
|
|
252
|
-
}
|
|
253
|
+
} | get_header_metadata(__name__)
|
|
253
254
|
if additional_headers is not None:
|
|
254
255
|
_header_params.update(additional_headers)
|
|
255
256
|
|
|
@@ -332,7 +333,7 @@ class FileV2Api:
|
|
|
332
333
|
# Prepare the header parameters.
|
|
333
334
|
_header_params = {
|
|
334
335
|
"Accept": "application/json",
|
|
335
|
-
}
|
|
336
|
+
} | get_header_metadata(__name__)
|
|
336
337
|
if additional_headers is not None:
|
|
337
338
|
_header_params.update(additional_headers)
|
|
338
339
|
|
|
@@ -458,7 +459,7 @@ class FileV2Api:
|
|
|
458
459
|
# Prepare the header parameters.
|
|
459
460
|
_header_params = {
|
|
460
461
|
"Accept": "application/json",
|
|
461
|
-
}
|
|
462
|
+
} | get_header_metadata(__name__)
|
|
462
463
|
if additional_headers is not None:
|
|
463
464
|
_header_params.update(additional_headers)
|
|
464
465
|
|
|
@@ -546,7 +547,7 @@ class FileV2Api:
|
|
|
546
547
|
# Prepare the header parameters.
|
|
547
548
|
_header_params = {
|
|
548
549
|
"Accept": "application/json",
|
|
549
|
-
}
|
|
550
|
+
} | get_header_metadata(__name__)
|
|
550
551
|
if additional_headers is not None:
|
|
551
552
|
_header_params.update(additional_headers)
|
|
552
553
|
|
|
@@ -626,7 +627,7 @@ class FileV2Api:
|
|
|
626
627
|
# Prepare the header parameters.
|
|
627
628
|
_header_params = {
|
|
628
629
|
"Accept": "application/json",
|
|
629
|
-
}
|
|
630
|
+
} | get_header_metadata(__name__)
|
|
630
631
|
if additional_headers is not None:
|
|
631
632
|
_header_params.update(additional_headers)
|
|
632
633
|
|
evo/files/io.py
CHANGED
|
@@ -109,9 +109,19 @@ class FileAPIUpload(Upload, _FileIOMixin):
|
|
|
109
109
|
self._id = file_id
|
|
110
110
|
self._version_id = version_id
|
|
111
111
|
|
|
112
|
+
@property
|
|
113
|
+
def file_id(self) -> UUID:
|
|
114
|
+
"""The ID of the file that is being uploaded."""
|
|
115
|
+
return self._id
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def version_id(self) -> str:
|
|
119
|
+
"""The ID of the version that will be created after the upload completes."""
|
|
120
|
+
return self._version_id
|
|
121
|
+
|
|
112
122
|
@property
|
|
113
123
|
def label(self) -> str:
|
|
114
|
-
"""The file and version ID
|
|
124
|
+
"""The file and version ID of the file that is being uploaded."""
|
|
115
125
|
return f"{self._id}?version_id={self._version_id}"
|
|
116
126
|
|
|
117
127
|
async def get_upload_url(self) -> str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: evo-files
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Python SDK for using the Seequent Evo File API
|
|
5
5
|
Project-URL: Source, https://github.com/SeequentEvo/evo-python-sdk
|
|
6
6
|
Project-URL: Tracker, https://github.com/SeequentEvo/evo-python-sdk/issues
|
|
@@ -2,13 +2,13 @@ evo/files/__init__.py,sha256=jX2_a4BNg92QZFNEXaBpvpcSgbqRyOXrWx1JIkLUZqk,887
|
|
|
2
2
|
evo/files/_model_config.py,sha256=612yrPQyY-vquEboZdmSWkt8nT2ttbfBy476FyruV30,827
|
|
3
3
|
evo/files/client.py,sha256=-zfbeym3l9_3t-OjenWj-1k5ZVpLtpsNdmTiMi3PUVU,12847
|
|
4
4
|
evo/files/data.py,sha256=J9hieUY6LAeYhmIpRorMNcgjsYuSsO5R7_s1qnDAIlM,2380
|
|
5
|
-
evo/files/io.py,sha256=
|
|
5
|
+
evo/files/io.py,sha256=wlHEXusTOhSRLCU1FWUD4q0p7xiav6VPVEWNP4I40xk,6689
|
|
6
6
|
evo/files/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
evo/files/endpoints/__init__.py,sha256=
|
|
7
|
+
evo/files/endpoints/__init__.py,sha256=R2TBKqKH94CPUgEuftAAdm_gVp24Eepzv6romBDkDcY,1442
|
|
8
8
|
evo/files/endpoints/models.py,sha256=rz7wqkhfen9_wqQqj0mEUbKKnkA0AYniEe9QnoigdPY,4640
|
|
9
9
|
evo/files/endpoints/api/__init__.py,sha256=dHngHmRPwy-Kixoz7BP4ur4qzV4z9T2e8ccTqBtpuio,650
|
|
10
|
-
evo/files/endpoints/api/file_v2_api.py,sha256=
|
|
11
|
-
evo_files-0.2.
|
|
12
|
-
evo_files-0.2.
|
|
13
|
-
evo_files-0.2.
|
|
14
|
-
evo_files-0.2.
|
|
10
|
+
evo/files/endpoints/api/file_v2_api.py,sha256=1eLvxPuJuB_24u_pdPow-Dcsw8vP-nW0ghsAnzyt7qU,34401
|
|
11
|
+
evo_files-0.2.3.dist-info/METADATA,sha256=suQ3vq7fFWUGfScEP_cmsqx0VrpFbkd4mLjk-eNFgEA,3703
|
|
12
|
+
evo_files-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
evo_files-0.2.3.dist-info/licenses/LICENSE.md,sha256=HcFeRdOI-VP5WPEymQerlwLvEj2z_1Yh66RkN-wN7Oc,10778
|
|
14
|
+
evo_files-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|