chunkr-ai 0.0.40__tar.gz → 0.0.41__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.40/src/chunkr_ai.egg-info → chunkr_ai-0.0.41}/PKG-INFO +1 -1
  2. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/pyproject.toml +1 -1
  3. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/configuration.py +1 -0
  4. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41/src/chunkr_ai.egg-info}/PKG-INFO +1 -1
  5. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/tests/test_chunkr.py +8 -1
  6. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/LICENSE +0 -0
  7. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/README.md +0 -0
  8. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/setup.cfg +0 -0
  9. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/__init__.py +0 -0
  10. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/__init__.py +0 -0
  11. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/auth.py +0 -0
  12. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/chunkr.py +0 -0
  13. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/chunkr_base.py +0 -0
  14. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/decorators.py +0 -0
  15. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/misc.py +0 -0
  16. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/protocol.py +0 -0
  17. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/api/task_response.py +0 -0
  18. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai/models.py +0 -0
  19. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai.egg-info/SOURCES.txt +0 -0
  20. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai.egg-info/dependency_links.txt +0 -0
  21. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai.egg-info/requires.txt +0 -0
  22. {chunkr_ai-0.0.40 → chunkr_ai-0.0.41}/src/chunkr_ai.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chunkr-ai
3
- Version: 0.0.40
3
+ Version: 0.0.41
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "chunkr-ai"
7
- version = "0.0.40"
7
+ version = "0.0.41"
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"
@@ -102,6 +102,7 @@ class Model(str, Enum):
102
102
 
103
103
  class Pipeline(str, Enum):
104
104
  AZURE = "Azure"
105
+ CHUNKR = "Chunkr"
105
106
 
106
107
  class Configuration(BaseModel):
107
108
  chunk_processing: Optional[ChunkProcessing] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chunkr-ai
3
- Version: 0.0.40
3
+ Version: 0.0.41
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
@@ -203,11 +203,18 @@ async def test_update_task_direct(client, sample_path):
203
203
  assert task.configuration.segmentation_strategy == SegmentationStrategy.PAGE
204
204
 
205
205
  @pytest.mark.asyncio
206
- async def test_pipeline_type(client, sample_path):
206
+ async def test_pipeline_type_azure(client, sample_path):
207
207
  response = await client.upload(sample_path, Configuration(pipeline=Pipeline.AZURE))
208
208
  assert response.task_id is not None
209
209
  assert response.status == "Succeeded"
210
210
  assert response.output is not None
211
+
212
+ @pytest.mark.asyncio
213
+ async def test_pipeline_type_azure(client, sample_path):
214
+ response = await client.upload(sample_path, Configuration(pipeline=Pipeline.CHUNKR))
215
+ assert response.task_id is not None
216
+ assert response.status == "Succeeded"
217
+ assert response.output is not None
211
218
 
212
219
  @pytest.mark.asyncio
213
220
  async def test_client_lifecycle(client, sample_path):
File without changes
File without changes
File without changes