landingai-ade 0.18.2__tar.gz → 0.18.4__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.
- landingai_ade-0.18.4/.release-please-manifest.json +3 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/CHANGELOG.md +12 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/PKG-INFO +37 -32
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/README.md +35 -30
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/pyproject.toml +2 -2
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/requirements-dev.lock +1 -1
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/requirements.lock +1 -1
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_version.py +1 -1
- landingai_ade-0.18.2/.release-please-manifest.json +0 -3
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/.gitignore +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/CONTRIBUTING.md +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/LICENSE +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/SECURITY.md +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/api.md +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/bin/check-release-environment +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/bin/publish-pypi +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/examples/.keep +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/noxfile.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/release-please-config.json +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_base_client.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_client.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_compat.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_constants.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_exceptions.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_files.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_models.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_qs.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_resource.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_response.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_streaming.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_types.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_compat.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_datetime_parse.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_logs.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_proxy.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_reflection.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_resources_proxy.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_streams.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_sync.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_transform.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_typing.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/_utils/_utils.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/lib/.keep +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/lib/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/lib/schema_utils.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/lib/url_utils.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/py.typed +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/resources/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/resources/parse_jobs.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/client_extract_params.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/client_parse_params.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/extract_response.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_create_params.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_create_response.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_get_response.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_list_params.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_list_response.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_response.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/shared/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/shared/parse_grounding_box.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/shared/parse_metadata.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/api_resources/__init__.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/api_resources/test_client.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/api_resources/test_parse_jobs.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/conftest.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/sample_file.txt +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_client.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_deepcopy.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_extract_files.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_files.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_models.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_qs.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_required_args.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_response.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_streaming.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_transform.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_utils/test_datetime_parse.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_utils/test_proxy.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/test_utils/test_typing.py +0 -0
- {landingai_ade-0.18.2 → landingai_ade-0.18.4}/tests/utils.py +0 -0
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.4 (2025-10-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.18.3...v0.18.4](https://github.com/landing-ai/ade-python/compare/v0.18.3...v0.18.4)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* bump `httpx-aiohttp` version to 0.1.9 ([d442ad4](https://github.com/landing-ai/ade-python/commit/d442ad41bf47c0dab3319190992627751d7cac4a))
|
|
10
|
+
|
|
11
|
+
## 0.18.3 (2025-10-14)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.18.2...v0.18.3](https://github.com/landing-ai/ade-python/compare/v0.18.2...v0.18.3)
|
|
14
|
+
|
|
3
15
|
## 0.18.2 (2025-10-11)
|
|
4
16
|
|
|
5
17
|
Full Changelog: [v0.18.1...v0.18.2](https://github.com/landing-ai/ade-python/compare/v0.18.1...v0.18.2)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: landingai-ade
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.4
|
|
4
4
|
Summary: The official Python library for the landingai-ade API
|
|
5
5
|
Project-URL: Homepage, https://github.com/landing-ai/ade-python
|
|
6
6
|
Project-URL: Repository, https://github.com/landing-ai/ade-python
|
|
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
|
|
|
30
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
-
Requires-Dist: httpx-aiohttp>=0.1.
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
36
36
|
<!-- @format -->
|
|
@@ -65,6 +65,7 @@ The full API of this library can be found in [api.md](https://github.com/landing
|
|
|
65
65
|
|
|
66
66
|
```python
|
|
67
67
|
import os
|
|
68
|
+
from pathlib import Path
|
|
68
69
|
from landingai_ade import LandingAIADE
|
|
69
70
|
|
|
70
71
|
client = LandingAIADE(
|
|
@@ -74,8 +75,8 @@ client = LandingAIADE(
|
|
|
74
75
|
)
|
|
75
76
|
|
|
76
77
|
response = client.parse(
|
|
77
|
-
#
|
|
78
|
-
|
|
78
|
+
# use document= for local files, document_url= for remote URLs
|
|
79
|
+
document=Path("path/to/file"),
|
|
79
80
|
model="dpt-2-latest",
|
|
80
81
|
)
|
|
81
82
|
print(response.chunks)
|
|
@@ -86,36 +87,13 @@ we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
|
|
|
86
87
|
to add `VISION_AGENT_API_KEY="My Apikey"` to your `.env` file
|
|
87
88
|
so that your Apikey is not stored in source control.
|
|
88
89
|
|
|
89
|
-
### Extract
|
|
90
|
-
|
|
91
|
-
```python
|
|
92
|
-
from landingai_ade import LandingAIADE
|
|
93
|
-
from landingai_ade.lib import pydantic_to_json_schema
|
|
94
|
-
from pydantic import BaseModel, Field
|
|
95
|
-
from pathlib import Path
|
|
96
|
-
|
|
97
|
-
# Define your schema
|
|
98
|
-
class Person(BaseModel):
|
|
99
|
-
name: str = Field(description="Person's name")
|
|
100
|
-
age: int = Field(description="Person's age")
|
|
101
|
-
|
|
102
|
-
# Convert to JSON schema
|
|
103
|
-
schema = pydantic_to_json_schema(Person)
|
|
104
|
-
# Use with the SDK
|
|
105
|
-
client = LandingAIADE(apikey=os.environ.get("VISION_AGENT_API_KEY"))
|
|
106
|
-
response = client.extract(
|
|
107
|
-
schema=schema,
|
|
108
|
-
# support markdown as File or markdown_url as local path/remote url
|
|
109
|
-
markdown=Path('path/to/file.md')
|
|
110
|
-
)
|
|
111
|
-
```
|
|
112
|
-
|
|
113
90
|
### Parse Jobs
|
|
114
91
|
|
|
115
|
-
For processing large documents
|
|
92
|
+
For processing large documents asynchronously:
|
|
116
93
|
|
|
117
94
|
```python
|
|
118
95
|
import os
|
|
96
|
+
from pathlib import Path
|
|
119
97
|
from landingai_ade import LandingAIADE
|
|
120
98
|
|
|
121
99
|
client = LandingAIADE(
|
|
@@ -124,7 +102,7 @@ client = LandingAIADE(
|
|
|
124
102
|
|
|
125
103
|
# Create an async parse job
|
|
126
104
|
job = client.parse_jobs.create(
|
|
127
|
-
|
|
105
|
+
document=Path("path/to/large_file.pdf"),
|
|
128
106
|
model="dpt-2-latest",
|
|
129
107
|
)
|
|
130
108
|
print(f"Job created with ID: {job.job_id}")
|
|
@@ -143,6 +121,31 @@ for job in response.jobs:
|
|
|
143
121
|
print(f"Job {job.job_id}: {job.status}")
|
|
144
122
|
```
|
|
145
123
|
|
|
124
|
+
### Extract
|
|
125
|
+
|
|
126
|
+
```python
|
|
127
|
+
import os
|
|
128
|
+
from pathlib import Path
|
|
129
|
+
from landingai_ade import LandingAIADE
|
|
130
|
+
from landingai_ade.lib import pydantic_to_json_schema
|
|
131
|
+
from pydantic import BaseModel, Field
|
|
132
|
+
|
|
133
|
+
# Define your schema
|
|
134
|
+
class Person(BaseModel):
|
|
135
|
+
name: str = Field(description="Person's name")
|
|
136
|
+
age: int = Field(description="Person's age")
|
|
137
|
+
|
|
138
|
+
# Convert to JSON schema
|
|
139
|
+
schema = pydantic_to_json_schema(Person)
|
|
140
|
+
# Use with the SDK
|
|
141
|
+
client = LandingAIADE(apikey=os.environ.get("VISION_AGENT_API_KEY"))
|
|
142
|
+
response = client.extract(
|
|
143
|
+
schema=schema,
|
|
144
|
+
# use markdown= for local files, markdown_url= for remote URLs
|
|
145
|
+
markdown=Path('path/to/file.md')
|
|
146
|
+
)
|
|
147
|
+
```
|
|
148
|
+
|
|
146
149
|
## Async usage
|
|
147
150
|
|
|
148
151
|
Simply import `AsyncLandingAIADE` instead of `LandingAIADE` and use `await` with each API call:
|
|
@@ -150,6 +153,7 @@ Simply import `AsyncLandingAIADE` instead of `LandingAIADE` and use `await` with
|
|
|
150
153
|
```python
|
|
151
154
|
import os
|
|
152
155
|
import asyncio
|
|
156
|
+
from pathlib import Path
|
|
153
157
|
from landingai_ade import AsyncLandingAIADE
|
|
154
158
|
|
|
155
159
|
client = AsyncLandingAIADE(
|
|
@@ -161,7 +165,7 @@ client = AsyncLandingAIADE(
|
|
|
161
165
|
|
|
162
166
|
async def main() -> None:
|
|
163
167
|
response = await client.parse(
|
|
164
|
-
|
|
168
|
+
document=Path("path/to/file"),
|
|
165
169
|
model="dpt-2-latest",
|
|
166
170
|
)
|
|
167
171
|
print(response.chunks)
|
|
@@ -187,6 +191,7 @@ Then you can enable it by instantiating the client with `http_client=DefaultAioH
|
|
|
187
191
|
|
|
188
192
|
```python
|
|
189
193
|
import asyncio
|
|
194
|
+
from pathlib import Path
|
|
190
195
|
from landingai_ade import DefaultAioHttpClient
|
|
191
196
|
from landingai_ade import AsyncLandingAIADE
|
|
192
197
|
|
|
@@ -197,7 +202,7 @@ async def main() -> None:
|
|
|
197
202
|
http_client=DefaultAioHttpClient(),
|
|
198
203
|
) as client:
|
|
199
204
|
response = await client.parse(
|
|
200
|
-
|
|
205
|
+
document=Path("path/to/file"),
|
|
201
206
|
model="dpt-2-latest",
|
|
202
207
|
)
|
|
203
208
|
print(response.chunks)
|
|
@@ -30,6 +30,7 @@ The full API of this library can be found in [api.md](api.md).
|
|
|
30
30
|
|
|
31
31
|
```python
|
|
32
32
|
import os
|
|
33
|
+
from pathlib import Path
|
|
33
34
|
from landingai_ade import LandingAIADE
|
|
34
35
|
|
|
35
36
|
client = LandingAIADE(
|
|
@@ -39,8 +40,8 @@ client = LandingAIADE(
|
|
|
39
40
|
)
|
|
40
41
|
|
|
41
42
|
response = client.parse(
|
|
42
|
-
#
|
|
43
|
-
|
|
43
|
+
# use document= for local files, document_url= for remote URLs
|
|
44
|
+
document=Path("path/to/file"),
|
|
44
45
|
model="dpt-2-latest",
|
|
45
46
|
)
|
|
46
47
|
print(response.chunks)
|
|
@@ -51,36 +52,13 @@ we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
|
|
|
51
52
|
to add `VISION_AGENT_API_KEY="My Apikey"` to your `.env` file
|
|
52
53
|
so that your Apikey is not stored in source control.
|
|
53
54
|
|
|
54
|
-
### Extract
|
|
55
|
-
|
|
56
|
-
```python
|
|
57
|
-
from landingai_ade import LandingAIADE
|
|
58
|
-
from landingai_ade.lib import pydantic_to_json_schema
|
|
59
|
-
from pydantic import BaseModel, Field
|
|
60
|
-
from pathlib import Path
|
|
61
|
-
|
|
62
|
-
# Define your schema
|
|
63
|
-
class Person(BaseModel):
|
|
64
|
-
name: str = Field(description="Person's name")
|
|
65
|
-
age: int = Field(description="Person's age")
|
|
66
|
-
|
|
67
|
-
# Convert to JSON schema
|
|
68
|
-
schema = pydantic_to_json_schema(Person)
|
|
69
|
-
# Use with the SDK
|
|
70
|
-
client = LandingAIADE(apikey=os.environ.get("VISION_AGENT_API_KEY"))
|
|
71
|
-
response = client.extract(
|
|
72
|
-
schema=schema,
|
|
73
|
-
# support markdown as File or markdown_url as local path/remote url
|
|
74
|
-
markdown=Path('path/to/file.md')
|
|
75
|
-
)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
55
|
### Parse Jobs
|
|
79
56
|
|
|
80
|
-
For processing large documents
|
|
57
|
+
For processing large documents asynchronously:
|
|
81
58
|
|
|
82
59
|
```python
|
|
83
60
|
import os
|
|
61
|
+
from pathlib import Path
|
|
84
62
|
from landingai_ade import LandingAIADE
|
|
85
63
|
|
|
86
64
|
client = LandingAIADE(
|
|
@@ -89,7 +67,7 @@ client = LandingAIADE(
|
|
|
89
67
|
|
|
90
68
|
# Create an async parse job
|
|
91
69
|
job = client.parse_jobs.create(
|
|
92
|
-
|
|
70
|
+
document=Path("path/to/large_file.pdf"),
|
|
93
71
|
model="dpt-2-latest",
|
|
94
72
|
)
|
|
95
73
|
print(f"Job created with ID: {job.job_id}")
|
|
@@ -108,6 +86,31 @@ for job in response.jobs:
|
|
|
108
86
|
print(f"Job {job.job_id}: {job.status}")
|
|
109
87
|
```
|
|
110
88
|
|
|
89
|
+
### Extract
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
import os
|
|
93
|
+
from pathlib import Path
|
|
94
|
+
from landingai_ade import LandingAIADE
|
|
95
|
+
from landingai_ade.lib import pydantic_to_json_schema
|
|
96
|
+
from pydantic import BaseModel, Field
|
|
97
|
+
|
|
98
|
+
# Define your schema
|
|
99
|
+
class Person(BaseModel):
|
|
100
|
+
name: str = Field(description="Person's name")
|
|
101
|
+
age: int = Field(description="Person's age")
|
|
102
|
+
|
|
103
|
+
# Convert to JSON schema
|
|
104
|
+
schema = pydantic_to_json_schema(Person)
|
|
105
|
+
# Use with the SDK
|
|
106
|
+
client = LandingAIADE(apikey=os.environ.get("VISION_AGENT_API_KEY"))
|
|
107
|
+
response = client.extract(
|
|
108
|
+
schema=schema,
|
|
109
|
+
# use markdown= for local files, markdown_url= for remote URLs
|
|
110
|
+
markdown=Path('path/to/file.md')
|
|
111
|
+
)
|
|
112
|
+
```
|
|
113
|
+
|
|
111
114
|
## Async usage
|
|
112
115
|
|
|
113
116
|
Simply import `AsyncLandingAIADE` instead of `LandingAIADE` and use `await` with each API call:
|
|
@@ -115,6 +118,7 @@ Simply import `AsyncLandingAIADE` instead of `LandingAIADE` and use `await` with
|
|
|
115
118
|
```python
|
|
116
119
|
import os
|
|
117
120
|
import asyncio
|
|
121
|
+
from pathlib import Path
|
|
118
122
|
from landingai_ade import AsyncLandingAIADE
|
|
119
123
|
|
|
120
124
|
client = AsyncLandingAIADE(
|
|
@@ -126,7 +130,7 @@ client = AsyncLandingAIADE(
|
|
|
126
130
|
|
|
127
131
|
async def main() -> None:
|
|
128
132
|
response = await client.parse(
|
|
129
|
-
|
|
133
|
+
document=Path("path/to/file"),
|
|
130
134
|
model="dpt-2-latest",
|
|
131
135
|
)
|
|
132
136
|
print(response.chunks)
|
|
@@ -152,6 +156,7 @@ Then you can enable it by instantiating the client with `http_client=DefaultAioH
|
|
|
152
156
|
|
|
153
157
|
```python
|
|
154
158
|
import asyncio
|
|
159
|
+
from pathlib import Path
|
|
155
160
|
from landingai_ade import DefaultAioHttpClient
|
|
156
161
|
from landingai_ade import AsyncLandingAIADE
|
|
157
162
|
|
|
@@ -162,7 +167,7 @@ async def main() -> None:
|
|
|
162
167
|
http_client=DefaultAioHttpClient(),
|
|
163
168
|
) as client:
|
|
164
169
|
response = await client.parse(
|
|
165
|
-
|
|
170
|
+
document=Path("path/to/file"),
|
|
166
171
|
model="dpt-2-latest",
|
|
167
172
|
)
|
|
168
173
|
print(response.chunks)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "landingai-ade"
|
|
3
|
-
version = "0.18.
|
|
3
|
+
version = "0.18.4"
|
|
4
4
|
description = "The official Python library for the landingai-ade API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -39,7 +39,7 @@ Homepage = "https://github.com/landing-ai/ade-python"
|
|
|
39
39
|
Repository = "https://github.com/landing-ai/ade-python"
|
|
40
40
|
|
|
41
41
|
[project.optional-dependencies]
|
|
42
|
-
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.
|
|
42
|
+
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
|
|
43
43
|
|
|
44
44
|
[tool.rye]
|
|
45
45
|
managed = true
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/client_extract_params.py
RENAMED
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/client_parse_params.py
RENAMED
|
File without changes
|
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_create_params.py
RENAMED
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_create_response.py
RENAMED
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_get_response.py
RENAMED
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_list_params.py
RENAMED
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/parse_job_list_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/shared/parse_grounding_box.py
RENAMED
|
File without changes
|
{landingai_ade-0.18.2 → landingai_ade-0.18.4}/src/landingai_ade/types/shared/parse_metadata.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|