chunkr-ai 0.0.7__tar.gz → 0.0.8__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. {chunkr_ai-0.0.7/src/chunkr_ai.egg-info → chunkr_ai-0.0.8}/PKG-INFO +1 -1
  2. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/pyproject.toml +1 -1
  3. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/config.py +5 -5
  4. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/task.py +9 -9
  5. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8/src/chunkr_ai.egg-info}/PKG-INFO +1 -1
  6. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/LICENSE +0 -0
  7. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/README.md +0 -0
  8. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/setup.cfg +0 -0
  9. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/__init__.py +0 -0
  10. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/__init__.py +0 -0
  11. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/api.py +0 -0
  12. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/auth.py +0 -0
  13. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/base.py +0 -0
  14. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/chunkr.py +0 -0
  15. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/chunkr_async.py +0 -0
  16. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/misc.py +0 -0
  17. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/protocol.py +0 -0
  18. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/main.py +0 -0
  19. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/models.py +0 -0
  20. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/SOURCES.txt +0 -0
  21. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/dependency_links.txt +0 -0
  22. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/requires.txt +0 -0
  23. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/top_level.txt +0 -0
  24. {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/tests/test_chunkr.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chunkr-ai
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Python client for Chunkr: open source document intelligence
5
5
  Author-email: Ishaan Kapoor <ishaan@lumina.sh>
6
6
  Project-URL: Homepage, https://chunkr.ai
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "chunkr-ai"
7
- version = "0.0.7"
7
+ version = "0.0.8"
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"
@@ -86,9 +86,9 @@ class Segment(BaseModel):
86
86
  bbox: BoundingBox
87
87
  content: str
88
88
  page_height: float
89
- html: Optional[str]
90
- image: Optional[str]
91
- markdown: Optional[str]
89
+ html: Optional[str] = None
90
+ image: Optional[str] = None
91
+ markdown: Optional[str] = None
92
92
  ocr: List[OCRResult]
93
93
  page_number: int
94
94
  page_width: float
@@ -104,8 +104,8 @@ class ExtractedJson(BaseModel):
104
104
  data: Dict
105
105
 
106
106
  class OutputResponse(BaseModel):
107
- chunks: List[Chunk] = []
108
- extracted_json: Optional[ExtractedJson]
107
+ chunks: List[Chunk]
108
+ extracted_json: Optional[ExtractedJson] = Field(default=None)
109
109
 
110
110
  class Model(str, Enum):
111
111
  FAST = "Fast"
@@ -18,18 +18,18 @@ class Status(str, Enum):
18
18
  class TaskResponse(BaseModel):
19
19
  configuration: Configuration
20
20
  created_at: datetime
21
- expires_at: Optional[datetime]
22
- file_name: Optional[str]
23
- finished_at: Optional[datetime]
24
- input_file_url: Optional[str]
21
+ expires_at: Optional[datetime] = None
22
+ file_name: Optional[str] = None
23
+ finished_at: Optional[datetime] = None
24
+ input_file_url: Optional[str] = None
25
25
  message: str
26
- output: Optional[OutputResponse]
27
- page_count: Optional[int]
28
- pdf_url: Optional[str]
29
- started_at: Optional[datetime]
26
+ output: Optional[OutputResponse] = None
27
+ page_count: Optional[int] = None
28
+ pdf_url: Optional[str] = None
29
+ started_at: Optional[datetime] = None
30
30
  status: Status
31
31
  task_id: str
32
- task_url: Optional[str]
32
+ task_url: Optional[str] = None
33
33
  _client: Optional[Union[ChunkrClientProtocol]] = PrivateAttr(default=None)
34
34
 
35
35
  def with_client(self, client: Union[ChunkrClientProtocol]) -> 'TaskResponse':
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chunkr-ai
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Python client for Chunkr: open source document intelligence
5
5
  Author-email: Ishaan Kapoor <ishaan@lumina.sh>
6
6
  Project-URL: Homepage, https://chunkr.ai
File without changes
File without changes
File without changes