lightpdf-aipdf-mcp 0.1.69__py3-none-any.whl → 0.1.71__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.
@@ -138,10 +138,10 @@ class BaseApiClient:
138
138
  RuntimeError: 如果任务失败或超时
139
139
  """
140
140
  headers = {"X-API-KEY": self.api_key}
141
- MAX_ATTEMPTS = 100
141
+ MAX_ATTEMPTS = 360
142
142
 
143
143
  for attempt in range(MAX_ATTEMPTS):
144
- await asyncio.sleep(3)
144
+ await asyncio.sleep(5)
145
145
 
146
146
  status_response = await client.get(
147
147
  f"{self.api_base_url}/{task_id}",
@@ -242,7 +242,7 @@ class Converter(BaseApiClient):
242
242
  await self.logger.log("info", f"正在{operation_desc}...")
243
243
 
244
244
  import httpx
245
- async with httpx.AsyncClient(timeout=600.0) as client:
245
+ async with httpx.AsyncClient(timeout=3600.0) as client:
246
246
  try:
247
247
  # 初始化extra_params(如果为None)
248
248
  if extra_params is None:
@@ -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=120.0) as client:
140
+ async with httpx.AsyncClient(timeout=3600.0) as client:
141
141
  try:
142
142
  # 创建合并任务
143
143
  task_id = await self._create_merge_task(client, file_paths, password, original_name)
@@ -444,7 +444,7 @@ class Editor(BaseApiClient):
444
444
  if not exists:
445
445
  return EditResult(success=False, file_path=file_path, error_message="文件不存在", original_name=original_name)
446
446
 
447
- async with httpx.AsyncClient(timeout=600.0) as client:
447
+ async with httpx.AsyncClient(timeout=3600.0) as client:
448
448
  try:
449
449
  # 初始化extra_params(如果为None)
450
450
  if extra_params is None:
@@ -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(2)
101
+ semaphore = asyncio.Semaphore(6)
102
102
 
103
103
  async def process_with_semaphore(file_obj: Dict[str, str]) -> T:
104
104
  async with semaphore:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.69
3
+ Version: 0.1.71
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -0,0 +1,9 @@
1
+ lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
2
+ lightpdf_aipdf_mcp/common.py,sha256=K395Nh3cVwuzGalqt_QXmueP__LFF1BPhpb7YyUUV8s,6601
3
+ lightpdf_aipdf_mcp/converter.py,sha256=CNdR2uUsA79_6Mzk6eHxo_F7Ripl14S8BdsmKJkV-94,14568
4
+ lightpdf_aipdf_mcp/editor.py,sha256=NEBu6QUcU6xYIa8ZsAoNABEr0ADxFVKWVrHrb28mjxY,26714
5
+ lightpdf_aipdf_mcp/server.py,sha256=tkJptRcXE5743AYjQoBT80ORxenwrJ0jDIyzXQ65afA,47092
6
+ lightpdf_aipdf_mcp-0.1.71.dist-info/METADATA,sha256=O3DS4J-aRo1JX587QvPDVinZkyG9KHWkJbR7O2nWTjE,8119
7
+ lightpdf_aipdf_mcp-0.1.71.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ lightpdf_aipdf_mcp-0.1.71.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
+ lightpdf_aipdf_mcp-0.1.71.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=GmQ5Ml1a3_AhiurlVFnYRPJPq9GQoXLj4FsmkJe61fI,47092
6
- lightpdf_aipdf_mcp-0.1.69.dist-info/METADATA,sha256=FKZFSMZiDh2QZ5eTWFS74O4tONcGPVn_v-SA432drMQ,8119
7
- lightpdf_aipdf_mcp-0.1.69.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- lightpdf_aipdf_mcp-0.1.69.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
- lightpdf_aipdf_mcp-0.1.69.dist-info/RECORD,,