chunkr-ai 0.0.19__tar.gz → 0.0.21__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {chunkr_ai-0.0.19/src/chunkr_ai.egg-info → chunkr_ai-0.0.21}/PKG-INFO +1 -1
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/pyproject.toml +1 -1
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/decorators.py +5 -1
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/task_response.py +6 -6
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21/src/chunkr_ai.egg-info}/PKG-INFO +1 -1
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/LICENSE +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/README.md +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/setup.cfg +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/__init__.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/__init__.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/api.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/auth.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/chunkr.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/chunkr_base.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/config.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/misc.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/api/protocol.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai/models.py +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai.egg-info/SOURCES.txt +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai.egg-info/dependency_links.txt +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai.egg-info/requires.txt +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/src/chunkr_ai.egg-info/top_level.txt +0 -0
- {chunkr_ai-0.0.19 → chunkr_ai-0.0.21}/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.21"
|
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"
|
@@ -1,7 +1,11 @@
|
|
1
1
|
import functools
|
2
2
|
import asyncio
|
3
3
|
import httpx
|
4
|
-
from typing import Callable, Any, TypeVar, Awaitable,
|
4
|
+
from typing import Callable, Any, TypeVar, Awaitable, Union, overload
|
5
|
+
try:
|
6
|
+
from typing import ParamSpec
|
7
|
+
except ImportError:
|
8
|
+
from typing_extensions import ParamSpec
|
5
9
|
|
6
10
|
T = TypeVar('T')
|
7
11
|
P = ParamSpec('P')
|
@@ -13,14 +13,14 @@ T = TypeVar("T", bound="TaskResponse")
|
|
13
13
|
class TaskResponse(BaseModel, Generic[T]):
|
14
14
|
configuration: OutputConfiguration
|
15
15
|
created_at: datetime
|
16
|
-
expires_at: Optional[datetime]
|
17
|
-
finished_at: Optional[datetime]
|
18
|
-
message: str
|
19
|
-
output: Optional[OutputResponse]
|
20
|
-
started_at: Optional[datetime]
|
16
|
+
expires_at: Optional[datetime] = None
|
17
|
+
finished_at: Optional[datetime] = None
|
18
|
+
message: Optional[str] = None
|
19
|
+
output: Optional[OutputResponse] = None
|
20
|
+
started_at: Optional[datetime] = None
|
21
21
|
status: Status
|
22
22
|
task_id: str
|
23
|
-
task_url: Optional[str]
|
23
|
+
task_url: Optional[str] = None
|
24
24
|
_client: Optional[ChunkrClientProtocol] = PrivateAttr(default=None)
|
25
25
|
|
26
26
|
def with_client(self, client: ChunkrClientProtocol) -> T:
|
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
|