landingai-ade 0.14.1__py3-none-any.whl → 0.15.1__py3-none-any.whl
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/_client.py +6 -4
- landingai_ade/_constants.py +2 -2
- landingai_ade/_version.py +1 -1
- landingai_ade/types/client_extract_params.py +6 -3
- {landingai_ade-0.14.1.dist-info → landingai_ade-0.15.1.dist-info}/METADATA +3 -3
- {landingai_ade-0.14.1.dist-info → landingai_ade-0.15.1.dist-info}/RECORD +8 -8
- {landingai_ade-0.14.1.dist-info → landingai_ade-0.15.1.dist-info}/WHEEL +0 -0
- {landingai_ade-0.14.1.dist-info → landingai_ade-0.15.1.dist-info}/licenses/LICENSE +0 -0
landingai_ade/_client.py
CHANGED
|
@@ -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
|
|
landingai_ade/_constants.py
CHANGED
|
@@ -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/_version.py
CHANGED
|
@@ -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
|
+
"""
|
|
@@ -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
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
landingai_ade/__init__.py,sha256=tyK5QngTNcumeBQ-uhvyRts2TtXr0eAR5rofvktz7JA,2760
|
|
2
2
|
landingai_ade/_base_client.py,sha256=vIP54_-Z2Yetpi2x_3RCVmlu7G48VMSe8j18zhXzunQ,67054
|
|
3
|
-
landingai_ade/_client.py,sha256=
|
|
3
|
+
landingai_ade/_client.py,sha256=vdEFrGlNYiZP9A5O_f66VGuHKN_xOhXlAWyALHbLN4k,31628
|
|
4
4
|
landingai_ade/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
|
5
|
-
landingai_ade/_constants.py,sha256=
|
|
5
|
+
landingai_ade/_constants.py,sha256=GTZei0iejG5c3XydQEK4LDinwvGVxPC4N-6h-xuhSHU,464
|
|
6
6
|
landingai_ade/_exceptions.py,sha256=bunb9U_h8wb2_IA8tRYVuTx-clbqqDgX8pjmdgX10d8,3232
|
|
7
7
|
landingai_ade/_files.py,sha256=-o6Spse7PuzyMcxecmdCX8_29_99NyozjfvgGhdPY28,3613
|
|
8
8
|
landingai_ade/_models.py,sha256=lKnskYPONAWDvWo8tmbbVk7HmG7UOsI0Nve0vSMmkRc,30452
|
|
@@ -11,7 +11,7 @@ landingai_ade/_resource.py,sha256=fZFMI9zYnf0F6ACBB8teJVzhBelkymH2SMQripxfTvI,11
|
|
|
11
11
|
landingai_ade/_response.py,sha256=qUH6kfV7CszYHyJKTrJXtJY5b2zPizEM6HyGgsisLtI,28858
|
|
12
12
|
landingai_ade/_streaming.py,sha256=V4RaEBKfcNOdOfTAwMzlx_klsTLILvpnS7PvBWC5Exw,10124
|
|
13
13
|
landingai_ade/_types.py,sha256=NLzflzcpP13aYUFLmQMB1XUiX98QV0XwIljPyVDXm8k,7243
|
|
14
|
-
landingai_ade/_version.py,sha256
|
|
14
|
+
landingai_ade/_version.py,sha256=thFqmHWCh0_plWq6q-xM2iDTk_btCiktPKTXDrIRmsQ,166
|
|
15
15
|
landingai_ade/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
landingai_ade/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
landingai_ade/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -31,11 +31,11 @@ landingai_ade/lib/schema_utils.py,sha256=TdfJbeyRaKuaaNpookuFwqasjxcYBXp0nvp3h9k
|
|
|
31
31
|
landingai_ade/lib/url_utils.py,sha256=ydhsvrpcdM4DBoZOIbp83dME9FeKotUDtpzFVU9FZUE,1797
|
|
32
32
|
landingai_ade/resources/__init__.py,sha256=ikKh5ucm9qFI-Z42nOKxhBhEI-YHaaxvsSddO_Nx0-Y,86
|
|
33
33
|
landingai_ade/types/__init__.py,sha256=afoInmNk4PL0G9bmARTsVXzAhFCGNtx5LFSKwm9VYq8,397
|
|
34
|
-
landingai_ade/types/client_extract_params.py,sha256=
|
|
34
|
+
landingai_ade/types/client_extract_params.py,sha256=efQQ2wiFompakO6LC0fxL6TzuqFsw5FdXInxhTTIUXU,921
|
|
35
35
|
landingai_ade/types/client_parse_params.py,sha256=sTqMewspihj9q4BcgBYGoSJJlDjapsvPYBeoYlUAXp0,1250
|
|
36
36
|
landingai_ade/types/extract_response.py,sha256=mAxHf_kqtu5y46GRTaq4KxhZ97oI-t7LD4qvEUduxf4,657
|
|
37
37
|
landingai_ade/types/parse_response.py,sha256=K-Ig1Ak2S7pMyBNbnR5yM5ZXkOAtH3PAnu4NtFNusrc,1793
|
|
38
|
-
landingai_ade-0.
|
|
39
|
-
landingai_ade-0.
|
|
40
|
-
landingai_ade-0.
|
|
41
|
-
landingai_ade-0.
|
|
38
|
+
landingai_ade-0.15.1.dist-info/METADATA,sha256=Bs8R2CSpqlpcem4SFDdmTWel_oJsav94UzTjkkPiCrc,15290
|
|
39
|
+
landingai_ade-0.15.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
40
|
+
landingai_ade-0.15.1.dist-info/licenses/LICENSE,sha256=xQsP4c8KA_Ov7OhSD-tj_2U8RQ8z9MQUy-WEjgbJdZU,11343
|
|
41
|
+
landingai_ade-0.15.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|