lightpdf-aipdf-mcp 0.1.68__py3-none-any.whl → 0.1.70__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.
- lightpdf_aipdf_mcp/editor.py +1 -1
- lightpdf_aipdf_mcp/server.py +3 -3
- {lightpdf_aipdf_mcp-0.1.68.dist-info → lightpdf_aipdf_mcp-0.1.70.dist-info}/METADATA +1 -1
- lightpdf_aipdf_mcp-0.1.70.dist-info/RECORD +9 -0
- lightpdf_aipdf_mcp-0.1.68.dist-info/RECORD +0 -9
- {lightpdf_aipdf_mcp-0.1.68.dist-info → lightpdf_aipdf_mcp-0.1.70.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.68.dist-info → lightpdf_aipdf_mcp-0.1.70.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/editor.py
CHANGED
@@ -137,7 +137,7 @@ class Editor(BaseApiClient):
|
|
137
137
|
await self._log_operation("合并PDF文件", f"{len(file_paths)} 个文件")
|
138
138
|
|
139
139
|
# 合并PDF需要特殊处理,因为涉及多个文件
|
140
|
-
async with httpx.AsyncClient(timeout=
|
140
|
+
async with httpx.AsyncClient(timeout=600.0) as client:
|
141
141
|
try:
|
142
142
|
# 创建合并任务
|
143
143
|
task_id = await self._create_merge_task(client, file_paths, password, original_name)
|
lightpdf_aipdf_mcp/server.py
CHANGED
@@ -98,7 +98,7 @@ async def process_batch_files(
|
|
98
98
|
await logger.log("info", f"开始批量{operation_desc},共 {len(file_objects)} 个文件")
|
99
99
|
|
100
100
|
# 并发处理文件,限制并发数为2
|
101
|
-
semaphore = asyncio.Semaphore(
|
101
|
+
semaphore = asyncio.Semaphore(5)
|
102
102
|
|
103
103
|
async def process_with_semaphore(file_obj: Dict[str, str]) -> T:
|
104
104
|
async with semaphore:
|
@@ -667,7 +667,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
667
667
|
),
|
668
668
|
types.Tool(
|
669
669
|
name="split_pdf",
|
670
|
-
description="
|
670
|
+
description="将PDF文档按照页面进行拆分。可以将每个页面拆分成单独的PDF文件,或者按指定的页面范围拆分。拆分后的文件可以是多个独立的PDF文件(以zip包形式返回),也可以合并为一个PDF文件。",
|
671
671
|
inputSchema={
|
672
672
|
"type": "object",
|
673
673
|
"properties": {
|
@@ -832,7 +832,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
832
832
|
),
|
833
833
|
types.Tool(
|
834
834
|
name="extract_images",
|
835
|
-
description="
|
835
|
+
description="可以提取PDF中所有页面上的图片资源,支持多种图片格式。",
|
836
836
|
inputSchema={
|
837
837
|
"type": "object",
|
838
838
|
"properties": {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
+
lightpdf_aipdf_mcp/common.py,sha256=TLzWfiukB7uN9-EPbT3vVX1i4ero5j3d4L9vLe3MSCw,6601
|
3
|
+
lightpdf_aipdf_mcp/converter.py,sha256=7X4pK2y2NQBqhU1LLIJQhf7LUx6KaMiW26jt_KsX9fg,14567
|
4
|
+
lightpdf_aipdf_mcp/editor.py,sha256=qjw3oG1MYf8dWsuxRbdfsuZxePHXyo6D7yoIB_2nih0,26712
|
5
|
+
lightpdf_aipdf_mcp/server.py,sha256=LhlJJTpIuVdxip0rrW3SpIrqOouv--yo-Kztcs6BqRA,47092
|
6
|
+
lightpdf_aipdf_mcp-0.1.70.dist-info/METADATA,sha256=sjtEa9DC-O6s5K5_ast260J2ZwXxyZ_QlGvqpzV-JJw,8119
|
7
|
+
lightpdf_aipdf_mcp-0.1.70.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
lightpdf_aipdf_mcp-0.1.70.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
+
lightpdf_aipdf_mcp-0.1.70.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
-
lightpdf_aipdf_mcp/common.py,sha256=TLzWfiukB7uN9-EPbT3vVX1i4ero5j3d4L9vLe3MSCw,6601
|
3
|
-
lightpdf_aipdf_mcp/converter.py,sha256=7X4pK2y2NQBqhU1LLIJQhf7LUx6KaMiW26jt_KsX9fg,14567
|
4
|
-
lightpdf_aipdf_mcp/editor.py,sha256=xgoJoF2W_y41XpF_0_kvYTIB0rcDdskpMldoijqUeFI,26712
|
5
|
-
lightpdf_aipdf_mcp/server.py,sha256=vdGKVoCTk7MrNgWLO2zDvQ5RQovgaUfEJrIDJ5H5DSw,46984
|
6
|
-
lightpdf_aipdf_mcp-0.1.68.dist-info/METADATA,sha256=s3zZJypjM_6MTlkDHK9EUBs-IBw8Lmm8onbBdnyeMK0,8119
|
7
|
-
lightpdf_aipdf_mcp-0.1.68.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
-
lightpdf_aipdf_mcp-0.1.68.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
-
lightpdf_aipdf_mcp-0.1.68.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.68.dist-info → lightpdf_aipdf_mcp-0.1.70.dist-info}/entry_points.txt
RENAMED
File without changes
|