chunkr-ai 0.0.41__tar.gz → 0.0.43__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.
Files changed (22) hide show
  1. {chunkr_ai-0.0.41/src/chunkr_ai.egg-info → chunkr_ai-0.0.43}/PKG-INFO +3 -2
  2. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/pyproject.toml +1 -1
  3. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/task_response.py +7 -2
  4. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43/src/chunkr_ai.egg-info}/PKG-INFO +3 -2
  5. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/LICENSE +0 -0
  6. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/README.md +0 -0
  7. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/setup.cfg +0 -0
  8. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/__init__.py +0 -0
  9. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/__init__.py +0 -0
  10. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/auth.py +0 -0
  11. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/chunkr.py +0 -0
  12. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/chunkr_base.py +0 -0
  13. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/configuration.py +0 -0
  14. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/decorators.py +0 -0
  15. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/misc.py +0 -0
  16. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/api/protocol.py +0 -0
  17. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai/models.py +0 -0
  18. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai.egg-info/SOURCES.txt +0 -0
  19. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai.egg-info/dependency_links.txt +0 -0
  20. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai.egg-info/requires.txt +0 -0
  21. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/src/chunkr_ai.egg-info/top_level.txt +0 -0
  22. {chunkr_ai-0.0.41 → chunkr_ai-0.0.43}/tests/test_chunkr.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: chunkr-ai
3
- Version: 0.0.41
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,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "chunkr-ai"
7
- version = "0.0.41"
7
+ version = "0.0.43"
8
8
  authors = [{"name" = "Ishaan Kapoor", "email" = "ishaan@lumina.sh"}]
9
9
  description = "Python client for Chunkr: open source document intelligence"
10
10
  readme = "README.md"
@@ -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) as e:
55
- print(f"Connection error while polling the task: {str(e)}, retrying...")
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.2
1
+ Metadata-Version: 2.4
2
2
  Name: chunkr-ai
3
- Version: 0.0.41
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
 
File without changes
File without changes
File without changes