retab 0.0.44__py3-none-any.whl → 0.0.45__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.
@@ -12,7 +12,7 @@ from ...types.standards import PreparedRequest
12
12
 
13
13
 
14
14
  class DeploymentsMixin:
15
- def prepare_submit(
15
+ def prepare_extract(
16
16
  self,
17
17
  project_id: str,
18
18
  iteration_id: str,
@@ -22,7 +22,7 @@ class DeploymentsMixin:
22
22
  seed: int | None = None,
23
23
  store: bool = True,
24
24
  ) -> PreparedRequest:
25
- """Prepare a request to submit documents to a processor.
25
+ """Prepare a request to extract documents from a deployment.
26
26
 
27
27
  Args:
28
28
  project_id: ID of the project
@@ -73,7 +73,7 @@ class DeploymentsMixin:
73
73
  )
74
74
  files = files_list
75
75
 
76
- url = f"/v1/deployments/{project_id}/{iteration_id}/submit"
76
+ url = f"/v1/deployments/extract/{project_id}/{iteration_id}"
77
77
 
78
78
  return PreparedRequest(method="POST", url=url, form_data=form_data, files=files)
79
79
 
@@ -84,7 +84,7 @@ class Deployments(SyncAPIResource, DeploymentsMixin):
84
84
  def __init__(self, client: Any) -> None:
85
85
  super().__init__(client=client)
86
86
 
87
- def submit(
87
+ def extract(
88
88
  self,
89
89
  project_id: str,
90
90
  iteration_id: str,
@@ -94,7 +94,7 @@ class Deployments(SyncAPIResource, DeploymentsMixin):
94
94
  seed: int | None = None,
95
95
  store: bool = True,
96
96
  ) -> RetabParsedChatCompletion:
97
- """Submit documents to a deployment for processing.
97
+ """Extract documents from a deployment.
98
98
 
99
99
  Args:
100
100
  project_id: ID of the project
@@ -108,7 +108,7 @@ class Deployments(SyncAPIResource, DeploymentsMixin):
108
108
  Returns:
109
109
  RetabParsedChatCompletion: The processing result
110
110
  """
111
- request = self.prepare_submit(project_id=project_id, iteration_id=iteration_id, document=document, documents=documents, temperature=temperature, seed=seed, store=store)
111
+ request = self.prepare_extract(project_id=project_id, iteration_id=iteration_id, document=document, documents=documents, temperature=temperature, seed=seed, store=store)
112
112
  response = self._client._prepared_request(request)
113
113
  return RetabParsedChatCompletion.model_validate(response)
114
114
 
@@ -119,7 +119,7 @@ class AsyncDeployments(AsyncAPIResource, DeploymentsMixin):
119
119
  def __init__(self, client: Any) -> None:
120
120
  super().__init__(client=client)
121
121
 
122
- async def submit(
122
+ async def extract(
123
123
  self,
124
124
  project_id: str,
125
125
  iteration_id: str,
@@ -129,7 +129,7 @@ class AsyncDeployments(AsyncAPIResource, DeploymentsMixin):
129
129
  seed: int | None = None,
130
130
  store: bool = True,
131
131
  ) -> RetabParsedChatCompletion:
132
- """Submit documents to a deployment for processing.
132
+ """Extract documents from a deployment.
133
133
 
134
134
  Args:
135
135
  project_id: ID of the project
@@ -143,6 +143,6 @@ class AsyncDeployments(AsyncAPIResource, DeploymentsMixin):
143
143
  Returns:
144
144
  RetabParsedChatCompletion: The processing result
145
145
  """
146
- request = self.prepare_submit(project_id=project_id, iteration_id=iteration_id, document=document, documents=documents, temperature=temperature, seed=seed, store=store)
146
+ request = self.prepare_extract(project_id=project_id, iteration_id=iteration_id, document=document, documents=documents, temperature=temperature, seed=seed, store=store)
147
147
  response = await self._client._prepared_request(request)
148
148
  return RetabParsedChatCompletion.model_validate(response)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: retab
3
- Version: 0.0.44
3
+ Version: 0.0.45
4
4
  Summary: Retab official python library
5
5
  Home-page: https://github.com/Retab-dev/retab
6
6
  Author: Retab
@@ -20,7 +20,7 @@ retab/resources/consensus/completions_stream.py,sha256=DlU9od01F1Fmh9WjTLhq4Ksnt
20
20
  retab/resources/consensus/responses.py,sha256=hf1_gXBG8iwrBGyuXx16qCh6ULDXn9a0Uty1C-WiG7s,9966
21
21
  retab/resources/consensus/responses_stream.py,sha256=OopJ9aoO7HctfhLnXzJx8-dkk-4jK_juOw6jUAkzwVM,11671
22
22
  retab/resources/deployments/__init__.py,sha256=sGTfJ8ozhkTtEzHC_LziiffYFElm6XjtYIZ0jEDFLg4,97
23
- retab/resources/deployments/client.py,sha256=3WYJ0Nm1BdP7418GL35kSJD424EWkQG-04eJlGpb8Do,6183
23
+ retab/resources/deployments/client.py,sha256=y2zc1gRnzvLVoR_ZDOBPy_Fdq1iOYafA12ThAaqfDrA,6169
24
24
  retab/resources/deployments/automations/__init__.py,sha256=Iej-_yIxc8xAuhYmR0e2VI7j_EXVsNk1_L98OJSD82E,121
25
25
  retab/resources/deployments/automations/client.py,sha256=3w54F0JfC2GYDosLux8LVEjDd_RXqQ29-SyNXGa28U8,10500
26
26
  retab/resources/deployments/automations/endpoints.py,sha256=zJ556BNighciPff1laA_bBPZNxT4mWmGi-kDMXa5_tw,10893
@@ -128,7 +128,7 @@ retab/utils/_model_cards/openai.yaml,sha256=PcmjqAioomqWOw25H4BluVfJ1WO_zapg_nPx
128
128
  retab/utils/_model_cards/xai.yaml,sha256=OdVV33_WODc4UBZhDezcUq_5mHQK5zeOT49EjJUJ764,612
129
129
  retab/utils/usage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
130
130
  retab/utils/usage/usage.py,sha256=Dxi4EyTBMsu4mgUg7hwh4gTQlE70Xn3gxMZb0EEbti4,12791
131
- retab-0.0.44.dist-info/METADATA,sha256=MstZwgAoQhx6Z2-cS1cr4L8RdAktmFsoqUv-mgvmDsE,4481
132
- retab-0.0.44.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
133
- retab-0.0.44.dist-info/top_level.txt,sha256=waQR0EGdhLIQtztoE3AXg7ik5ONQ9q_bsKVpyFuJdq0,6
134
- retab-0.0.44.dist-info/RECORD,,
131
+ retab-0.0.45.dist-info/METADATA,sha256=toZpfwd-Ph4A7IwGXxxNBp6a0XVckntEHA00vi2TPVU,4481
132
+ retab-0.0.45.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
133
+ retab-0.0.45.dist-info/top_level.txt,sha256=waQR0EGdhLIQtztoE3AXg7ik5ONQ9q_bsKVpyFuJdq0,6
134
+ retab-0.0.45.dist-info/RECORD,,
File without changes