retab 0.0.44__tar.gz → 0.0.45__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.
- {retab-0.0.44 → retab-0.0.45}/PKG-INFO +1 -1
- {retab-0.0.44 → retab-0.0.45}/retab/resources/deployments/client.py +9 -9
- {retab-0.0.44 → retab-0.0.45}/retab.egg-info/PKG-INFO +1 -1
- {retab-0.0.44 → retab-0.0.45}/setup.py +1 -1
- {retab-0.0.44 → retab-0.0.45}/README.md +0 -0
- {retab-0.0.44 → retab-0.0.45}/pyproject.toml +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/_resource.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/client.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/generate_types.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/py.typed +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/consensus/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/consensus/client.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/consensus/completions.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/consensus/completions_stream.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/consensus/responses.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/consensus/responses_stream.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/deployments/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/documents/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/documents/client.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/documents/extractions.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/files.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/finetuning.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/jsonlUtils.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/models.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/openai_example.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/client.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/endpoints.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/links.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/logs.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/mailboxes.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/outlook.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/automations/tests.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/processors/client.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/projects/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/projects/client.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/projects/documents.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/projects/iterations.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/prompt_optimization.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/schemas.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/secrets/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/secrets/client.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/secrets/external_api_keys.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/secrets/webhook.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/resources/usage.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/ai_models.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/automations/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/automations/cron.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/automations/endpoints.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/automations/links.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/automations/mailboxes.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/automations/outlook.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/automations/webhooks.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/browser_canvas.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/chat.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/completions.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/consensus.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/db/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/db/annotations.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/db/files.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/deprecated_evals.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/documents/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/documents/correct_orientation.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/documents/create_messages.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/documents/extractions.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/documents/parse.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/events.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/extractions.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/inference_settings.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/jobs/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/jobs/base.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/jobs/batch_annotation.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/jobs/evaluation.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/jobs/finetune.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/jobs/prompt_optimization.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/jobs/webcrawl.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/logs.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/metrics.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/mime.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/modalities.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/pagination.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/predictions.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/projects/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/projects/documents.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/projects/iterations.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/projects/model.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/schemas/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/schemas/enhance.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/schemas/evaluate.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/schemas/generate.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/schemas/layout.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/schemas/object.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/schemas/templates.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/secrets/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/secrets/external_api_keys.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/types/standards.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/_model_cards/anthropic.yaml +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/_model_cards/auto.yaml +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/_model_cards/gemini.yaml +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/_model_cards/openai.yaml +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/_model_cards/xai.yaml +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/ai_models.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/benchmarking.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/chat.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/display.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/hashing.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/json_schema.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/mime.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/responses.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/stream_context_managers.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/usage/__init__.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab/utils/usage/usage.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab.egg-info/SOURCES.txt +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab.egg-info/dependency_links.txt +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab.egg-info/requires.txt +0 -0
- {retab-0.0.44 → retab-0.0.45}/retab.egg-info/top_level.txt +0 -0
- {retab-0.0.44 → retab-0.0.45}/setup.cfg +0 -0
- {retab-0.0.44 → retab-0.0.45}/tests/test_automations_links.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/tests/test_automations_mailboxes.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/tests/test_documents_api.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/tests/test_evaluations.py +0 -0
- {retab-0.0.44 → retab-0.0.45}/tests/test_preprocessor.py +0 -0
@@ -12,7 +12,7 @@ from ...types.standards import PreparedRequest
|
|
12
12
|
|
13
13
|
|
14
14
|
class DeploymentsMixin:
|
15
|
-
def
|
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
|
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}
|
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
|
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
|
-
"""
|
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.
|
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
|
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
|
-
"""
|
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.
|
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)
|
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
|
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
|
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
|