xparse-client 0.3.0b6__tar.gz → 0.3.0b8__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.
- {xparse_client-0.3.0b6/xparse_client.egg-info → xparse_client-0.3.0b8}/PKG-INFO +1 -1
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/pyproject.toml +1 -1
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/api/extract.py +8 -4
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/extract.py +1 -3
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8/xparse_client.egg-info}/PKG-INFO +1 -1
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client.egg-info/top_level.txt +0 -2
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/CHANGELOG.md +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/LICENSE +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/MANIFEST.in +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/README.md +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/example/1_basic_api_usage.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/example/2_async_job.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/example/3_local_workflow.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/example/4_advanced_workflow.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/example/README.md +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/example/config_example.json +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/setup.cfg +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/conftest.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/api/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/api/test_extract.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/api/test_local.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/api/test_parse.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/api/test_pipeline.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/api/test_workflows.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_ftp.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_local_connectors.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_milvus.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_qdrant.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_s3.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_smb.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_utils.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/models/test_local.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/models/test_pipeline_stages.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/models/test_workflows.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/test_base.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/test_client.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/test_config.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/test_exceptions.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/test_http.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/_base.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/_client.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/_config.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/_http.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/api/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/api/local.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/api/parse.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/api/pipeline.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/api/workflows.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/_utils.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/base.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/local.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/milvus.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/qdrant.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/s3.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/sources/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/sources/base.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/sources/ftp.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/sources/local.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/sources/s3.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/sources/smb.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/exceptions.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/__init__.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/chunk.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/embed.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/local.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/parse.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/pipeline.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/models/workflows.py +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client.egg-info/SOURCES.txt +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client.egg-info/dependency_links.txt +0 -0
- {xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client.egg-info/requires.txt +0 -0
|
@@ -79,8 +79,7 @@ class Extract(BaseAPI):
|
|
|
79
79
|
... "properties": {
|
|
80
80
|
... "invoice_number": {"type": "string"},
|
|
81
81
|
... "total_amount": {"type": "number"}
|
|
82
|
-
... }
|
|
83
|
-
... "required": ["invoice_number", "total_amount"]
|
|
82
|
+
... }
|
|
84
83
|
... },
|
|
85
84
|
... generate_citations=True
|
|
86
85
|
... )
|
|
@@ -90,11 +89,15 @@ class Extract(BaseAPI):
|
|
|
90
89
|
data = {}
|
|
91
90
|
|
|
92
91
|
if parse_config:
|
|
93
|
-
data["parse_config"] = json.dumps(
|
|
92
|
+
data["parse_config"] = json.dumps(
|
|
93
|
+
parse_config.model_dump(), ensure_ascii=False
|
|
94
|
+
)
|
|
94
95
|
|
|
95
96
|
# 处理 extract_config
|
|
96
97
|
if extract_config:
|
|
97
|
-
data["extract_config"] = json.dumps(
|
|
98
|
+
data["extract_config"] = json.dumps(
|
|
99
|
+
extract_config.model_dump(), ensure_ascii=False
|
|
100
|
+
)
|
|
98
101
|
else:
|
|
99
102
|
raise ValueError("extract_config is required")
|
|
100
103
|
|
|
@@ -102,4 +105,5 @@ class Extract(BaseAPI):
|
|
|
102
105
|
return self._parse_response(response, ParseResponse)
|
|
103
106
|
|
|
104
107
|
|
|
108
|
+
|
|
105
109
|
__all__ = ["Extract"]
|
|
@@ -27,9 +27,7 @@ class ExtractConfig(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
schema_: dict[str, Any] = Field(
|
|
30
|
-
default_factory=dict,
|
|
31
|
-
alias="schema",
|
|
32
|
-
description="JSON Schema 定义抽取的结构"
|
|
30
|
+
default_factory=dict, alias="schema", description="JSON Schema 定义抽取的结构"
|
|
33
31
|
)
|
|
34
32
|
generate_citations: bool = False
|
|
35
33
|
stamp: bool = False
|
|
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
|
{xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/tests/unit/connectors/test_local_connectors.py
RENAMED
|
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
|
{xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/__init__.py
RENAMED
|
File without changes
|
{xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/base.py
RENAMED
|
File without changes
|
{xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/local.py
RENAMED
|
File without changes
|
{xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/milvus.py
RENAMED
|
File without changes
|
{xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/destinations/qdrant.py
RENAMED
|
File without changes
|
|
File without changes
|
{xparse_client-0.3.0b6 → xparse_client-0.3.0b8}/xparse_client/connectors/sources/__init__.py
RENAMED
|
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
|