mdify-cli 3.3.1__py3-none-any.whl → 3.3.3__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.
mdify/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """mdify - Convert documents to Markdown via Docling container."""
2
2
 
3
- __version__ = "3.3.1"
3
+ __version__ = "3.3.3"
mdify/cli.py CHANGED
@@ -1060,11 +1060,11 @@ def main_async_remote(args) -> int:
1060
1060
  color = Colorizer(sys.stderr)
1061
1061
 
1062
1062
  # Resolve timeout value: CLI > env > default 1200
1063
- timeout = args.timeout or int(os.environ.get("MDIFY_TIMEOUT", 1200))
1063
+ timeout = args.timeout if args.timeout is not None else int(os.environ.get("MDIFY_TIMEOUT", 1200))
1064
1064
 
1065
1065
  # For remote operations, extend timeout significantly for large PDF processing
1066
1066
  # Remote conversions include network latency, file upload/download, and OCR processing
1067
- remote_conversion_timeout = max(timeout, 3600) # At least 1 hour for remote conversion
1067
+ remote_conversion_timeout = max(timeout or 1200, 3600) # At least 1 hour for remote conversion
1068
1068
 
1069
1069
  # Build SSH config from CLI arguments and SSH config files
1070
1070
  try:
@@ -1397,8 +1397,8 @@ def main_async_remote(args) -> int:
1397
1397
  error_detail = response_data.get("detail", response_data.get("error", str(response_data)))
1398
1398
  print(f" {color_err.error('✗ Failed:')} {error_detail}", file=sys.stderr)
1399
1399
  if "DOCLING_SERVE_MAX_SYNC_WAIT" in str(error_detail):
1400
- timeout_val = args.remote_timeout or 3600
1401
- print(f" {color_err.info('ℹ Tip:')} Increase timeout with --remote-timeout (current: {timeout_val}s)", file=sys.stderr)
1400
+ timeout_val = args.timeout or 3600
1401
+ print(f" {color_err.info('ℹ Tip:')} Increase timeout with --timeout (current: {timeout_val}s)", file=sys.stderr)
1402
1402
  failed += 1
1403
1403
  break
1404
1404
 
@@ -1583,9 +1583,9 @@ def main_async_remote(args) -> int:
1583
1583
  return 1
1584
1584
  except Exception as e:
1585
1585
  print(f"Error: Unexpected error during remote execution: {e}", file=sys.stderr)
1586
- if DEBUG:
1587
- import traceback
1588
- traceback.print_exc(file=sys.stderr)
1586
+ # Always print traceback for unexpected errors to help with debugging
1587
+ import traceback
1588
+ traceback.print_exc(file=sys.stderr)
1589
1589
  return 1
1590
1590
 
1591
1591
  # Run async main
mdify/ssh/client.py CHANGED
@@ -44,7 +44,7 @@ class AsyncSSHClient:
44
44
  # Prepare connection parameters - only include non-None values
45
45
  connect_kwargs = {
46
46
  "port": self.config.port,
47
- "connect_timeout": self.config.timeout,
47
+ "connect_timeout": self.config.timeout or 30,
48
48
  "known_hosts": None, # Skip host key verification for now
49
49
  }
50
50
 
@@ -165,7 +165,7 @@ class AsyncSSHClient:
165
165
  )
166
166
 
167
167
  try:
168
- timeout_val = timeout or self.config.timeout
168
+ timeout_val = timeout or self.config.timeout or 30
169
169
 
