chunkr-ai 0.3.3__py3-none-any.whl → 0.3.5__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/__init__.py CHANGED
@@ -1,5 +1,8 @@
1
1
  from .api.chunkr import Chunkr
2
- import tomllib
2
+ try:
3
+ import tomllib
4
+ except ImportError:
5
+ import tomli as tomllib
3
6
  from pathlib import Path
4
7
 
5
8
  # Read version from pyproject.toml
chunkr_ai/api/auth.py CHANGED
@@ -1,8 +1,13 @@
1
1
  import platform
2
2
  import sys
3
- import tomllib
4
3
  from pathlib import Path
5
4
 
5
+ # Handle tomllib import for Python 3.10 compatibility
6
+ try:
7
+ import tomllib
8
+ except ImportError:
9
+ import tomli as tomllib
10
+
6
11
  def _find_pyproject_toml(start_path: Path) -> Path | None:
7
12
  """Search for pyproject.toml in current and parent directories."""
8
13
  for parent in [start_path, *start_path.parents]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chunkr-ai
3
- Version: 0.3.3
3
+ Version: 0.3.5
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
@@ -25,19 +25,21 @@ License: MIT License
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  SOFTWARE.
27
27
  Project-URL: Homepage, https://chunkr.ai
28
+ Requires-Python: >=3.10
28
29
  Description-Content-Type: text/markdown
29
30
  License-File: LICENSE
30
31
  Requires-Dist: httpx>=0.25.0
31
- Requires-Dist: matplotlib>=3.10.3
32
32
  Requires-Dist: nest-asyncio>=1.6.0
33
33
  Requires-Dist: pillow>=10.0.0
34
34
  Requires-Dist: pydantic>=2.0.0
35
35
  Requires-Dist: python-dotenv>=0.19.0
36
+ Requires-Dist: tomli>=1.2.0; python_version < "3.11"
36
37
  Provides-Extra: test
37
38
  Requires-Dist: pytest>=7.0.0; extra == "test"
38
39
  Requires-Dist: pytest-xdist>=3.0.0; extra == "test"
39
40
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
40
41
  Requires-Dist: ruff>=0.9.3; extra == "test"
42
+ Requires-Dist: matplotlib>=3.10.3; extra == "test"
41
43
  Dynamic: license-file
42
44
 
43
45
  # Chunkr Python Client
@@ -1,7 +1,7 @@
1
- chunkr_ai/__init__.py,sha256=xkXAzwvm1cFfrdJOOoZ2w9yBoudz_H6OF2HJimOma5I,409
1
+ chunkr_ai/__init__.py,sha256=d4EqExa_cJMpkPuJIaH-KhftCXEhXfNPijbAvqNpYEk,466
2
2
  chunkr_ai/models.py,sha256=NvFJOpsgzEyYHhE-flp7Yr9tpTDvFmF4T87jttFRquU,1202
3
3
  chunkr_ai/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- chunkr_ai/api/auth.py,sha256=eb0XykbDvWgNWCkeI19XInDNnuU06s_Y-_KC89LhWH0,1408
4
+ chunkr_ai/api/auth.py,sha256=WDBH-NZkJjf9tyt_jq7p0kQSuthHV3rf3WNG5iWcgxY,1520
5
5
  chunkr_ai/api/chunkr.py,sha256=3QAlZeq8zbiHp1HxgWpBBUAmvjabD9iBZxIkuGVsKJk,3822
6
6
  chunkr_ai/api/chunkr_base.py,sha256=8roSPoCADmaXM2r7zz2iHfZzIcY9NopOfa4j-dfk8RA,6310
7
7
  chunkr_ai/api/configuration.py,sha256=YDSN-hv5VyffKxDJBUaVE3u27BsDafxGNGfOBVRmRUk,11682
@@ -9,8 +9,8 @@ chunkr_ai/api/decorators.py,sha256=B-neL5d4N-skq2rjnOfaCVSTz6HEye6udcykacbv7G4,4
9
9
  chunkr_ai/api/misc.py,sha256=pNjbiD5reMdDSkjNTWHn0VgTVsGYn0fl751WuRtSkL8,5389
10
10
  chunkr_ai/api/protocol.py,sha256=LjPrYSq52m1afIlAo0yVGXlGZxPRh8J6g7S4PAit3Zo,388
11
11
  chunkr_ai/api/task_response.py,sha256=omnKkACjN3ijnbG6UncHLI_IDbsaJ1wHu1g4X9JbijU,8017
12
- chunkr_ai-0.3.3.dist-info/licenses/LICENSE,sha256=w3R12yNDyZpMiy2lxy_hvNbsldC75ww79sF0u11rkho,1069
13
- chunkr_ai-0.3.3.dist-info/METADATA,sha256=eQJqOqhXUch-11cqAC4dkEUc2ZkQxAe91vlYzbCEFkE,7086
14
- chunkr_ai-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- chunkr_ai-0.3.3.dist-info/top_level.txt,sha256=0IZY7PZIiS8bw5r4NUQRUQ-ATi-L_3vLQVq3ZLouOW8,10
16
- chunkr_ai-0.3.3.dist-info/RECORD,,
12
+ chunkr_ai-0.3.5.dist-info/licenses/LICENSE,sha256=w3R12yNDyZpMiy2lxy_hvNbsldC75ww79sF0u11rkho,1069
13
+ chunkr_ai-0.3.5.dist-info/METADATA,sha256=BoybBTK7eBK88x0NEi_iMzGzGoWJyReFz0prHYV9Zbw,7180
14
+ chunkr_ai-0.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ chunkr_ai-0.3.5.dist-info/top_level.txt,sha256=0IZY7PZIiS8bw5r4NUQRUQ-ATi-L_3vLQVq3ZLouOW8,10
16
+ chunkr_ai-0.3.5.dist-info/RECORD,,