studyfetch-sdk 0.1.0a16__py3-none-any.whl → 0.1.0a17__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.
- studyfetch_sdk/_version.py +1 -1
- studyfetch_sdk/resources/v1/upload/component.py +9 -10
- studyfetch_sdk/types/v1/upload/__init__.py +1 -2
- studyfetch_sdk/types/v1/upload/{component_upload_url_response.py → file_upload_response.py} +2 -2
- {studyfetch_sdk-0.1.0a16.dist-info → studyfetch_sdk-0.1.0a17.dist-info}/METADATA +1 -1
- {studyfetch_sdk-0.1.0a16.dist-info → studyfetch_sdk-0.1.0a17.dist-info}/RECORD +8 -9
- studyfetch_sdk/types/v1/upload/component_upload_file_response.py +0 -24
- {studyfetch_sdk-0.1.0a16.dist-info → studyfetch_sdk-0.1.0a17.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a16.dist-info → studyfetch_sdk-0.1.0a17.dist-info}/licenses/LICENSE +0 -0
studyfetch_sdk/_version.py
CHANGED
@@ -23,8 +23,7 @@ from ....types.v1.upload import (
|
|
23
23
|
component_complete_upload_params,
|
24
24
|
component_get_presigned_url_params,
|
25
25
|
)
|
26
|
-
from ....types.v1.upload.
|
27
|
-
from ....types.v1.upload.component_upload_file_response import ComponentUploadFileResponse
|
26
|
+
from ....types.v1.upload.file_upload_response import FileUploadResponse
|
28
27
|
from ....types.v1.upload.component_complete_upload_response import ComponentCompleteUploadResponse
|
29
28
|
from ....types.v1.upload.component_get_presigned_url_response import ComponentGetPresignedURLResponse
|
30
29
|
|
@@ -168,7 +167,7 @@ class ComponentResource(SyncAPIResource):
|
|
168
167
|
extra_query: Query | None = None,
|
169
168
|
extra_body: Body | None = None,
|
170
169
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
171
|
-
) ->
|
170
|
+
) -> FileUploadResponse:
|
172
171
|
"""
|
173
172
|
Upload a file to a component
|
174
173
|
|
@@ -208,7 +207,7 @@ class ComponentResource(SyncAPIResource):
|
|
208
207
|
options=make_request_options(
|
209
208
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
210
209
|
),
|
211
|
-
cast_to=
|
210
|
+
cast_to=FileUploadResponse,
|
212
211
|
)
|
213
212
|
|
214
213
|
def upload_url(
|
@@ -225,7 +224,7 @@ class ComponentResource(SyncAPIResource):
|
|
225
224
|
extra_query: Query | None = None,
|
226
225
|
extra_body: Body | None = None,
|
227
226
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
228
|
-
) ->
|
227
|
+
) -> FileUploadResponse:
|
229
228
|
"""
|
230
229
|
Upload a file from URL to a component
|
231
230
|
|
@@ -262,7 +261,7 @@ class ComponentResource(SyncAPIResource):
|
|
262
261
|
options=make_request_options(
|
263
262
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
264
263
|
),
|
265
|
-
cast_to=
|
264
|
+
cast_to=FileUploadResponse,
|
266
265
|
)
|
267
266
|
|
268
267
|
|
@@ -403,7 +402,7 @@ class AsyncComponentResource(AsyncAPIResource):
|
|
403
402
|
extra_query: Query | None = None,
|
404
403
|
extra_body: Body | None = None,
|
405
404
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
406
|
-
) ->
|
405
|
+
) -> FileUploadResponse:
|
407
406
|
"""
|
408
407
|
Upload a file to a component
|
409
408
|
|
@@ -443,7 +442,7 @@ class AsyncComponentResource(AsyncAPIResource):
|
|
443
442
|
options=make_request_options(
|
444
443
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
445
444
|
),
|
446
|
-
cast_to=
|
445
|
+
cast_to=FileUploadResponse,
|
447
446
|
)
|
448
447
|
|
449
448
|
async def upload_url(
|
@@ -460,7 +459,7 @@ class AsyncComponentResource(AsyncAPIResource):
|
|
460
459
|
extra_query: Query | None = None,
|
461
460
|
extra_body: Body | None = None,
|
462
461
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
463
|
-
) ->
|
462
|
+
) -> FileUploadResponse:
|
464
463
|
"""
|
465
464
|
Upload a file from URL to a component
|
466
465
|
|
@@ -497,7 +496,7 @@ class AsyncComponentResource(AsyncAPIResource):
|
|
497
496
|
options=make_request_options(
|
498
497
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
499
498
|
),
|
500
|
-
cast_to=
|
499
|
+
cast_to=FileUploadResponse,
|
501
500
|
)
|
502
501
|
|
503
502
|
|
@@ -2,10 +2,9 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
|
5
|
+
from .file_upload_response import FileUploadResponse as FileUploadResponse
|
5
6
|
from .component_upload_url_params import ComponentUploadURLParams as ComponentUploadURLParams
|
6
7
|
from .component_upload_file_params import ComponentUploadFileParams as ComponentUploadFileParams
|
7
|
-
from .component_upload_url_response import ComponentUploadURLResponse as ComponentUploadURLResponse
|
8
|
-
from .component_upload_file_response import ComponentUploadFileResponse as ComponentUploadFileResponse
|
9
8
|
from .component_complete_upload_params import ComponentCompleteUploadParams as ComponentCompleteUploadParams
|
10
9
|
from .component_complete_upload_response import ComponentCompleteUploadResponse as ComponentCompleteUploadResponse
|
11
10
|
from .component_get_presigned_url_params import ComponentGetPresignedURLParams as ComponentGetPresignedURLParams
|
@@ -4,10 +4,10 @@ from pydantic import Field as FieldInfo
|
|
4
4
|
|
5
5
|
from ...._models import BaseModel
|
6
6
|
|
7
|
-
__all__ = ["
|
7
|
+
__all__ = ["FileUploadResponse"]
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class FileUploadResponse(BaseModel):
|
11
11
|
id: str
|
12
12
|
"""The ID of the uploaded material"""
|
13
13
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: studyfetch_sdk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0a17
|
4
4
|
Summary: The official Python library for the studyfetch-sdk API
|
5
5
|
Project-URL: Homepage, https://github.com/GoStudyFetchGo/studyfetch-sdk-python
|
6
6
|
Project-URL: Repository, https://github.com/GoStudyFetchGo/studyfetch-sdk-python
|
@@ -11,7 +11,7 @@ studyfetch_sdk/_resource.py,sha256=y0aoAqMIYwTAwStuxbpO8XpTPnrSNQQ_ZcgiH5xcntg,1
|
|
11
11
|
studyfetch_sdk/_response.py,sha256=6ph8tSkqF5pNbTo_2Zhizhq2O-Eb67TcksHwyg3aXdc,28864
|
12
12
|
studyfetch_sdk/_streaming.py,sha256=HZoENuPVzWhBn24eH3lnMCvRbWN0EPwvhWYfdlJfw0A,10128
|
13
13
|
studyfetch_sdk/_types.py,sha256=6nvqHGarRGuhs_FL8tJ8sGXXD8XWajNynT2K78GxRUI,6205
|
14
|
-
studyfetch_sdk/_version.py,sha256=
|
14
|
+
studyfetch_sdk/_version.py,sha256=aF-udkHOz21mpAQ_3ettDZ19LQb6jCshuNW3yCFLHM4,175
|
15
15
|
studyfetch_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
studyfetch_sdk/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
studyfetch_sdk/_utils/_logs.py,sha256=EoZgOiIkpf2WB_0Ts0Ti7G3o_25v7IsPf_q-yEU6sbY,798
|
@@ -58,7 +58,7 @@ studyfetch_sdk/resources/v1/tests/__init__.py,sha256=7-K6i3WJPRCoMSOatJEqUhlz74S
|
|
58
58
|
studyfetch_sdk/resources/v1/tests/component.py,sha256=MJZIo4-ES4tkY9P1FJl8phjkQxGG8FBCe99ar0I_un4,6013
|
59
59
|
studyfetch_sdk/resources/v1/tests/tests.py,sha256=BGwXClZ8YkzegN80R0WDIrvK3WN1-ujtYkfR33ARhVU,24870
|
60
60
|
studyfetch_sdk/resources/v1/upload/__init__.py,sha256=N5r6jpSMe43dezq-6RBAWLVlL3-Z76lU7DG53phDGr8,1041
|
61
|
-
studyfetch_sdk/resources/v1/upload/component.py,sha256=
|
61
|
+
studyfetch_sdk/resources/v1/upload/component.py,sha256=Q-8VO-XiWYDFpzdap-NcP62V77dvMXfeJouFv8ELXkM,21803
|
62
62
|
studyfetch_sdk/resources/v1/upload/upload.py,sha256=RBkrsVi5_8qIqdYKypnSqj44ONvwW7u2XXIlpuJsKSg,3736
|
63
63
|
studyfetch_sdk/resources/v1/usage/__init__.py,sha256=zUBe7msw9tyZplhmwNkhbCfRigNQQVj4IFpod4uGWZY,1002
|
64
64
|
studyfetch_sdk/resources/v1/usage/analyst.py,sha256=BZC5QVnm6UWacrqodYFGXUodBM_b37I9jClbiXTakJo,13206
|
@@ -122,18 +122,17 @@ studyfetch_sdk/types/v1/scenarios/__init__.py,sha256=2DyrawNlb-TstNKw0gUMlQaNSq-
|
|
122
122
|
studyfetch_sdk/types/v1/scenarios/component_update_params.py,sha256=0wsa-_gN17TKmvhQBbCIQmN2gSEuCq2HBWjQaTqhFdk,1171
|
123
123
|
studyfetch_sdk/types/v1/scenarios/submissions/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
124
124
|
studyfetch_sdk/types/v1/tests/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
125
|
-
studyfetch_sdk/types/v1/upload/__init__.py,sha256=
|
125
|
+
studyfetch_sdk/types/v1/upload/__init__.py,sha256=oVLQUp-Sxua2NMNauXzopFmF34HjL_KZMjxlqMu7zW8,845
|
126
126
|
studyfetch_sdk/types/v1/upload/component_complete_upload_params.py,sha256=B3-7nCdLI4S_q0qa8NBS7gNwL0F8ljYVvEbo9fwCkXQ,687
|
127
127
|
studyfetch_sdk/types/v1/upload/component_complete_upload_response.py,sha256=fOWcCnkzzLlYtwKjmdh4X4hlGVOKUNDA1DmnM5jb1ao,378
|
128
128
|
studyfetch_sdk/types/v1/upload/component_get_presigned_url_params.py,sha256=dTGFn9zyOY9z3NNdPw732L3Ln7D1GKA3S8xB3FBPb7c,754
|
129
129
|
studyfetch_sdk/types/v1/upload/component_get_presigned_url_response.py,sha256=RDHDy3IO_qjtnfLHJQ2CX2_uG6_BJI-vwgQk2UJ-aE8,404
|
130
130
|
studyfetch_sdk/types/v1/upload/component_upload_file_params.py,sha256=UTv4EMrj7_hXa-PU68PMEyXn-bnhxcC0V0qO0JN5W-I,652
|
131
|
-
studyfetch_sdk/types/v1/upload/component_upload_file_response.py,sha256=3aMMe3Q2tRiZkdhhbtolqhW7O0jxj5ln3OofgbeXm2U,596
|
132
131
|
studyfetch_sdk/types/v1/upload/component_upload_url_params.py,sha256=3wXvto5WWzLYCu0EfQAWQgM73OmbRGhTwe6UnkMW0gM,687
|
133
|
-
studyfetch_sdk/types/v1/upload/
|
132
|
+
studyfetch_sdk/types/v1/upload/file_upload_response.py,sha256=z7LcH_BVu1meWzl9J3BeLOkcZr4NQmdtJV39SobbI1k,578
|
134
133
|
studyfetch_sdk/types/v1/usage/__init__.py,sha256=W93APDYogn9YlFksS696VpAlz_P7W8mt5wfduXWtoVY,214
|
135
134
|
studyfetch_sdk/types/v1/usage/analyst_list_events_params.py,sha256=5ylEgFOsxQ0HNLfyTktNvZx-VuWJHV06HMIfiNnVNHo,1562
|
136
|
-
studyfetch_sdk-0.1.
|
137
|
-
studyfetch_sdk-0.1.
|
138
|
-
studyfetch_sdk-0.1.
|
139
|
-
studyfetch_sdk-0.1.
|
135
|
+
studyfetch_sdk-0.1.0a17.dist-info/METADATA,sha256=wzCQ49CChL5nfB4WXvBXKGOkxHR9_b1IPcRrRp-eo_U,15518
|
136
|
+
studyfetch_sdk-0.1.0a17.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
137
|
+
studyfetch_sdk-0.1.0a17.dist-info/licenses/LICENSE,sha256=CsdbJMegH_AAWljUmVcwW0Cj_GyIm1hjw6qPqPnmdn4,11344
|
138
|
+
studyfetch_sdk-0.1.0a17.dist-info/RECORD,,
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from pydantic import Field as FieldInfo
|
4
|
-
|
5
|
-
from ...._models import BaseModel
|
6
|
-
|
7
|
-
__all__ = ["ComponentUploadFileResponse"]
|
8
|
-
|
9
|
-
|
10
|
-
class ComponentUploadFileResponse(BaseModel):
|
11
|
-
id: str
|
12
|
-
"""The ID of the uploaded material"""
|
13
|
-
|
14
|
-
content_type: str = FieldInfo(alias="contentType")
|
15
|
-
"""The content type of the material"""
|
16
|
-
|
17
|
-
name: str
|
18
|
-
"""The name of the material"""
|
19
|
-
|
20
|
-
s3_key: str = FieldInfo(alias="s3Key")
|
21
|
-
"""The S3 key of the uploaded file"""
|
22
|
-
|
23
|
-
status: str
|
24
|
-
"""The status of the material"""
|
File without changes
|
File without changes
|