studyfetch-sdk 0.1.0a17__py3-none-any.whl → 0.1.0a19__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/_models.py +1 -1
- studyfetch_sdk/_version.py +1 -1
- studyfetch_sdk/resources/v1/__init__.py +14 -0
- studyfetch_sdk/resources/v1/assignment_grader.py +81 -1
- studyfetch_sdk/resources/v1/components.py +36 -4
- studyfetch_sdk/resources/v1/data_analyst/__init__.py +47 -0
- studyfetch_sdk/resources/v1/data_analyst/data_analyst.py +582 -0
- studyfetch_sdk/resources/v1/data_analyst/sessions.py +222 -0
- studyfetch_sdk/resources/v1/data_analyst/test.py +190 -0
- studyfetch_sdk/resources/v1/materials/bulk.py +60 -7
- studyfetch_sdk/resources/v1/materials/materials.py +250 -57
- studyfetch_sdk/resources/v1/materials/test.py +29 -25
- studyfetch_sdk/resources/v1/materials/upload.py +402 -14
- studyfetch_sdk/resources/v1/usage/analyst.py +143 -15
- studyfetch_sdk/resources/v1/v1.py +98 -0
- studyfetch_sdk/types/v1/__init__.py +12 -0
- studyfetch_sdk/types/v1/assignment_grader_response.py +20 -1
- studyfetch_sdk/types/v1/component.py +9 -1
- studyfetch_sdk/types/v1/component_create_params.py +57 -1
- studyfetch_sdk/types/v1/component_list_params.py +9 -1
- studyfetch_sdk/types/v1/content_param.py +23 -0
- studyfetch_sdk/types/v1/data_analyst/__init__.py +5 -0
- studyfetch_sdk/types/v1/data_analyst/session_retrieve_params.py +11 -0
- studyfetch_sdk/types/v1/data_analyst_retrieve_session_params.py +13 -0
- studyfetch_sdk/types/v1/data_analyst_send_message_params.py +54 -0
- studyfetch_sdk/types/v1/data_analyst_stream_params.py +28 -0
- studyfetch_sdk/types/v1/material_batch_create_params.py +29 -0
- studyfetch_sdk/types/v1/material_batch_create_response.py +27 -0
- studyfetch_sdk/types/v1/material_create_and_process_params.py +27 -0
- studyfetch_sdk/types/v1/material_create_params.py +4 -17
- studyfetch_sdk/types/v1/material_debug_response.py +47 -0
- studyfetch_sdk/types/v1/material_get_download_url_params.py +3 -2
- studyfetch_sdk/types/v1/material_get_download_url_response.py +12 -0
- studyfetch_sdk/types/v1/material_move_params.py +15 -0
- studyfetch_sdk/types/v1/material_rename_params.py +12 -0
- studyfetch_sdk/types/v1/material_search_params.py +3 -6
- studyfetch_sdk/types/v1/material_search_response.py +54 -0
- studyfetch_sdk/types/v1/materials/__init__.py +11 -0
- studyfetch_sdk/types/v1/materials/bulk_move_params.py +18 -0
- studyfetch_sdk/types/v1/materials/bulk_move_response.py +15 -0
- studyfetch_sdk/types/v1/materials/test_perform_ocr_response.py +19 -0
- studyfetch_sdk/types/v1/materials/test_process_epub_response.py +30 -0
- studyfetch_sdk/types/v1/materials/test_process_image_response.py +30 -0
- studyfetch_sdk/types/v1/materials/test_process_video_response.py +25 -0
- studyfetch_sdk/types/v1/materials/upload_complete_upload_params.py +20 -0
- studyfetch_sdk/types/v1/materials/upload_create_presigned_url_params.py +23 -0
- studyfetch_sdk/types/v1/materials/upload_create_presigned_url_response.py +18 -0
- studyfetch_sdk/types/v1/materials/upload_upload_file_and_process_params.py +26 -0
- studyfetch_sdk/types/v1/materials/upload_upload_url_and_process_params.py +26 -0
- studyfetch_sdk/types/v1/usage/__init__.py +3 -0
- studyfetch_sdk/types/v1/usage/analyst_get_test_questions_params.py +18 -0
- studyfetch_sdk/types/v1/usage/analyst_list_chat_messages_params.py +18 -0
- studyfetch_sdk/types/v1/usage/analyst_list_chat_messages_response.py +35 -0
- studyfetch_sdk/types/v1/usage/analyst_list_events_params.py +7 -0
- {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/METADATA +1 -1
- {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/RECORD +58 -26
- {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a17.dist-info → studyfetch_sdk-0.1.0a19.dist-info}/licenses/LICENSE +0 -0
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import httpx
|
6
6
|
|
7
|
-
from ...._types import NOT_GIVEN, Body, Query, Headers,
|
7
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
8
8
|
from ...._compat import cached_property
|
9
9
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
10
10
|
from ...._response import (
|
@@ -14,6 +14,10 @@ from ...._response import (
|
|
14
14
|
async_to_streamed_response_wrapper,
|
15
15
|
)
|
16
16
|
from ...._base_client import make_request_options
|
17
|
+
from ....types.v1.materials.test_perform_ocr_response import TestPerformOcrResponse
|
18
|
+
from ....types.v1.materials.test_process_epub_response import TestProcessEpubResponse
|
19
|
+
from ....types.v1.materials.test_process_image_response import TestProcessImageResponse
|
20
|
+
from ....types.v1.materials.test_process_video_response import TestProcessVideoResponse
|
17
21
|
|
18
22
|
__all__ = ["TestResource", "AsyncTestResource"]
|
19
23
|
|
@@ -49,14 +53,14 @@ class TestResource(SyncAPIResource):
|
|
49
53
|
extra_query: Query | None = None,
|
50
54
|
extra_body: Body | None = None,
|
51
55
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
52
|
-
) ->
|
53
|
-
|
56
|
+
) -> TestPerformOcrResponse:
|
57
|
+
"""Test OCR functionality with a sample PDF"""
|
54
58
|
return self._post(
|
55
59
|
"/api/v1/materials/test/ocr",
|
56
60
|
options=make_request_options(
|
57
61
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
58
62
|
),
|
59
|
-
cast_to=
|
63
|
+
cast_to=TestPerformOcrResponse,
|
60
64
|
)
|
61
65
|
|
62
66
|
def process_epub(
|
@@ -68,14 +72,14 @@ class TestResource(SyncAPIResource):
|
|
68
72
|
extra_query: Query | None = None,
|
69
73
|
extra_body: Body | None = None,
|
70
74
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
71
|
-
) ->
|
72
|
-
|
75
|
+
) -> TestProcessEpubResponse:
|
76
|
+
"""Test EPUB processing functionality"""
|
73
77
|
return self._post(
|
74
78
|
"/api/v1/materials/test/epub-processing",
|
75
79
|
options=make_request_options(
|
76
80
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
77
81
|
),
|
78
|
-
cast_to=
|
82
|
+
cast_to=TestProcessEpubResponse,
|
79
83
|
)
|
80
84
|
|
81
85
|
def process_image(
|
@@ -87,14 +91,14 @@ class TestResource(SyncAPIResource):
|
|
87
91
|
extra_query: Query | None = None,
|
88
92
|
extra_body: Body | None = None,
|
89
93
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
90
|
-
) ->
|
91
|
-
|
94
|
+
) -> TestProcessImageResponse:
|
95
|
+
"""Test image processing with OCR and AI vision"""
|
92
96
|
return self._post(
|
93
97
|
"/api/v1/materials/test/image-processing",
|
94
98
|
options=make_request_options(
|
95
99
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
96
100
|
),
|
97
|
-
cast_to=
|
101
|
+
cast_to=TestProcessImageResponse,
|
98
102
|
)
|
99
103
|
|
100
104
|
def process_video(
|
@@ -106,14 +110,14 @@ class TestResource(SyncAPIResource):
|
|
106
110
|
extra_query: Query | None = None,
|
107
111
|
extra_body: Body | None = None,
|
108
112
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
109
|
-
) ->
|
110
|
-
|
113
|
+
) -> TestProcessVideoResponse:
|
114
|
+
"""Test video processing setup and dependencies"""
|
111
115
|
return self._post(
|
112
116
|
"/api/v1/materials/test/video-processing",
|
113
117
|
options=make_request_options(
|
114
118
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
115
119
|
),
|
116
|
-
cast_to=
|
120
|
+
cast_to=TestProcessVideoResponse,
|
117
121
|
)
|
118
122
|
|
119
123
|
|
@@ -146,14 +150,14 @@ class AsyncTestResource(AsyncAPIResource):
|
|
146
150
|
extra_query: Query | None = None,
|
147
151
|
extra_body: Body | None = None,
|
148
152
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
149
|
-
) ->
|
150
|
-
|
153
|
+
) -> TestPerformOcrResponse:
|
154
|
+
"""Test OCR functionality with a sample PDF"""
|
151
155
|
return await self._post(
|
152
156
|
"/api/v1/materials/test/ocr",
|
153
157
|
options=make_request_options(
|
154
158
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
155
159
|
),
|
156
|
-
cast_to=
|
160
|
+
cast_to=TestPerformOcrResponse,
|
157
161
|
)
|
158
162
|
|
159
163
|
async def process_epub(
|
@@ -165,14 +169,14 @@ class AsyncTestResource(AsyncAPIResource):
|
|
165
169
|
extra_query: Query | None = None,
|
166
170
|
extra_body: Body | None = None,
|
167
171
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
168
|
-
) ->
|
169
|
-
|
172
|
+
) -> TestProcessEpubResponse:
|
173
|
+
"""Test EPUB processing functionality"""
|
170
174
|
return await self._post(
|
171
175
|
"/api/v1/materials/test/epub-processing",
|
172
176
|
options=make_request_options(
|
173
177
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
174
178
|
),
|
175
|
-
cast_to=
|
179
|
+
cast_to=TestProcessEpubResponse,
|
176
180
|
)
|
177
181
|
|
178
182
|
async def process_image(
|
@@ -184,14 +188,14 @@ class AsyncTestResource(AsyncAPIResource):
|
|
184
188
|
extra_query: Query | None = None,
|
185
189
|
extra_body: Body | None = None,
|
186
190
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
187
|
-
) ->
|
188
|
-
|
191
|
+
) -> TestProcessImageResponse:
|
192
|
+
"""Test image processing with OCR and AI vision"""
|
189
193
|
return await self._post(
|
190
194
|
"/api/v1/materials/test/image-processing",
|
191
195
|
options=make_request_options(
|
192
196
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
193
197
|
),
|
194
|
-
cast_to=
|
198
|
+
cast_to=TestProcessImageResponse,
|
195
199
|
)
|
196
200
|
|
197
201
|
async def process_video(
|
@@ -203,14 +207,14 @@ class AsyncTestResource(AsyncAPIResource):
|
|
203
207
|
extra_query: Query | None = None,
|
204
208
|
extra_body: Body | None = None,
|
205
209
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
206
|
-
) ->
|
207
|
-
|
210
|
+
) -> TestProcessVideoResponse:
|
211
|
+
"""Test video processing setup and dependencies"""
|
208
212
|
return await self._post(
|
209
213
|
"/api/v1/materials/test/video-processing",
|
210
214
|
options=make_request_options(
|
211
215
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
212
216
|
),
|
213
|
-
cast_to=
|
217
|
+
cast_to=TestProcessVideoResponse,
|
214
218
|
)
|
215
219
|
|
216
220
|
|