chunkr-ai 0.0.7__tar.gz → 0.0.8__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.
- {chunkr_ai-0.0.7/src/chunkr_ai.egg-info → chunkr_ai-0.0.8}/PKG-INFO +1 -1
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/pyproject.toml +1 -1
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/config.py +5 -5
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/task.py +9 -9
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8/src/chunkr_ai.egg-info}/PKG-INFO +1 -1
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/LICENSE +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/README.md +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/setup.cfg +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/__init__.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/__init__.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/api.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/auth.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/base.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/chunkr.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/chunkr_async.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/misc.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/api/protocol.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/main.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai/models.py +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/SOURCES.txt +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/dependency_links.txt +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/requires.txt +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/src/chunkr_ai.egg-info/top_level.txt +0 -0
- {chunkr_ai-0.0.7 → chunkr_ai-0.0.8}/tests/test_chunkr.py +0 -0
| @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
| 4 4 |  | 
| 5 5 | 
             
            [project]
         | 
| 6 6 | 
             
            name = "chunkr-ai"
         | 
| 7 | 
            -
            version = "0.0. | 
| 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':
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         |