landingai-ade 0.14.1__tar.gz → 0.15.1__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.
Potentially problematic release.
This version of landingai-ade might be problematic. Click here for more details.
- landingai_ade-0.15.1/.release-please-manifest.json +3 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/CHANGELOG.md +16 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/PKG-INFO +3 -3
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/README.md +2 -2
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/pyproject.toml +1 -1
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_client.py +6 -4
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_constants.py +2 -2
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_version.py +1 -1
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/types/client_extract_params.py +6 -3
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/api_resources/test_client.py +2 -2
- landingai_ade-0.14.1/.release-please-manifest.json +0 -3
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/.gitignore +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/CONTRIBUTING.md +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/LICENSE +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/SECURITY.md +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/api.md +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/bin/check-release-environment +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/bin/publish-pypi +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/examples/.keep +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/noxfile.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/release-please-config.json +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/requirements-dev.lock +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/requirements.lock +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/__init__.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_base_client.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_compat.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_exceptions.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_files.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_models.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_qs.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_resource.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_response.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_streaming.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_types.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/__init__.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_compat.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_datetime_parse.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_logs.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_proxy.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_reflection.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_resources_proxy.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_streams.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_sync.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_transform.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_typing.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/_utils/_utils.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/lib/.keep +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/lib/__init__.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/lib/schema_utils.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/lib/url_utils.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/py.typed +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/resources/__init__.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/types/__init__.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/types/client_parse_params.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/types/extract_response.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/types/parse_response.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/__init__.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/api_resources/__init__.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/conftest.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/sample_file.txt +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_client.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_deepcopy.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_extract_files.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_files.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_models.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_qs.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_required_args.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_response.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_streaming.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_transform.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_utils/test_datetime_parse.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_utils/test_proxy.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/test_utils/test_typing.py +0 -0
- {landingai_ade-0.14.1 → landingai_ade-0.15.1}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.1 (2025-09-30)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.15.0...v0.15.1](https://github.com/landing-ai/ade-python/compare/v0.15.0...v0.15.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **api:** increase default timeout ([206b5d7](https://github.com/landing-ai/ade-python/commit/206b5d7567eb9f08aedbfdf1752af5cc9d1ac5c0))
|
|
10
|
+
|
|
11
|
+
## 0.15.0 (2025-09-29)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.14.1...v0.15.0](https://github.com/landing-ai/ade-python/compare/v0.14.1...v0.15.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** default models for extract ([7250c3f](https://github.com/landing-ai/ade-python/commit/7250c3f0978e5eb2d65f0535e80a5c7351d1f9f0))
|
|
18
|
+
|
|
3
19
|
## 0.14.1 (2025-09-29)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.14.0...v0.14.1](https://github.com/landing-ai/ade-python/compare/v0.14.0...v0.14.1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: landingai-ade
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.1
|
|
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
|
|
@@ -263,7 +263,7 @@ client.with_options(max_retries=5).parse()
|
|
|
263
263
|
|
|
264
264
|
### Timeouts
|
|
265
265
|
|
|
266
|
-
By default requests time out after
|
|
266
|
+
By default requests time out after 8 minutes. You can configure this with a `timeout` option,
|
|
267
267
|
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
|
|
268
268
|
|
|
269
269
|
```python
|
|
@@ -271,7 +271,7 @@ from landingai_ade import LandingAIADE
|
|
|
271
271
|
|
|
272
272
|
# Configure the default for all requests:
|
|
273
273
|
client = LandingAIADE(
|
|
274
|
-
# 20 seconds (default is
|
|
274
|
+
# 20 seconds (default is 8 minutes)
|
|
275
275
|
timeout=20.0,
|
|
276
276
|
)
|
|
277
277
|
|
|
@@ -228,7 +228,7 @@ client.with_options(max_retries=5).parse()
|
|
|
228
228
|
|
|
229
229
|
### Timeouts
|
|
230
230
|
|
|
231
|
-
By default requests time out after
|
|
231
|
+
By default requests time out after 8 minutes. You can configure this with a `timeout` option,
|
|
232
232
|
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
|
|
233
233
|
|
|
234
234
|
```python
|
|
@@ -236,7 +236,7 @@ from landingai_ade import LandingAIADE
|
|
|
236
236
|
|
|
237
237
|
# Configure the default for all requests:
|
|
238
238
|
client = LandingAIADE(
|
|
239
|
-
# 20 seconds (default is
|
|
239
|
+
# 20 seconds (default is 8 minutes)
|
|
240
240
|
timeout=20.0,
|
|
241
241
|
)
|
|
242
242
|
|
|
@@ -237,7 +237,7 @@ class LandingAIADE(SyncAPIClient):
|
|
|
237
237
|
schema: str,
|
|
238
238
|
markdown: Optional[FileTypes] | Omit = omit,
|
|
239
239
|
markdown_url: Optional[str] | Omit = omit,
|
|
240
|
-
model: Optional[
|
|
240
|
+
model: Optional[str] | Omit = omit,
|
|
241
241
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
242
242
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
243
243
|
extra_headers: Headers | None = None,
|
|
@@ -264,7 +264,8 @@ class LandingAIADE(SyncAPIClient):
|
|
|
264
264
|
|
|
265
265
|
markdown_url: The URL to the Markdown file to extract data from.
|
|
266
266
|
|
|
267
|
-
model: The version of the model to use for extraction.
|
|
267
|
+
model: The version of the model to use for extraction. Use `extract-latest` to use the
|
|
268
|
+
latest version.
|
|
268
269
|
|
|
269
270
|
extra_headers: Send extra headers
|
|
270
271
|
|
|
@@ -584,7 +585,7 @@ class AsyncLandingAIADE(AsyncAPIClient):
|
|
|
584
585
|
schema: str,
|
|
585
586
|
markdown: Optional[FileTypes] | Omit = omit,
|
|
586
587
|
markdown_url: Optional[str] | Omit = omit,
|
|
587
|
-
model: Optional[
|
|
588
|
+
model: Optional[str] | Omit = omit,
|
|
588
589
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
589
590
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
590
591
|
extra_headers: Headers | None = None,
|
|
@@ -611,7 +612,8 @@ class AsyncLandingAIADE(AsyncAPIClient):
|
|
|
611
612
|
|
|
612
613
|
markdown_url: The URL to the Markdown file to extract data from.
|
|
613
614
|
|
|
614
|
-
model: The version of the model to use for extraction.
|
|
615
|
+
model: The version of the model to use for extraction. Use `extract-latest` to use the
|
|
616
|
+
latest version.
|
|
615
617
|
|
|
616
618
|
extra_headers: Send extra headers
|
|
617
619
|
|
|
@@ -5,8 +5,8 @@ import httpx
|
|
|
5
5
|
RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
|
|
6
6
|
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
|
|
7
7
|
|
|
8
|
-
# default timeout is
|
|
9
|
-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=
|
|
8
|
+
# default timeout is 8 minutes
|
|
9
|
+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=480, connect=5.0)
|
|
10
10
|
DEFAULT_MAX_RETRIES = 2
|
|
11
11
|
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
|
|
12
12
|
|
{landingai_ade-0.14.1 → landingai_ade-0.15.1}/src/landingai_ade/types/client_extract_params.py
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Optional
|
|
6
|
-
from typing_extensions import
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
8
|
from .._types import FileTypes
|
|
9
9
|
|
|
@@ -25,5 +25,8 @@ class ClientExtractParams(TypedDict, total=False):
|
|
|
25
25
|
markdown_url: Optional[str]
|
|
26
26
|
"""The URL to the Markdown file to extract data from."""
|
|
27
27
|
|
|
28
|
-
model: Optional[
|
|
29
|
-
"""The version of the model to use for extraction.
|
|
28
|
+
model: Optional[str]
|
|
29
|
+
"""The version of the model to use for extraction.
|
|
30
|
+
|
|
31
|
+
Use `extract-latest` to use the latest version.
|
|
32
|
+
"""
|
|
@@ -32,7 +32,7 @@ class TestClient:
|
|
|
32
32
|
schema="schema",
|
|
33
33
|
markdown=b"raw file contents",
|
|
34
34
|
markdown_url="markdown_url",
|
|
35
|
-
model="
|
|
35
|
+
model="model",
|
|
36
36
|
)
|
|
37
37
|
assert_matches_type(ExtractResponse, client_, path=["response"])
|
|
38
38
|
|
|
@@ -122,7 +122,7 @@ class TestAsyncClient:
|
|
|
122
122
|
schema="schema",
|
|
123
123
|
markdown=b"raw file contents",
|
|
124
124
|
markdown_url="markdown_url",
|
|
125
|
-
model="
|
|
125
|
+
model="model",
|
|
126
126
|
)
|
|
127
127
|
assert_matches_type(ExtractResponse, client, path=["response"])
|
|
128
128
|
|
|
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.14.1 → landingai_ade-0.15.1}/src/landingai_ade/types/client_parse_params.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
|