chunkr-ai 0.0.40__py3-none-any.whl → 0.0.43__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/api/configuration.py +1 -0
- chunkr_ai/api/task_response.py +7 -2
- {chunkr_ai-0.0.40.dist-info → chunkr_ai-0.0.43.dist-info}/METADATA +3 -2
- {chunkr_ai-0.0.40.dist-info → chunkr_ai-0.0.43.dist-info}/RECORD +7 -7
- {chunkr_ai-0.0.40.dist-info → chunkr_ai-0.0.43.dist-info}/WHEEL +1 -1
- {chunkr_ai-0.0.40.dist-info → chunkr_ai-0.0.43.dist-info/licenses}/LICENSE +0 -0
- {chunkr_ai-0.0.40.dist-info → chunkr_ai-0.0.43.dist-info}/top_level.txt +0 -0
chunkr_ai/api/configuration.py
CHANGED
chunkr_ai/api/task_response.py
CHANGED
@@ -4,6 +4,7 @@ from pydantic import BaseModel, PrivateAttr
|
|
4
4
|
import asyncio
|
5
5
|
import json
|
6
6
|
import os
|
7
|
+
import httpx
|
7
8
|
|
8
9
|
from .configuration import Configuration, OutputConfiguration, OutputResponse, Status
|
9
10
|
from .protocol import ChunkrClientProtocol
|
@@ -51,8 +52,12 @@ class TaskResponse(BaseModel, Generic[T]):
|
|
51
52
|
)
|
52
53
|
r.raise_for_status()
|
53
54
|
return r.json()
|
54
|
-
except (ConnectionError, TimeoutError, OSError
|
55
|
-
|
55
|
+
except (ConnectionError, TimeoutError, OSError,
|
56
|
+
httpx.ReadTimeout, httpx.ConnectTimeout,
|
57
|
+
httpx.WriteTimeout, httpx.PoolTimeout,
|
58
|
+
httpx.ConnectError, httpx.ReadError,
|
59
|
+
httpx.NetworkError) as e:
|
60
|
+
print(f"Connection error while polling the task: {str(e)}\nretrying...")
|
56
61
|
await asyncio.sleep(0.5)
|
57
62
|
return await self._poll_request()
|
58
63
|
except Exception as e:
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: chunkr-ai
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.43
|
4
4
|
Summary: Python client for Chunkr: open source document intelligence
|
5
5
|
Author-email: Ishaan Kapoor <ishaan@lumina.sh>
|
6
6
|
License: MIT License
|
@@ -37,6 +37,7 @@ Requires-Dist: pytest>=7.0.0; extra == "test"
|
|
37
37
|
Requires-Dist: pytest-xdist>=3.0.0; extra == "test"
|
38
38
|
Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
|
39
39
|
Requires-Dist: ruff>=0.9.3; extra == "test"
|
40
|
+
Dynamic: license-file
|
40
41
|
|
41
42
|
# Chunkr Python Client
|
42
43
|
|
@@ -4,13 +4,13 @@ chunkr_ai/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
chunkr_ai/api/auth.py,sha256=hlv0GiUmlsbFO1wLL9sslqOnsBSoBqkL_6Mk2SDvxgE,413
|
5
5
|
chunkr_ai/api/chunkr.py,sha256=BzwcKNCuLfVR-HzgY8tKStsW4pIDVVjBgnEqPLyUUMM,3292
|
6
6
|
chunkr_ai/api/chunkr_base.py,sha256=FDl0Ew8eOY4hur5FFqPENZiq9YQy0G3XWEqcKPeCO-U,6130
|
7
|
-
chunkr_ai/api/configuration.py,sha256=
|
7
|
+
chunkr_ai/api/configuration.py,sha256=Kkqxco8M-xgijUMsmtL8rJpMxrnSEnsQY8dUP8Cg5oc,3947
|
8
8
|
chunkr_ai/api/decorators.py,sha256=VJX4qGBIL00K2zY8bh5KAMWv7SltJ38TvPJH06FnFss,4415
|
9
9
|
chunkr_ai/api/misc.py,sha256=QN-2YWQ8e3VvvK63Ua-e8jsx6gxVxkO88Z96yWOofu0,3653
|
10
10
|
chunkr_ai/api/protocol.py,sha256=LjPrYSq52m1afIlAo0yVGXlGZxPRh8J6g7S4PAit3Zo,388
|
11
|
-
chunkr_ai/api/task_response.py,sha256=
|
12
|
-
chunkr_ai-0.0.
|
13
|
-
chunkr_ai-0.0.
|
14
|
-
chunkr_ai-0.0.
|
15
|
-
chunkr_ai-0.0.
|
16
|
-
chunkr_ai-0.0.
|
11
|
+
chunkr_ai/api/task_response.py,sha256=6kk9g2f7OZB3PAsmp4Or5A42r1dXTAzWAHEIVtLQ9sA,6545
|
12
|
+
chunkr_ai-0.0.43.dist-info/licenses/LICENSE,sha256=w3R12yNDyZpMiy2lxy_hvNbsldC75ww79sF0u11rkho,1069
|
13
|
+
chunkr_ai-0.0.43.dist-info/METADATA,sha256=EUBjfees5n8KRCpn65HFwsvzmSZYJ7wl5rkkbADwkd0,7053
|
14
|
+
chunkr_ai-0.0.43.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
15
|
+
chunkr_ai-0.0.43.dist-info/top_level.txt,sha256=0IZY7PZIiS8bw5r4NUQRUQ-ATi-L_3vLQVq3ZLouOW8,10
|
16
|
+
chunkr_ai-0.0.43.dist-info/RECORD,,
|
File without changes
|
File without changes
|