chunkr-ai 0.1.0a5__tar.gz → 0.1.0a6__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.
- chunkr_ai-0.1.0a6/.release-please-manifest.json +3 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/CHANGELOG.md +13 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/PKG-INFO +1 -1
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/pyproject.toml +1 -1
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_version.py +1 -1
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/resources/tasks/parse.py +4 -88
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/tasks/parse_create_params.py +0 -12
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/tasks/parse_update_params.py +0 -12
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/api_resources/tasks/test_parse.py +18 -30
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/api_resources/test_files.py +48 -48
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/api_resources/test_health.py +6 -6
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/api_resources/test_tasks.py +34 -34
- chunkr_ai-0.1.0a5/.release-please-manifest.json +0 -3
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/.gitignore +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/CONTRIBUTING.md +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/LICENSE +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/README.md +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/SECURITY.md +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/api.md +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/bin/check-release-environment +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/bin/publish-pypi +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/examples/.keep +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/mypy.ini +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/noxfile.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/release-please-config.json +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/requirements-dev.lock +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/requirements.lock +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr/lib/.keep +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_base_client.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_client.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_compat.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_constants.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_exceptions.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_files.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_models.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_qs.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_resource.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_response.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_streaming.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_types.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_logs.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_proxy.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_reflection.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_resources_proxy.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_streams.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_sync.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_transform.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_typing.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/_utils/_utils.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/lib/.keep +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/pagination.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/py.typed +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/resources/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/resources/files.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/resources/health.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/resources/tasks/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/resources/tasks/tasks.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/delete.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/file.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/file_create_params.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/file_list_params.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/file_url.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/file_url_params.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/files_list_response.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/health_check_response.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/task.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/task_get_params.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/task_list_params.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/src/chunkr_ai/types/tasks/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/api_resources/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/api_resources/tasks/__init__.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/conftest.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/sample_file.txt +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_client.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_deepcopy.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_extract_files.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_files.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_models.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_qs.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_required_args.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_response.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_streaming.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_transform.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_utils/test_proxy.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/test_utils/test_typing.py +0 -0
- {chunkr_ai-0.1.0a5 → chunkr_ai-0.1.0a6}/tests/utils.py +0 -0
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.6 (2025-08-12)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/lumina-ai-inc/chunkr-python/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([5be70ea](https://github.com/lumina-ai-inc/chunkr-python/commit/5be70ea879606227d056d3dfc9b7b67add2871cd))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** codegen related update ([ba667c4](https://github.com/lumina-ai-inc/chunkr-python/commit/ba667c468ec6af4fb059196e6cf9b7da8ad0b524))
|
15
|
+
|
3
16
|
## 0.1.0-alpha.5 (2025-08-12)
|
4
17
|
|
5
18
|
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/lumina-ai-inc/chunkr-python/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: chunkr-ai
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0a6
|
4
4
|
Summary: The official Python library for the chunkr API
|
5
5
|
Project-URL: Homepage, https://github.com/lumina-ai-inc/chunkr-python
|
6
6
|
Project-URL: Repository, https://github.com/lumina-ai-inc/chunkr-python
|
@@ -48,9 +48,6 @@ class ParseResource(SyncAPIResource):
|
|
48
48
|
self,
|
49
49
|
*,
|
50
50
|
file: str,
|
51
|
-
base64_urls: bool | NotGiven = NOT_GIVEN,
|
52
|
-
include_chunks: bool | NotGiven = NOT_GIVEN,
|
53
|
-
wait_for_completion: bool | NotGiven = NOT_GIVEN,
|
54
51
|
chunk_processing: Optional[parse_create_params.ChunkProcessing] | NotGiven = NOT_GIVEN,
|
55
52
|
error_handling: Optional[Literal["Fail", "Continue"]] | NotGiven = NOT_GIVEN,
|
56
53
|
expires_in: Optional[int] | NotGiven = NOT_GIVEN,
|
@@ -73,10 +70,7 @@ class ParseResource(SyncAPIResource):
|
|
73
70
|
`task_id`, initial configuration, file metadata, and timestamps. The initial
|
74
71
|
status is `Starting`.
|
75
72
|
|
76
|
-
|
77
|
-
completion. If the task completes within that window, a 200 response with the
|
78
|
-
final `TaskResponse` is returned. Otherwise, the server returns a 408 or 409
|
79
|
-
with retry guidance and a body describing how long to wait before retrying.
|
73
|
+
Creates a task and returns its metadata immediately.
|
80
74
|
|
81
75
|
Args:
|
82
76
|
file:
|
@@ -87,13 +81,6 @@ class ParseResource(SyncAPIResource):
|
|
87
81
|
- `http(s)://...`: Remote URL to fetch
|
88
82
|
- `data:*;base64,...` or raw base64 string
|
89
83
|
|
90
|
-
base64_urls: Whether to return base64 encoded URLs. If false, presigned URLs are returned.
|
91
|
-
|
92
|
-
include_chunks: Whether to include chunks in the output response
|
93
|
-
|
94
|
-
wait_for_completion: If true, server holds briefly and may return 200 when done; otherwise returns
|
95
|
-
408/409 with Retry-After headers
|
96
|
-
|
97
84
|
chunk_processing: Controls the setting for the chunking and post-processing of each chunk.
|
98
85
|
|
99
86
|
error_handling:
|
@@ -188,14 +175,6 @@ class ParseResource(SyncAPIResource):
|
|
188
175
|
extra_body=extra_body,
|
189
176
|
timeout=timeout,
|
190
177
|
idempotency_key=idempotency_key,
|
191
|
-
query=maybe_transform(
|
192
|
-
{
|
193
|
-
"base64_urls": base64_urls,
|
194
|
-
"include_chunks": include_chunks,
|
195
|
-
"wait_for_completion": wait_for_completion,
|
196
|
-
},
|
197
|
-
parse_create_params.ParseCreateParams,
|
198
|
-
),
|
199
178
|
),
|
200
179
|
cast_to=Task,
|
201
180
|
)
|
@@ -204,9 +183,6 @@ class ParseResource(SyncAPIResource):
|
|
204
183
|
self,
|
205
184
|
task_id: str,
|
206
185
|
*,
|
207
|
-
base64_urls: bool | NotGiven = NOT_GIVEN,
|
208
|
-
include_chunks: bool | NotGiven = NOT_GIVEN,
|
209
|
-
wait_for_completion: bool | NotGiven = NOT_GIVEN,
|
210
186
|
chunk_processing: Optional[parse_update_params.ChunkProcessing] | NotGiven = NOT_GIVEN,
|
211
187
|
error_handling: Optional[Literal["Fail", "Continue"]] | NotGiven = NOT_GIVEN,
|
212
188
|
expires_in: Optional[int] | NotGiven = NOT_GIVEN,
|
@@ -234,19 +210,9 @@ class ParseResource(SyncAPIResource):
|
|
234
210
|
- Task must be in a terminal state (`Succeeded` or `Failed`).
|
235
211
|
- The new configuration must differ from the current configuration.
|
236
212
|
|
237
|
-
|
238
|
-
completion. If the task completes within that window, a 200 response with the
|
239
|
-
final `TaskResponse` is returned. Otherwise, the server returns a 408 with retry
|
240
|
-
guidance and a body describing how long to wait before retrying.
|
213
|
+
Updates a task and returns its new metadata immediately.
|
241
214
|
|
242
215
|
Args:
|
243
|
-
base64_urls: Whether to return base64 encoded URLs. If false, presigned URLs are returned.
|
244
|
-
|
245
|
-
include_chunks: Whether to include chunks in the output response
|
246
|
-
|
247
|
-
wait_for_completion: If true, server holds briefly and may return 200 when done; otherwise returns
|
248
|
-
408/409 with Retry-After headers
|
249
|
-
|
250
216
|
chunk_processing: Controls the setting for the chunking and post-processing of each chunk.
|
251
217
|
|
252
218
|
error_handling:
|
@@ -343,14 +309,6 @@ class ParseResource(SyncAPIResource):
|
|
343
309
|
extra_body=extra_body,
|
344
310
|
timeout=timeout,
|
345
311
|
idempotency_key=idempotency_key,
|
346
|
-
query=maybe_transform(
|
347
|
-
{
|
348
|
-
"base64_urls": base64_urls,
|
349
|
-
"include_chunks": include_chunks,
|
350
|
-
"wait_for_completion": wait_for_completion,
|
351
|
-
},
|
352
|
-
parse_update_params.ParseUpdateParams,
|
353
|
-
),
|
354
312
|
),
|
355
313
|
cast_to=Task,
|
356
314
|
)
|
@@ -380,9 +338,6 @@ class AsyncParseResource(AsyncAPIResource):
|
|
380
338
|
self,
|
381
339
|
*,
|
382
340
|
file: str,
|
383
|
-
base64_urls: bool | NotGiven = NOT_GIVEN,
|
384
|
-
include_chunks: bool | NotGiven = NOT_GIVEN,
|
385
|
-
wait_for_completion: bool | NotGiven = NOT_GIVEN,
|
386
341
|
chunk_processing: Optional[parse_create_params.ChunkProcessing] | NotGiven = NOT_GIVEN,
|
387
342
|
error_handling: Optional[Literal["Fail", "Continue"]] | NotGiven = NOT_GIVEN,
|
388
343
|
expires_in: Optional[int] | NotGiven = NOT_GIVEN,
|
@@ -405,10 +360,7 @@ class AsyncParseResource(AsyncAPIResource):
|
|
405
360
|
`task_id`, initial configuration, file metadata, and timestamps. The initial
|
406
361
|
status is `Starting`.
|
407
362
|
|
408
|
-
|
409
|
-
completion. If the task completes within that window, a 200 response with the
|
410
|
-
final `TaskResponse` is returned. Otherwise, the server returns a 408 or 409
|
411
|
-
with retry guidance and a body describing how long to wait before retrying.
|
363
|
+
Creates a task and returns its metadata immediately.
|
412
364
|
|
413
365
|
Args:
|
414
366
|
file:
|
@@ -419,13 +371,6 @@ class AsyncParseResource(AsyncAPIResource):
|
|
419
371
|
- `http(s)://...`: Remote URL to fetch
|
420
372
|
- `data:*;base64,...` or raw base64 string
|
421
373
|
|
422
|
-
base64_urls: Whether to return base64 encoded URLs. If false, presigned URLs are returned.
|
423
|
-
|
424
|
-
include_chunks: Whether to include chunks in the output response
|
425
|
-
|
426
|
-
wait_for_completion: If true, server holds briefly and may return 200 when done; otherwise returns
|
427
|
-
408/409 with Retry-After headers
|
428
|
-
|
429
374
|
chunk_processing: Controls the setting for the chunking and post-processing of each chunk.
|
430
375
|
|
431
376
|
error_handling:
|
@@ -520,14 +465,6 @@ class AsyncParseResource(AsyncAPIResource):
|
|
520
465
|
extra_body=extra_body,
|
521
466
|
timeout=timeout,
|
522
467
|
idempotency_key=idempotency_key,
|
523
|
-
query=await async_maybe_transform(
|
524
|
-
{
|
525
|
-
"base64_urls": base64_urls,
|
526
|
-
"include_chunks": include_chunks,
|
527
|
-
"wait_for_completion": wait_for_completion,
|
528
|
-
},
|
529
|
-
parse_create_params.ParseCreateParams,
|
530
|
-
),
|
531
468
|
),
|
532
469
|
cast_to=Task,
|
533
470
|
)
|
@@ -536,9 +473,6 @@ class AsyncParseResource(AsyncAPIResource):
|
|
536
473
|
self,
|
537
474
|
task_id: str,
|
538
475
|
*,
|
539
|
-
base64_urls: bool | NotGiven = NOT_GIVEN,
|
540
|
-
include_chunks: bool | NotGiven = NOT_GIVEN,
|
541
|
-
wait_for_completion: bool | NotGiven = NOT_GIVEN,
|
542
476
|
chunk_processing: Optional[parse_update_params.ChunkProcessing] | NotGiven = NOT_GIVEN,
|
543
477
|
error_handling: Optional[Literal["Fail", "Continue"]] | NotGiven = NOT_GIVEN,
|
544
478
|
expires_in: Optional[int] | NotGiven = NOT_GIVEN,
|
@@ -566,19 +500,9 @@ class AsyncParseResource(AsyncAPIResource):
|
|
566
500
|
- Task must be in a terminal state (`Succeeded` or `Failed`).
|
567
501
|
- The new configuration must differ from the current configuration.
|
568
502
|
|
569
|
-
|
570
|
-
completion. If the task completes within that window, a 200 response with the
|
571
|
-
final `TaskResponse` is returned. Otherwise, the server returns a 408 with retry
|
572
|
-
guidance and a body describing how long to wait before retrying.
|
503
|
+
Updates a task and returns its new metadata immediately.
|
573
504
|
|
574
505
|
Args:
|
575
|
-
base64_urls: Whether to return base64 encoded URLs. If false, presigned URLs are returned.
|
576
|
-
|
577
|
-
include_chunks: Whether to include chunks in the output response
|
578
|
-
|
579
|
-
wait_for_completion: If true, server holds briefly and may return 200 when done; otherwise returns
|
580
|
-
408/409 with Retry-After headers
|
581
|
-
|
582
506
|
chunk_processing: Controls the setting for the chunking and post-processing of each chunk.
|
583
507
|
|
584
508
|
error_handling:
|
@@ -675,14 +599,6 @@ class AsyncParseResource(AsyncAPIResource):
|
|
675
599
|
extra_body=extra_body,
|
676
600
|
timeout=timeout,
|
677
601
|
idempotency_key=idempotency_key,
|
678
|
-
query=await async_maybe_transform(
|
679
|
-
{
|
680
|
-
"base64_urls": base64_urls,
|
681
|
-
"include_chunks": include_chunks,
|
682
|
-
"wait_for_completion": wait_for_completion,
|
683
|
-
},
|
684
|
-
parse_update_params.ParseUpdateParams,
|
685
|
-
),
|
686
602
|
),
|
687
603
|
cast_to=Task,
|
688
604
|
)
|
@@ -42,18 +42,6 @@ class ParseCreateParams(TypedDict, total=False):
|
|
42
42
|
- `data:*;base64,...` or raw base64 string
|
43
43
|
"""
|
44
44
|
|
45
|
-
base64_urls: bool
|
46
|
-
"""Whether to return base64 encoded URLs. If false, presigned URLs are returned."""
|
47
|
-
|
48
|
-
include_chunks: bool
|
49
|
-
"""Whether to include chunks in the output response"""
|
50
|
-
|
51
|
-
wait_for_completion: bool
|
52
|
-
"""
|
53
|
-
If true, server holds briefly and may return 200 when done; otherwise returns
|
54
|
-
408/409 with Retry-After headers
|
55
|
-
"""
|
56
|
-
|
57
45
|
chunk_processing: Optional[ChunkProcessing]
|
58
46
|
"""Controls the setting for the chunking and post-processing of each chunk."""
|
59
47
|
|
@@ -33,18 +33,6 @@ __all__ = [
|
|
33
33
|
|
34
34
|
|
35
35
|
class ParseUpdateParams(TypedDict, total=False):
|
36
|
-
base64_urls: bool
|
37
|
-
"""Whether to return base64 encoded URLs. If false, presigned URLs are returned."""
|
38
|
-
|
39
|
-
include_chunks: bool
|
40
|
-
"""Whether to include chunks in the output response"""
|
41
|
-
|
42
|
-
wait_for_completion: bool
|
43
|
-
"""
|
44
|
-
If true, server holds briefly and may return 200 when done; otherwise returns
|
45
|
-
408/409 with Retry-After headers
|
46
|
-
"""
|
47
|
-
|
48
36
|
chunk_processing: Optional[ChunkProcessing]
|
49
37
|
"""Controls the setting for the chunking and post-processing of each chunk."""
|
50
38
|
|
@@ -17,7 +17,7 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
17
17
|
class TestParse:
|
18
18
|
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
|
19
19
|
|
20
|
-
@pytest.mark.skip()
|
20
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
21
21
|
@parametrize
|
22
22
|
def test_method_create(self, client: Chunkr) -> None:
|
23
23
|
parse = client.tasks.parse.create(
|
@@ -25,14 +25,11 @@ class TestParse:
|
|
25
25
|
)
|
26
26
|
assert_matches_type(Task, parse, path=["response"])
|
27
27
|
|
28
|
-
@pytest.mark.skip()
|
28
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
29
29
|
@parametrize
|
30
30
|
def test_method_create_with_all_params(self, client: Chunkr) -> None:
|
31
31
|
parse = client.tasks.parse.create(
|
32
32
|
file="file",
|
33
|
-
base64_urls=True,
|
34
|
-
include_chunks=True,
|
35
|
-
wait_for_completion=True,
|
36
33
|
chunk_processing={
|
37
34
|
"ignore_headers_and_footers": True,
|
38
35
|
"target_length": 0,
|
@@ -187,7 +184,7 @@ class TestParse:
|
|
187
184
|
)
|
188
185
|
assert_matches_type(Task, parse, path=["response"])
|
189
186
|
|
190
|
-
@pytest.mark.skip()
|
187
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
191
188
|
@parametrize
|
192
189
|
def test_raw_response_create(self, client: Chunkr) -> None:
|
193
190
|
response = client.tasks.parse.with_raw_response.create(
|
@@ -199,7 +196,7 @@ class TestParse:
|
|
199
196
|
parse = response.parse()
|
200
197
|
assert_matches_type(Task, parse, path=["response"])
|
201
198
|
|
202
|
-
@pytest.mark.skip()
|
199
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
203
200
|
@parametrize
|
204
201
|
def test_streaming_response_create(self, client: Chunkr) -> None:
|
205
202
|
with client.tasks.parse.with_streaming_response.create(
|
@@ -213,7 +210,7 @@ class TestParse:
|
|
213
210
|
|
214
211
|
assert cast(Any, response.is_closed) is True
|
215
212
|
|
216
|
-
@pytest.mark.skip()
|
213
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
217
214
|
@parametrize
|
218
215
|
def test_method_update(self, client: Chunkr) -> None:
|
219
216
|
parse = client.tasks.parse.update(
|
@@ -221,14 +218,11 @@ class TestParse:
|
|
221
218
|
)
|
222
219
|
assert_matches_type(Task, parse, path=["response"])
|
223
220
|
|
224
|
-
@pytest.mark.skip()
|
221
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
225
222
|
@parametrize
|
226
223
|
def test_method_update_with_all_params(self, client: Chunkr) -> None:
|
227
224
|
parse = client.tasks.parse.update(
|
228
225
|
task_id="task_id",
|
229
|
-
base64_urls=True,
|
230
|
-
include_chunks=True,
|
231
|
-
wait_for_completion=True,
|
232
226
|
chunk_processing={
|
233
227
|
"ignore_headers_and_footers": True,
|
234
228
|
"target_length": 0,
|
@@ -383,7 +377,7 @@ class TestParse:
|
|
383
377
|
)
|
384
378
|
assert_matches_type(Task, parse, path=["response"])
|
385
379
|
|
386
|
-
@pytest.mark.skip()
|
380
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
387
381
|
@parametrize
|
388
382
|
def test_raw_response_update(self, client: Chunkr) -> None:
|
389
383
|
response = client.tasks.parse.with_raw_response.update(
|
@@ -395,7 +389,7 @@ class TestParse:
|
|
395
389
|
parse = response.parse()
|
396
390
|
assert_matches_type(Task, parse, path=["response"])
|
397
391
|
|
398
|
-
@pytest.mark.skip()
|
392
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
399
393
|
@parametrize
|
400
394
|
def test_streaming_response_update(self, client: Chunkr) -> None:
|
401
395
|
with client.tasks.parse.with_streaming_response.update(
|
@@ -409,7 +403,7 @@ class TestParse:
|
|
409
403
|
|
410
404
|
assert cast(Any, response.is_closed) is True
|
411
405
|
|
412
|
-
@pytest.mark.skip()
|
406
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
413
407
|
@parametrize
|
414
408
|
def test_path_params_update(self, client: Chunkr) -> None:
|
415
409
|
with pytest.raises(ValueError, match=r"Expected a non-empty value for `task_id` but received ''"):
|
@@ -423,7 +417,7 @@ class TestAsyncParse:
|
|
423
417
|
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
|
424
418
|
)
|
425
419
|
|
426
|
-
@pytest.mark.skip()
|
420
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
427
421
|
@parametrize
|
428
422
|
async def test_method_create(self, async_client: AsyncChunkr) -> None:
|
429
423
|
parse = await async_client.tasks.parse.create(
|
@@ -431,14 +425,11 @@ class TestAsyncParse:
|
|
431
425
|
)
|
432
426
|
assert_matches_type(Task, parse, path=["response"])
|
433
427
|
|
434
|
-
@pytest.mark.skip()
|
428
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
435
429
|
@parametrize
|
436
430
|
async def test_method_create_with_all_params(self, async_client: AsyncChunkr) -> None:
|
437
431
|
parse = await async_client.tasks.parse.create(
|
438
432
|
file="file",
|
439
|
-
base64_urls=True,
|
440
|
-
include_chunks=True,
|
441
|
-
wait_for_completion=True,
|
442
433
|
chunk_processing={
|
443
434
|
"ignore_headers_and_footers": True,
|
444
435
|
"target_length": 0,
|
@@ -593,7 +584,7 @@ class TestAsyncParse:
|
|
593
584
|
)
|
594
585
|
assert_matches_type(Task, parse, path=["response"])
|
595
586
|
|
596
|
-
@pytest.mark.skip()
|
587
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
597
588
|
@parametrize
|
598
589
|
async def test_raw_response_create(self, async_client: AsyncChunkr) -> None:
|
599
590
|
response = await async_client.tasks.parse.with_raw_response.create(
|
@@ -605,7 +596,7 @@ class TestAsyncParse:
|
|
605
596
|
parse = await response.parse()
|
606
597
|
assert_matches_type(Task, parse, path=["response"])
|
607
598
|
|
608
|
-
@pytest.mark.skip()
|
599
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
609
600
|
@parametrize
|
610
601
|
async def test_streaming_response_create(self, async_client: AsyncChunkr) -> None:
|
611
602
|
async with async_client.tasks.parse.with_streaming_response.create(
|
@@ -619,7 +610,7 @@ class TestAsyncParse:
|
|
619
610
|
|
620
611
|
assert cast(Any, response.is_closed) is True
|
621
612
|
|
622
|
-
@pytest.mark.skip()
|
613
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
623
614
|
@parametrize
|
624
615
|
async def test_method_update(self, async_client: AsyncChunkr) -> None:
|
625
616
|
parse = await async_client.tasks.parse.update(
|
@@ -627,14 +618,11 @@ class TestAsyncParse:
|
|
627
618
|
)
|
628
619
|
assert_matches_type(Task, parse, path=["response"])
|
629
620
|
|
630
|
-
@pytest.mark.skip()
|
621
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
631
622
|
@parametrize
|
632
623
|
async def test_method_update_with_all_params(self, async_client: AsyncChunkr) -> None:
|
633
624
|
parse = await async_client.tasks.parse.update(
|
634
625
|
task_id="task_id",
|
635
|
-
base64_urls=True,
|
636
|
-
include_chunks=True,
|
637
|
-
wait_for_completion=True,
|
638
626
|
chunk_processing={
|
639
627
|
"ignore_headers_and_footers": True,
|
640
628
|
"target_length": 0,
|
@@ -789,7 +777,7 @@ class TestAsyncParse:
|
|
789
777
|
)
|
790
778
|
assert_matches_type(Task, parse, path=["response"])
|
791
779
|
|
792
|
-
@pytest.mark.skip()
|
780
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
793
781
|
@parametrize
|
794
782
|
async def test_raw_response_update(self, async_client: AsyncChunkr) -> None:
|
795
783
|
response = await async_client.tasks.parse.with_raw_response.update(
|
@@ -801,7 +789,7 @@ class TestAsyncParse:
|
|
801
789
|
parse = await response.parse()
|
802
790
|
assert_matches_type(Task, parse, path=["response"])
|
803
791
|
|
804
|
-
@pytest.mark.skip()
|
792
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
805
793
|
@parametrize
|
806
794
|
async def test_streaming_response_update(self, async_client: AsyncChunkr) -> None:
|
807
795
|
async with async_client.tasks.parse.with_streaming_response.update(
|
@@ -815,7 +803,7 @@ class TestAsyncParse:
|
|
815
803
|
|
816
804
|
assert cast(Any, response.is_closed) is True
|
817
805
|
|
818
|
-
@pytest.mark.skip()
|
806
|
+
@pytest.mark.skip(reason="Prism tests are disabled")
|
819
807
|
@parametrize
|
820
808
|
async def test_path_params_update(self, async_client: AsyncChunkr) -> None:
|
821
809
|
with pytest.raises(ValueError, match=r"Expected a non-empty value for `task_id` but received ''"):
|