xparse-client 0.2.12__tar.gz → 0.3.0b6__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/CHANGELOG.md +77 -0
- {xparse_client-0.2.12 → xparse_client-0.3.0b6}/LICENSE +1 -1
- xparse_client-0.3.0b6/MANIFEST.in +18 -0
- xparse_client-0.3.0b6/PKG-INFO +1075 -0
- xparse_client-0.3.0b6/README.md +1026 -0
- xparse_client-0.3.0b6/example/1_basic_api_usage.py +198 -0
- xparse_client-0.3.0b6/example/2_async_job.py +210 -0
- xparse_client-0.3.0b6/example/3_local_workflow.py +300 -0
- xparse_client-0.3.0b6/example/4_advanced_workflow.py +327 -0
- xparse_client-0.3.0b6/example/README.md +128 -0
- xparse_client-0.3.0b6/example/config_example.json +95 -0
- xparse_client-0.3.0b6/pyproject.toml +182 -0
- xparse_client-0.3.0b6/tests/conftest.py +310 -0
- xparse_client-0.3.0b6/tests/unit/__init__.py +1 -0
- xparse_client-0.3.0b6/tests/unit/api/__init__.py +1 -0
- xparse_client-0.3.0b6/tests/unit/api/test_extract.py +232 -0
- xparse_client-0.3.0b6/tests/unit/api/test_local.py +231 -0
- xparse_client-0.3.0b6/tests/unit/api/test_parse.py +374 -0
- xparse_client-0.3.0b6/tests/unit/api/test_pipeline.py +369 -0
- xparse_client-0.3.0b6/tests/unit/api/test_workflows.py +108 -0
- xparse_client-0.3.0b6/tests/unit/connectors/test_ftp.py +525 -0
- xparse_client-0.3.0b6/tests/unit/connectors/test_local_connectors.py +324 -0
- xparse_client-0.3.0b6/tests/unit/connectors/test_milvus.py +368 -0
- xparse_client-0.3.0b6/tests/unit/connectors/test_qdrant.py +399 -0
- xparse_client-0.3.0b6/tests/unit/connectors/test_s3.py +598 -0
- xparse_client-0.3.0b6/tests/unit/connectors/test_smb.py +442 -0
- xparse_client-0.3.0b6/tests/unit/connectors/test_utils.py +335 -0
- xparse_client-0.3.0b6/tests/unit/models/test_local.py +54 -0
- xparse_client-0.3.0b6/tests/unit/models/test_pipeline_stages.py +144 -0
- xparse_client-0.3.0b6/tests/unit/models/test_workflows.py +55 -0
- xparse_client-0.3.0b6/tests/unit/test_base.py +437 -0
- xparse_client-0.3.0b6/tests/unit/test_client.py +110 -0
- xparse_client-0.3.0b6/tests/unit/test_config.py +160 -0
- xparse_client-0.3.0b6/tests/unit/test_exceptions.py +182 -0
- xparse_client-0.3.0b6/tests/unit/test_http.py +562 -0
- xparse_client-0.3.0b6/xparse_client/__init__.py +146 -0
- xparse_client-0.3.0b6/xparse_client/_base.py +188 -0
- xparse_client-0.3.0b6/xparse_client/_client.py +218 -0
- xparse_client-0.3.0b6/xparse_client/_config.py +221 -0
- xparse_client-0.3.0b6/xparse_client/_http.py +351 -0
- xparse_client-0.3.0b6/xparse_client/api/__init__.py +14 -0
- xparse_client-0.3.0b6/xparse_client/api/extract.py +105 -0
- xparse_client-0.3.0b6/xparse_client/api/local.py +225 -0
- xparse_client-0.3.0b6/xparse_client/api/parse.py +209 -0
- xparse_client-0.3.0b6/xparse_client/api/pipeline.py +134 -0
- xparse_client-0.3.0b6/xparse_client/api/workflows.py +204 -0
- xparse_client-0.3.0b6/xparse_client/connectors/__init__.py +45 -0
- xparse_client-0.3.0b6/xparse_client/connectors/_utils.py +138 -0
- xparse_client-0.3.0b6/xparse_client/connectors/destinations/__init__.py +45 -0
- xparse_client-0.3.0b6/xparse_client/connectors/destinations/base.py +116 -0
- xparse_client-0.3.0b6/xparse_client/connectors/destinations/local.py +91 -0
- xparse_client-0.3.0b6/xparse_client/connectors/destinations/milvus.py +229 -0
- xparse_client-0.3.0b6/xparse_client/connectors/destinations/qdrant.py +238 -0
- xparse_client-0.3.0b6/xparse_client/connectors/destinations/s3.py +163 -0
- xparse_client-0.3.0b6/xparse_client/connectors/sources/__init__.py +45 -0
- xparse_client-0.3.0b6/xparse_client/connectors/sources/base.py +74 -0
- xparse_client-0.3.0b6/xparse_client/connectors/sources/ftp.py +278 -0
- xparse_client-0.3.0b6/xparse_client/connectors/sources/local.py +176 -0
- xparse_client-0.3.0b6/xparse_client/connectors/sources/s3.py +232 -0
- xparse_client-0.3.0b6/xparse_client/connectors/sources/smb.py +259 -0
- xparse_client-0.3.0b6/xparse_client/exceptions.py +398 -0
- xparse_client-0.3.0b6/xparse_client/models/__init__.py +60 -0
- xparse_client-0.3.0b6/xparse_client/models/chunk.py +39 -0
- xparse_client-0.3.0b6/xparse_client/models/embed.py +62 -0
- xparse_client-0.3.0b6/xparse_client/models/extract.py +43 -0
- xparse_client-0.3.0b6/xparse_client/models/local.py +38 -0
- xparse_client-0.3.0b6/xparse_client/models/parse.py +132 -0
- xparse_client-0.3.0b6/xparse_client/models/pipeline.py +134 -0
- xparse_client-0.3.0b6/xparse_client/models/workflows.py +74 -0
- xparse_client-0.3.0b6/xparse_client.egg-info/PKG-INFO +1075 -0
- xparse_client-0.3.0b6/xparse_client.egg-info/SOURCES.txt +73 -0
- xparse_client-0.3.0b6/xparse_client.egg-info/requires.txt +38 -0
- xparse_client-0.3.0b6/xparse_client.egg-info/top_level.txt +7 -0
- xparse_client-0.2.12/PKG-INFO +0 -1050
- xparse_client-0.2.12/README.md +0 -1031
- xparse_client-0.2.12/example/run_pipeline.py +0 -515
- xparse_client-0.2.12/example/run_pipeline_test.py +0 -458
- xparse_client-0.2.12/pyproject.toml +0 -29
- xparse_client-0.2.12/xparse_client/__init__.py +0 -55
- xparse_client-0.2.12/xparse_client/pipeline/__init__.py +0 -3
- xparse_client-0.2.12/xparse_client/pipeline/config.py +0 -129
- xparse_client-0.2.12/xparse_client/pipeline/destinations.py +0 -489
- xparse_client-0.2.12/xparse_client/pipeline/pipeline.py +0 -622
- xparse_client-0.2.12/xparse_client/pipeline/sources.py +0 -585
- xparse_client-0.2.12/xparse_client.egg-info/PKG-INFO +0 -1050
- xparse_client-0.2.12/xparse_client.egg-info/SOURCES.txt +0 -16
- xparse_client-0.2.12/xparse_client.egg-info/requires.txt +0 -6
- xparse_client-0.2.12/xparse_client.egg-info/top_level.txt +0 -9
- {xparse_client-0.2.12 → xparse_client-0.3.0b6}/setup.cfg +0 -0
- {xparse_client-0.2.12 → xparse_client-0.3.0b6}/xparse_client.egg-info/dependency_links.txt +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
所有重要变更都会记录在这个文件中。
|
|
4
|
+
|
|
5
|
+
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/),
|
|
6
|
+
版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
7
|
+
|
|
8
|
+
## [0.3.0] - 2026-01-27
|
|
9
|
+
|
|
10
|
+
### 💥 破坏性变更
|
|
11
|
+
|
|
12
|
+
- **完全移除 Pipeline 类**: Pipeline 类及相关代码已从代码库中删除
|
|
13
|
+
- 原因: 已完全迁移到新版 `XParseClient.local.run_workflow()` API
|
|
14
|
+
- 影响: 使用 `Pipeline` 的代码将无法运行
|
|
15
|
+
- 迁移指南: [docs/MIGRATION_FROM_PIPELINE.md](docs/MIGRATION_FROM_PIPELINE.md)
|
|
16
|
+
|
|
17
|
+
### 新增
|
|
18
|
+
|
|
19
|
+
- **新版 SDK 设计**: 统一到 `XParseClient` 入口点
|
|
20
|
+
- **本地批处理 API**: `client.local.run_workflow()` 支持本地同步批处理
|
|
21
|
+
- **Workflows API**: `client.workflows` 远程工作流管理(骨架)
|
|
22
|
+
- **懒加载机制**: API 模块按需导入,提升启动速度
|
|
23
|
+
- **服务端异步任务**: `create_async_job()`、`get_result()`、`wait_for_result()`
|
|
24
|
+
- **进度回调**: 本地批处理支持 `progress_callback` 参数
|
|
25
|
+
- **错误处理策略**: 支持 `stop/continue/retry` 三种策略
|
|
26
|
+
- **类型安全的 Stage 配置**: 使用 Pydantic discriminated unions 实现类型安全
|
|
27
|
+
|
|
28
|
+
### 变更
|
|
29
|
+
|
|
30
|
+
- **移除客户端 async/await**: 删除 `partition_async`、`extract_async`、`execute_async`
|
|
31
|
+
- 原因: 服务端异步任务更强大,客户端 async 使用场景有限
|
|
32
|
+
- **Connectors 模块化**: Source/Destination 移至 `xparse_client.connectors`
|
|
33
|
+
- **重命名**: `Stage` → `PipelineStage`
|
|
34
|
+
|
|
35
|
+
### 移除
|
|
36
|
+
|
|
37
|
+
- **Pipeline 类**: 完全移除,使用 `XParseClient.local.run_workflow()` 替代
|
|
38
|
+
- **create_pipeline_from_config**: 移除,手动构建对象或使用新版 API
|
|
39
|
+
- **Stage 类**: 移除,使用类型安全的 `ParseStage`、`ChunkStage` 等
|
|
40
|
+
- **从根模块导出的旧版 API**: 移除 Source/Destination 从 `xparse_client` 的导出
|
|
41
|
+
|
|
42
|
+
### 修复
|
|
43
|
+
|
|
44
|
+
- 无(此版本为架构重构)
|
|
45
|
+
|
|
46
|
+
### 文档
|
|
47
|
+
|
|
48
|
+
- 新增完整迁移指南: `docs/MIGRATION_FROM_PIPELINE.md`(详细的迁移步骤和示例)
|
|
49
|
+
- 新增简明迁移指南: `docs/migration-guide.md`
|
|
50
|
+
- 更新 README 示例使用新 API
|
|
51
|
+
- 更新 CLAUDE.md 项目指南
|
|
52
|
+
- 重写 `example/run_pipeline.py` 使用新 API
|
|
53
|
+
|
|
54
|
+
### 兼容性
|
|
55
|
+
|
|
56
|
+
- **⚠️ 不向后兼容**: Pipeline 类已完全移除
|
|
57
|
+
- **迁移方式**:
|
|
58
|
+
- 安装 v0.2.20 继续使用旧版:`pip install xparse-client==0.2.20`
|
|
59
|
+
- 迁移到新版 API:查看 [完整迁移指南](docs/MIGRATION_FROM_PIPELINE.md)
|
|
60
|
+
- **Python 版本**: 保持 >= 3.8
|
|
61
|
+
- **依赖变更**: 无
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## [0.2.20] - 2026-01-XX
|
|
66
|
+
|
|
67
|
+
### 新增
|
|
68
|
+
|
|
69
|
+
- 初始版本的 Pipeline API
|
|
70
|
+
- 支持 Parse、Chunk、Embed 阶段
|
|
71
|
+
- 支持 LocalSource、S3Source 等数据源
|
|
72
|
+
- 支持 MilvusDestination、QdrantDestination 等目的地
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
[0.3.0]: https://github.com/textin/xparse-client/compare/v0.2.20...v0.3.0
|
|
77
|
+
[0.2.20]: https://github.com/textin/xparse-client/releases/tag/v0.2.20
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# 包含额外的文档文件
|
|
2
|
+
include README.md
|
|
3
|
+
include LICENSE
|
|
4
|
+
include CHANGELOG.md
|
|
5
|
+
|
|
6
|
+
# 包含示例代码
|
|
7
|
+
recursive-include example *.py *.json *.md
|
|
8
|
+
|
|
9
|
+
# 包含类型提示文件(如果有)
|
|
10
|
+
recursive-include xparse_client py.typed *.pyi
|
|
11
|
+
|
|
12
|
+
# 排除编译和临时文件
|
|
13
|
+
global-exclude *.pyc
|
|
14
|
+
global-exclude *.pyo
|
|
15
|
+
global-exclude *.pyd
|
|
16
|
+
global-exclude __pycache__
|
|
17
|
+
global-exclude .DS_Store
|
|
18
|
+
global-exclude *.so
|