chunkr-ai 0.1.0a5__py3-none-any.whl → 0.1.0a6__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.
- chunkr_ai/_version.py +1 -1
- chunkr_ai/resources/tasks/parse.py +4 -88
- chunkr_ai/types/tasks/parse_create_params.py +0 -12
- chunkr_ai/types/tasks/parse_update_params.py +0 -12
- {chunkr_ai-0.1.0a5.dist-info → chunkr_ai-0.1.0a6.dist-info}/METADATA +1 -1
- {chunkr_ai-0.1.0a5.dist-info → chunkr_ai-0.1.0a6.dist-info}/RECORD +8 -8
- {chunkr_ai-0.1.0a5.dist-info → chunkr_ai-0.1.0a6.dist-info}/WHEEL +0 -0
- {chunkr_ai-0.1.0a5.dist-info → chunkr_ai-0.1.0a6.dist-info}/licenses/LICENSE +0 -0
chunkr_ai/_version.py
CHANGED
@@ -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
|
|
@@ -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
|
@@ -11,7 +11,7 @@ chunkr_ai/_resource.py,sha256=f5tiwjxcKdbeMor8idoHtMFTUhqD9yc2xXtq5rqeLLk,1100
|
|
11
11
|
chunkr_ai/_response.py,sha256=xXNpF53hiYARmAW7npKuxQ5UHAEjgAzm7ME_L3eIstY,28800
|
12
12
|
chunkr_ai/_streaming.py,sha256=ZmyrVWk7-AWkLAATR55WgNxnyFzYmaqJt2LthA_PTqQ,10100
|
13
13
|
chunkr_ai/_types.py,sha256=dnzU2Q2tLcuk29QFEcnPC1wp0-4XB4Cpef_3AnRhV5Y,6200
|
14
|
-
chunkr_ai/_version.py,sha256=
|
14
|
+
chunkr_ai/_version.py,sha256=Wa4VwBGgQILEshUij6ZGjQhFefcxwDJV1YTUEWRgG6c,169
|
15
15
|
chunkr_ai/pagination.py,sha256=bT-ErcJ80YlKBV6tWq2s9uqg-wv7o66SKe_AgUAGrKc,3533
|
16
16
|
chunkr_ai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
chunkr_ai/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
@@ -29,7 +29,7 @@ chunkr_ai/resources/__init__.py,sha256=K-axuAEg2pJQl45N5ao1tm8AnRwpQVVNp_b6qSMgB
|
|
29
29
|
chunkr_ai/resources/files.py,sha256=iX6LbX2PqM6kFKNoLxS_R9OGaVSnnZJ8U0dCUxNBGIM,27184
|
30
30
|
chunkr_ai/resources/health.py,sha256=XTvUtRs5hEK-uccb_40mcIex85eEUo1a171nQUjpSOs,4965
|
31
31
|
chunkr_ai/resources/tasks/__init__.py,sha256=W-sclAx_Kfm7OBGlSs694QzNCMkewtz9LU9KRcb8Ud0,976
|
32
|
-
chunkr_ai/resources/tasks/parse.py,sha256=
|
32
|
+
chunkr_ai/resources/tasks/parse.py,sha256=cMKxGPFqg8h5HutUx0l7J_namzsYzayWKoQVnlnJ6qA,28999
|
33
33
|
chunkr_ai/resources/tasks/tasks.py,sha256=XkNulmXZz4N6UXaG-6EdS-WAyncTgwMY3BYbJBqeEGw,22745
|
34
34
|
chunkr_ai/types/__init__.py,sha256=DSRAMgXVRTZM2t8s2yrFU-FHt3FTs_wpZfVILH1zjJ0,728
|
35
35
|
chunkr_ai/types/delete.py,sha256=EU78fjXpc8-fqvgcFTuJ0ejs5u_UjbhOz5frkeUHvxY,225
|
@@ -44,9 +44,9 @@ chunkr_ai/types/task.py,sha256=L8vE_q0Hej_YuJM_rd_bZOg8kHbithsFx6fOQYpH0cY,46702
|
|
44
44
|
chunkr_ai/types/task_get_params.py,sha256=yGMHRfkbLzQpRLdF_Dj-8TqcioEhDNWyVbEt50xDAP0,542
|
45
45
|
chunkr_ai/types/task_list_params.py,sha256=fCku42QW6QUsLmZgKJBaxisGvUcmcQ5fa6LgHHRIwiQ,1043
|
46
46
|
chunkr_ai/types/tasks/__init__.py,sha256=VdLEmQvgPoiykSEYaRhkMYVaIueGDkR4P_MjCq9SbQY,267
|
47
|
-
chunkr_ai/types/tasks/parse_create_params.py,sha256=
|
48
|
-
chunkr_ai/types/tasks/parse_update_params.py,sha256=
|
49
|
-
chunkr_ai-0.1.
|
50
|
-
chunkr_ai-0.1.
|
51
|
-
chunkr_ai-0.1.
|
52
|
-
chunkr_ai-0.1.
|
47
|
+
chunkr_ai/types/tasks/parse_create_params.py,sha256=lUSnRHq_nT4nW9boB80HvpVcnjHwIpfQoxBKugFRC7Y,34324
|
48
|
+
chunkr_ai/types/tasks/parse_update_params.py,sha256=VrzK-Y4S02fficwIr4EatD73_4i40lOAxMEYDN3KZEQ,34112
|
49
|
+
chunkr_ai-0.1.0a6.dist-info/METADATA,sha256=Kbt8umfSyxxm5O7Xol6ypvmc7yprG33YFE3L-TqGx6Y,16446
|
50
|
+
chunkr_ai-0.1.0a6.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
51
|
+
chunkr_ai-0.1.0a6.dist-info/licenses/LICENSE,sha256=3FDRL-L-DFkrFy8yJpb1Nxhuztm0PB2kawcCgK5utFg,11336
|
52
|
+
chunkr_ai-0.1.0a6.dist-info/RECORD,,
|
File without changes
|
File without changes
|