landingai-ade 0.12.0__py3-none-any.whl → 0.13.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 +0 -2
- landingai_ade/_version.py +1 -1
- {landingai_ade-0.12.0.dist-info → landingai_ade-0.13.1.dist-info}/METADATA +6 -6
- {landingai_ade-0.12.0.dist-info → landingai_ade-0.13.1.dist-info}/RECORD +6 -6
- {landingai_ade-0.12.0.dist-info → landingai_ade-0.13.1.dist-info}/WHEEL +0 -0
- {landingai_ade-0.12.0.dist-info → landingai_ade-0.13.1.dist-info}/licenses/LICENSE +0 -0
landingai_ade/_client.py
CHANGED
|
@@ -291,7 +291,6 @@ class LandingAIADE(SyncAPIClient):
|
|
|
291
291
|
# multipart/form-data; boundary=---abc--
|
|
292
292
|
extra_headers = {
|
|
293
293
|
"Content-Type": "multipart/form-data",
|
|
294
|
-
"runtime_tag": f"ade-python-v{_LIB_VERSION}",
|
|
295
294
|
**(extra_headers or {}),
|
|
296
295
|
}
|
|
297
296
|
return self.post(
|
|
@@ -640,7 +639,6 @@ class AsyncLandingAIADE(AsyncAPIClient):
|
|
|
640
639
|
# multipart/form-data; boundary=---abc--
|
|
641
640
|
extra_headers = {
|
|
642
641
|
"Content-Type": "multipart/form-data",
|
|
643
|
-
"runtime_tag": f"ade-python-v{_LIB_VERSION}",
|
|
644
642
|
**(extra_headers or {}),
|
|
645
643
|
}
|
|
646
644
|
return await self.post(
|
landingai_ade/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: landingai-ade
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.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
|
|
@@ -74,8 +74,8 @@ client = LandingAIADE(
|
|
|
74
74
|
)
|
|
75
75
|
|
|
76
76
|
response = client.parse(
|
|
77
|
-
# support document or document_url
|
|
78
|
-
document_url="
|
|
77
|
+
# support document as File or document_url as local path/remote url
|
|
78
|
+
document_url="path/to/file",
|
|
79
79
|
model="dpt-2-latest",
|
|
80
80
|
)
|
|
81
81
|
print(response.chunks)
|
|
@@ -105,7 +105,7 @@ schema = pydantic_to_json_schema(Person)
|
|
|
105
105
|
client = LandingAIADE(apikey=os.environ.get("VISION_AGENT_API_KEY"))
|
|
106
106
|
response = client.extract(
|
|
107
107
|
schema=schema,
|
|
108
|
-
# support markdown or markdown_url
|
|
108
|
+
# support markdown as File or markdown_url as local path/remote url
|
|
109
109
|
markdown=Path('path/to/file.md')
|
|
110
110
|
)
|
|
111
111
|
```
|
|
@@ -128,7 +128,7 @@ client = AsyncLandingAIADE(
|
|
|
128
128
|
|
|
129
129
|
async def main() -> None:
|
|
130
130
|
response = await client.parse(
|
|
131
|
-
document_url="
|
|
131
|
+
document_url="path/to/file",
|
|
132
132
|
model="dpt-2-latest",
|
|
133
133
|
)
|
|
134
134
|
print(response.chunks)
|
|
@@ -164,7 +164,7 @@ async def main() -> None:
|
|
|
164
164
|
http_client=DefaultAioHttpClient(),
|
|
165
165
|
) as client:
|
|
166
166
|
response = await client.parse(
|
|
167
|
-
document_url="
|
|
167
|
+
document_url="path/to/file",
|
|
168
168
|
model="dpt-2-latest",
|
|
169
169
|
)
|
|
170
170
|
print(response.chunks)
|
|
@@ -1,6 +1,6 @@
|
|
|
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=_eB6hhFZKiBxbW1GHrEfCEJ6xgtWR3JnSOyJI1KGPHY,31488
|
|
4
4
|
landingai_ade/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
|
5
5
|
landingai_ade/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
landingai_ade/_exceptions.py,sha256=bunb9U_h8wb2_IA8tRYVuTx-clbqqDgX8pjmdgX10d8,3232
|
|
@@ -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=sZP4Klx1TGvWO4iNn2osOlo4aoPprntByppB3wJaaT8,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
|
|
@@ -35,7 +35,7 @@ landingai_ade/types/client_extract_params.py,sha256=XyR0xk0LzFe36ACBFGr2HKv4S1VM
|
|
|
35
35
|
landingai_ade/types/client_parse_params.py,sha256=_9AGv7yaAfXszlwHCb44JazD98Rkx2hqi259xp9YBMU,1292
|
|
36
36
|
landingai_ade/types/extract_response.py,sha256=mAxHf_kqtu5y46GRTaq4KxhZ97oI-t7LD4qvEUduxf4,657
|
|
37
37
|
landingai_ade/types/parse_response.py,sha256=5UNneeknxzGAhOIWl1CYb18ZGu9S4l6VUFpT41Bqb0w,1078
|
|
38
|
-
landingai_ade-0.
|
|
39
|
-
landingai_ade-0.
|
|
40
|
-
landingai_ade-0.
|
|
41
|
-
landingai_ade-0.
|
|
38
|
+
landingai_ade-0.13.1.dist-info/METADATA,sha256=A-Bo1QS_sz6QC9YSdz6fmJbJdUuoXs_JG32Zfw0HnpU,15288
|
|
39
|
+
landingai_ade-0.13.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
40
|
+
landingai_ade-0.13.1.dist-info/licenses/LICENSE,sha256=xQsP4c8KA_Ov7OhSD-tj_2U8RQ8z9MQUy-WEjgbJdZU,11343
|
|
41
|
+
landingai_ade-0.13.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|