170
170
  result = await asyncio.wait_for(
171
171
  self.connection.run(command, check=False),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 3.3.1
3
+ Version: 3.3.3
4
4
  Summary: Convert PDFs and document images into structured Markdown for LLM workflows
5
5
  Author: tiroq
6
6
  License-Expression: MIT
@@ -1,18 +1,18 @@
1
1
  assets/mdify.png,sha256=qUj7WXWqNwpI2KNXOW79XJwqFqa-UI0JEkmt1mmy4Rg,1820418
2
- mdify/__init__.py,sha256=hx3fv3rmXtALwc92WoJHApn6Ex7Mf-VI4oZepLiKec0,90
2
+ mdify/__init__.py,sha256=1MSf94S5x_v-LQB3aZSAfi6FByJ28JI_BlGmEJhMORw,90
3
3
  mdify/__main__.py,sha256=bhpJ00co6MfaVOdH4XLoW04NtLYDa_oJK7ODzfLrn9M,143
4
- mdify/cli.py,sha256=r8pwdTHVgBNayGPQHgIrqEAisHlz80PBwXV14HXzXwI,87521
4
+ mdify/cli.py,sha256=usEIiD8zu8sifW0OzgEDEtTNwhPqVlwDJAwh1Ne2AdA,87597
5
5
  mdify/container.py,sha256=BjL5ZR__n1i_WHifXKllTPoqO7IuOUdPDo5esuNg0Iw,8213
6
6
  mdify/docling_client.py,sha256=zrA-KGW3sSup-qxLHPixZWyDVi3tXJck1-MV6NoyQXA,8677
7
7
  mdify/formatting.py,sha256=It7yCVQbD5e2G1FqE4ebx783BkBiRWeFdjKrWPs4nEA,3964
8
8
  mdify/ssh/__init__.py,sha256=SmRWgwEvAQZ_ARHlKTb9QDPwVAcz6dvPUks2pZFWLAU,271
9
- mdify/ssh/client.py,sha256=nO7gAQ6eWxIXFIOplW2F2ya0-1ZEFlLmz3ovi1TEFTg,14997
9
+ mdify/ssh/client.py,sha256=lkqnerNTjlwkTlBmVx4B_2i3GA_D-FjH696OgQKUOXE,15009
10
10
  mdify/ssh/models.py,sha256=IGAf5EfpZuBS2lIGzxmIsl8f44bXg4a8wk4BW9JWKEQ,17275
11
11
  mdify/ssh/remote_container.py,sha256=o4npccm627EPNqlq3vCydRvDvwcsJmxkZ8o-vJXy2aU,10235
12
12
  mdify/ssh/transfer.py,sha256=Zcr-V8Bjmm37tvd9RxlS-Rwk0SPD1-OGlEPlHQWmtSE,10979
13
- mdify_cli-3.3.1.dist-info/licenses/LICENSE,sha256=NWM66Uv-XuSMKaU-gaPmvfyk4WgE6zcIPr78wyg6GAo,1065
14
- mdify_cli-3.3.1.dist-info/METADATA,sha256=z5KRhYvDY0gJVPswMPX2JHLZ-lSAftc0GpxBp464Zs8,14766
15
- mdify_cli-3.3.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
16
- mdify_cli-3.3.1.dist-info/entry_points.txt,sha256=0Xki8f5lADQUtwdt6Eq_FEaieI6Byhk8UE7BuDhChMg,41
17
- mdify_cli-3.3.1.dist-info/top_level.txt,sha256=qltzf7h8owHq7dxCdfCkSHY8gT21hn1_E8P-VWS_OKM,6
18
- mdify_cli-3.3.1.dist-info/RECORD,,
13
+ mdify_cli-3.3.3.dist-info/licenses/LICENSE,sha256=NWM66Uv-XuSMKaU-gaPmvfyk4WgE6zcIPr78wyg6GAo,1065
14
+ mdify_cli-3.3.3.dist-info/METADATA,sha256=IsM4QykQlmaK64N8fOldfaqzucgXgXQY7WARAuaihIU,14766
15
+ mdify_cli-3.3.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
16
+ mdify_cli-3.3.3.dist-info/entry_points.txt,sha256=0Xki8f5lADQUtwdt6Eq_FEaieI6Byhk8UE7BuDhChMg,41
17
+ mdify_cli-3.3.3.dist-info/top_level.txt,sha256=qltzf7h8owHq7dxCdfCkSHY8gT21hn1_E8P-VWS_OKM,6
18
+ mdify_cli-3.3.3.dist-info/RECORD,,