lightpdf-aipdf-mcp 0.1.79__py3-none-any.whl → 0.1.80__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/converter.py +3 -1
- lightpdf_aipdf_mcp/editor.py +6 -2
- {lightpdf_aipdf_mcp-0.1.79.dist-info → lightpdf_aipdf_mcp-0.1.80.dist-info}/METADATA +1 -1
- lightpdf_aipdf_mcp-0.1.80.dist-info/RECORD +9 -0
- lightpdf_aipdf_mcp-0.1.79.dist-info/RECORD +0 -9
- {lightpdf_aipdf_mcp-0.1.79.dist-info → lightpdf_aipdf_mcp-0.1.80.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.79.dist-info → lightpdf_aipdf_mcp-0.1.80.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/converter.py
CHANGED
@@ -243,6 +243,7 @@ class Converter(BaseApiClient):
|
|
243
243
|
|
244
244
|
import httpx
|
245
245
|
async with httpx.AsyncClient(timeout=3600.0) as client:
|
246
|
+
task_id = None
|
246
247
|
try:
|
247
248
|
# 初始化extra_params(如果为None)
|
248
249
|
if extra_params is None:
|
@@ -279,7 +280,8 @@ class Converter(BaseApiClient):
|
|
279
280
|
file_path=file_path,
|
280
281
|
error_message=str(e),
|
281
282
|
download_url=None,
|
282
|
-
original_name=original_name
|
283
|
+
original_name=original_name,
|
284
|
+
task_id=task_id
|
283
285
|
)
|
284
286
|
|
285
287
|
async def _create_task(self, client: httpx.AsyncClient, file_path: str, format: str, extra_params: dict = None) -> str:
|
lightpdf_aipdf_mcp/editor.py
CHANGED
@@ -138,6 +138,7 @@ class Editor(BaseApiClient):
|
|
138
138
|
|
139
139
|
# 合并PDF需要特殊处理,因为涉及多个文件
|
140
140
|
async with httpx.AsyncClient(timeout=3600.0) as client:
|
141
|
+
task_id = None
|
141
142
|
try:
|
142
143
|
# 创建合并任务
|
143
144
|
task_id = await self._create_merge_task(client, file_paths, password, original_name)
|
@@ -163,7 +164,8 @@ class Editor(BaseApiClient):
|
|
163
164
|
file_path=file_paths[0],
|
164
165
|
error_message=str(e),
|
165
166
|
download_url=None,
|
166
|
-
original_name=original_name
|
167
|
+
original_name=original_name,
|
168
|
+
task_id=task_id
|
167
169
|
)
|
168
170
|
|
169
171
|
async def rotate_pdf(self, file_path: str, angle_params: Dict[str, str], password: Optional[str] = None, original_name: Optional[str] = None) -> EditResult:
|
@@ -446,6 +448,7 @@ class Editor(BaseApiClient):
|
|
446
448
|
return EditResult(success=False, file_path=file_path, error_message="文件不存在", original_name=original_name)
|
447
449
|
|
448
450
|
async with httpx.AsyncClient(timeout=3600.0) as client:
|
451
|
+
task_id = None
|
449
452
|
try:
|
450
453
|
# 初始化extra_params(如果为None)
|
451
454
|
if extra_params is None:
|
@@ -482,7 +485,8 @@ class Editor(BaseApiClient):
|
|
482
485
|
file_path=file_path,
|
483
486
|
error_message=str(e),
|
484
487
|
download_url=None,
|
485
|
-
original_name=original_name
|
488
|
+
original_name=original_name,
|
489
|
+
task_id=task_id
|
486
490
|
)
|
487
491
|
|
488
492
|
async def _create_task(self, client: httpx.AsyncClient, file_path: str, edit_type: EditType, extra_params: Dict[str, Any] = None) -> str:
|
@@ -0,0 +1,9 @@
|
|
1
|
+
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
+
lightpdf_aipdf_mcp/common.py,sha256=_UO1f6S9Qr_3k6u5iBpdVDpvTK5U-tHEpu9KsDGqV8Y,6635
|
3
|
+
lightpdf_aipdf_mcp/converter.py,sha256=vdcir8O1_inbVmzjxcHlCDDr8Nzus1A5ARuVVXl-_1U,14669
|
4
|
+
lightpdf_aipdf_mcp/editor.py,sha256=O7wF_HWs5l-IiXLbZYLNYjj1ygo2v4yGJEYMJtn7jpo,26916
|
5
|
+
lightpdf_aipdf_mcp/server.py,sha256=gVu99QUN-9impuOMQnAfkBVtAaFF3lIsZuutb8pqVls,47395
|
6
|
+
lightpdf_aipdf_mcp-0.1.80.dist-info/METADATA,sha256=rQF6Vzt8VHEJ0sdkwKKCcqB95Whk1TrAFMGaEyMDSBk,8119
|
7
|
+
lightpdf_aipdf_mcp-0.1.80.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
lightpdf_aipdf_mcp-0.1.80.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
+
lightpdf_aipdf_mcp-0.1.80.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
-
lightpdf_aipdf_mcp/common.py,sha256=_UO1f6S9Qr_3k6u5iBpdVDpvTK5U-tHEpu9KsDGqV8Y,6635
|
3
|
-
lightpdf_aipdf_mcp/converter.py,sha256=VUQ03z93KjVFd0ZXpqoptGKOobWTtHEPtKSvy6aen58,14605
|
4
|
-
lightpdf_aipdf_mcp/editor.py,sha256=jVYksqO68o-7jIiH93rkbL4roIg_ps3Gnewl3NtsLvQ,26788
|
5
|
-
lightpdf_aipdf_mcp/server.py,sha256=gVu99QUN-9impuOMQnAfkBVtAaFF3lIsZuutb8pqVls,47395
|
6
|
-
lightpdf_aipdf_mcp-0.1.79.dist-info/METADATA,sha256=t81D_1PK3DShdSJ4Yl6637KWHoX3buUPSPsgtmVcrXY,8119
|
7
|
-
lightpdf_aipdf_mcp-0.1.79.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
-
lightpdf_aipdf_mcp-0.1.79.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
-
lightpdf_aipdf_mcp-0.1.79.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.79.dist-info → lightpdf_aipdf_mcp-0.1.80.dist-info}/entry_points.txt
RENAMED
File without changes
|