xparse-client 0.2.15__tar.gz → 0.2.17__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.
@@ -0,0 +1,45 @@
1
+ # 包含必要的文件
2
+ include README.md
3
+ include LICENSE
4
+ include requirements.txt
5
+ include pyproject.toml
6
+
7
+ # 递归包含 xparse_client 包下的所有 Python 文件
8
+ recursive-include xparse_client *.py
9
+
10
+ # 排除不需要的文件和目录
11
+ global-exclude __pycache__
12
+ global-exclude *.py[cod]
13
+ global-exclude *$py.class
14
+ global-exclude *.so
15
+ global-exclude .DS_Store
16
+ global-exclude *.db
17
+ global-exclude *.sqlite
18
+ global-exclude *.sqlite3
19
+ global-exclude *.lock
20
+
21
+ # 排除开发相关目录
22
+ prune intermediate_results
23
+ prune result
24
+ prune parsed_documents
25
+ prune parsed_medical_documents
26
+ prune agent_vectors
27
+ prune example
28
+ prune doc
29
+ prune dist
30
+ prune build
31
+ prune .venv
32
+ prune venv
33
+ prune env
34
+ prune __pycache__
35
+ prune *.egg-info
36
+
37
+ # 排除开发相关文件(排除除 README.md 外的其他 .md 文件)
38
+ exclude upload_*.py
39
+ exclude agent.py
40
+ exclude Makefile
41
+ exclude 1.md
42
+ exclude *.pdf
43
+ exclude .gitignore
44
+ exclude uv.lock
45
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xparse-client
3
- Version: 0.2.15
3
+ Version: 0.2.17
4
4
  Summary: 面向Agent和RAG的新一代文档处理 AI Infra
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://gitlab.intsig.net/xparse1/xparse-pipeline
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xparse-client"
7
- version = "0.2.15"
7
+ version = "0.2.17"
8
8
  description = "面向Agent和RAG的新一代文档处理 AI Infra"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -0,0 +1,24 @@
1
+ boto3==1.40.70
2
+ botocore==1.40.70
3
+ certifi==2025.10.5
4
+ charset-normalizer==3.4.4
5
+ grpcio==1.76.0
6
+ idna==3.11
7
+ jmespath==1.0.1
8
+ milvus-lite==2.5.1
9
+ numpy==2.3.4
10
+ orjson==3.11.4
11
+ pandas==2.3.3
12
+ protobuf==6.33.0
13
+ pymilvus==2.6.3
14
+ python-dateutil==2.9.0.post0
15
+ python-dotenv==1.2.1
16
+ pytz==2025.2
17
+ requests==2.32.5
18
+ s3transfer==0.14.0
19
+ setuptools==80.9.0
20
+ six==1.17.0
21
+ tqdm==4.67.1
22
+ typing-extensions==4.15.0
23
+ tzdata==2025.2
24
+ urllib3==2.5.0
@@ -231,19 +231,24 @@ class Pipeline:
231
231
 
232
232
  # 将 stages 转换为 API 格式
233
233
  stages_data = [stage.to_dict() for stage in self.stages]
234
- form_data['stages'] = json.dumps(stages_data)
235
- form_data['data_source'] = json.dumps(data_source, ensure_ascii=False)
236
-
237
- # 如果启用了中间结果保存,在请求中添加参数
238
- if self.pipeline_config:
239
- form_data['config'] = json.dumps(self.pipeline_config.to_dict(), ensure_ascii=False)
234
+ try:
235
+ form_data['stages'] = json.dumps(stages_data)
236
+ form_data['data_source'] = json.dumps(data_source, ensure_ascii=False)
237
+
238
+ # 如果启用了中间结果保存,在请求中添加参数
239
+ if self.pipeline_config:
240
+ form_data['config'] = json.dumps(self.pipeline_config.to_dict(), ensure_ascii=False)
241
+ except Exception as e:
242
+ print(f" ✗ 入参处理失败,请检查配置: {e}")
243
+ logger.error(f"入参处理失败,请检查配置: {e}")
244
+ return None
240
245
 
241
246
  response = requests.post(
242
247
  url,
243
248
  files=files,
244
249
  data=form_data,
245
250
  headers=self.api_headers,
246
- timeout=120
251
+ timeout=630
247
252
  )
248
253
 
249
254
  if response.status_code == 200:
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ requirements.txt
6
+ xparse_client/__init__.py
7
+ xparse_client/pipeline/__init__.py
8
+ xparse_client/pipeline/config.py
9
+ xparse_client/pipeline/destinations.py
10
+ xparse_client/pipeline/pipeline.py
11
+ xparse_client/pipeline/sources.py