mdify-cli 3.3.3__py3-none-any.whl → 3.3.5__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.3"
3
+ __version__ = "3.3.5"
mdify/cli.py CHANGED
@@ -1096,19 +1096,29 @@ def main_async_remote(args) -> int:
1096
1096
 
1097
1097
  # Start with minimal defaults if no config loaded
1098
1098
  if ssh_config is None:
1099
- ssh_config = SSHConfig(host=args.remote_host, port=22, username=None)
1099
+ ssh_config = SSHConfig(host=args.remote_host, port=22, username="")
1100
1100
 
1101
- # Apply CLI arguments with highest precedence
1102
- cli_config = SSHConfig(
1103
- host=args.remote_host,
1104
- port=args.remote_port,
1105
- username=args.remote_user,
1106
- key_file=args.remote_key,
1107
- key_passphrase=args.remote_key_passphrase,
1108
- timeout=args.remote_timeout,
1109
- work_dir=args.remote_work_dir,
1110
- container_runtime=args.remote_runtime,
1111
- )
1101
+ # Apply CLI arguments with highest precedence (only pass non-None values)
1102
+ cli_config_kwargs = {
1103
+ "host": args.remote_host,
1104
+ "source": "cli",
1105
+ }
1106
+ if args.remote_port is not None:
1107
+ cli_config_kwargs["port"] = args.remote_port
1108
+ if args.remote_user:
1109
+ cli_config_kwargs["username"] = args.remote_user
1110
+ if args.remote_key:
1111
+ cli_config_kwargs["key_file"] = args.remote_key
1112
+ if args.remote_key_passphrase:
1113
+ cli_config_kwargs["key_passphrase"] = args.remote_key_passphrase
1114
+ if args.remote_timeout is not None:
1115
+ cli_config_kwargs["timeout"] = args.remote_timeout
1116
+ if args.remote_work_dir:
1117
+ cli_config_kwargs["work_dir"] = args.remote_work_dir
1118
+ if args.remote_runtime:
1119
+ cli_config_kwargs["container_runtime"] = args.remote_runtime
1120
+
1121
+ cli_config = SSHConfig(**cli_config_kwargs)
1112
1122
  ssh_config = ssh_config.merge(cli_config)
1113
1123
 
1114
1124
  # Create SSH client
@@ -122,6 +122,7 @@ class RemoteContainer(DoclingContainer):
122
122
  f"{self.runtime} run "
123
123
  f"--name {self.name} "
124
124
  f"--publish {self.port}:5001 "
125
+ f"--env DOCLING_SERVE_MAX_SYNC_WAIT={self.timeout} "
125
126
  f"--detach "
126
127
  f"{self.image}"
127
128
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 3.3.3
3
+ Version: 3.3.5
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=1MSf94S5x_v-LQB3aZSAfi6FByJ28JI_BlGmEJhMORw,90
2
+ mdify/__init__.py,sha256=8Z3YW5kS4HunLBq-F4gHbUfbheIBoB9Hw_PlPtyMT3A,90
3
3
  mdify/__main__.py,sha256=bhpJ00co6MfaVOdH4XLoW04NtLYDa_oJK7ODzfLrn9M,143
4
- mdify/cli.py,sha256=usEIiD8zu8sifW0OzgEDEtTNwhPqVlwDJAwh1Ne2AdA,87597
4
+ mdify/cli.py,sha256=Hokk0ng_q6QK9jW-WxSRTboWz-pCKt1mlGCwzPBWttk,88154
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
9
  mdify/ssh/client.py,sha256=lkqnerNTjlwkTlBmVx4B_2i3GA_D-FjH696OgQKUOXE,15009
10
10
  mdify/ssh/models.py,sha256=IGAf5EfpZuBS2lIGzxmIsl8f44bXg4a8wk4BW9JWKEQ,17275
11
- mdify/ssh/remote_container.py,sha256=o4npccm627EPNqlq3vCydRvDvwcsJmxkZ8o-vJXy2aU,10235
11
+ mdify/ssh/remote_container.py,sha256=Ibgdx3Joatv7xQRzDxCuCtr1TZBsRb-6Tqa5ynYt1uA,10304
12
12
  mdify/ssh/transfer.py,sha256=Zcr-V8Bjmm37tvd9RxlS-Rwk0SPD1-OGlEPlHQWmtSE,10979
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,,
13
+ mdify_cli-3.3.5.dist-info/licenses/LICENSE,sha256=NWM66Uv-XuSMKaU-gaPmvfyk4WgE6zcIPr78wyg6GAo,1065
14
+ mdify_cli-3.3.5.dist-info/METADATA,sha256=myh4e4WXCeaH0gZARw_feA9BwfVxnER9psMA9PjMdK0,14766
15
+ mdify_cli-3.3.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
16
+ mdify_cli-3.3.5.dist-info/entry_points.txt,sha256=0Xki8f5lADQUtwdt6Eq_FEaieI6Byhk8UE7BuDhChMg,41
17
+ mdify_cli-3.3.5.dist-info/top_level.txt,sha256=qltzf7h8owHq7dxCdfCkSHY8gT21hn1_E8P-VWS_OKM,6
18
+ mdify_cli-3.3.5.dist-info/RECORD,,