landingai-ade 0.18.0__py3-none-any.whl → 0.18.2__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/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "landingai_ade"
4
- __version__ = "0.18.0" # x-release-please-version
4
+ __version__ = "0.18.2" # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: landingai-ade
3
- Version: 0.18.0
3
+ Version: 0.18.2
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
@@ -110,6 +110,39 @@ response = client.extract(
110
110
  )
111
111
  ```
112
112
 
113
+ ### Parse Jobs
114
+
115
+ For processing large documents or batches of documents asynchronously:
116
+
117
+ ```python
118
+ import os
119
+ from landingai_ade import LandingAIADE
120
+
121
+ client = LandingAIADE(
122
+ apikey=os.environ.get("VISION_AGENT_API_KEY"),
123
+ )
124
+
125
+ # Create an async parse job
126
+ job = client.parse_jobs.create(
127
+ document_url="path/to/large_file.pdf",
128
+ model="dpt-2-latest",
129
+ )
130
+ print(f"Job created with ID: {job.job_id}")
131
+
132
+ # Get job status
133
+ job_status = client.parse_jobs.get(job.job_id)
134
+ print(f"Status: {job_status.status}")
135
+
136
+ # List all jobs (with optional filtering)
137
+ response = client.parse_jobs.list(
138
+ status="completed",
139
+ page=0,
140
+ page_size=10,
141
+ )
142
+ for job in response.jobs:
143
+ print(f"Job {job.job_id}: {job.status}")
144
+ ```
145
+
113
146
  ## Async usage
114
147
 
115
148
  Simply import `AsyncLandingAIADE` instead of `LandingAIADE` and use `await` with each API call:
@@ -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=8of7ETx2GzlS0kq-JMky4iQt-ZtOQeppgwjQMFF85nw,7253
14
- landingai_ade/_version.py,sha256=OUtk0fUSv2W9ao5QjXlECA78qyiZwkveTEZeLQQAUY4,166
14
+ landingai_ade/_version.py,sha256=fKQ0340U49Vy2ioV7MNpRWwKhdb-pElbn4_7Rhf5E9o,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
@@ -44,7 +44,7 @@ landingai_ade/types/parse_response.py,sha256=yr_IvBPWJBwK22FJ3spqcdvaD19enADGBZx
44
44
  landingai_ade/types/shared/__init__.py,sha256=n7dKpO8IQEstmlDczxcje4R_Kkg9EKn3UMejh8Q7_ns,218
45
45
  landingai_ade/types/shared/parse_grounding_box.py,sha256=tZ85sGAtkcTs-_jiVjD-hK8tHTn6vh6VHEW_ndmBB3w,260
46
46
  landingai_ade/types/shared/parse_metadata.py,sha256=r509Ig1rWW96pplh3PR25wNH40mGJBFENgsLvSFmHgY,384
47
- landingai_ade-0.18.0.dist-info/METADATA,sha256=Dk4PL_zCjyzJetmJUUayEiJkd2QSaaQLx7X4f_nZ2VI,15290
48
- landingai_ade-0.18.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
49
- landingai_ade-0.18.0.dist-info/licenses/LICENSE,sha256=xQsP4c8KA_Ov7OhSD-tj_2U8RQ8z9MQUy-WEjgbJdZU,11343
50
- landingai_ade-0.18.0.dist-info/RECORD,,
47
+ landingai_ade-0.18.2.dist-info/METADATA,sha256=xP-xNJ_Ckx_2suPZ_cgwjsKJp-cE7BHCXJ79zCpqTJc,16003
48
+ landingai_ade-0.18.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
49
+ landingai_ade-0.18.2.dist-info/licenses/LICENSE,sha256=xQsP4c8KA_Ov7OhSD-tj_2U8RQ8z9MQUy-WEjgbJdZU,11343
50
+ landingai_ade-0.18.2.dist-info/RECORD,,