mdify-cli 3.0.2__py3-none-any.whl → 3.0.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.0.2"
3
+ __version__ = "3.0.3"
mdify/cli.py CHANGED
@@ -1257,6 +1257,7 @@ def main_async_remote(args) -> int:
1257
1257
  local_path=str(input_file),
1258
1258
  remote_path=remote_file_path,
1259
1259
  overwrite=True,
1260
+ compress=False,
1260
1261
  )
1261
1262
 
1262
1263
  if not args.quiet:
mdify/ssh/transfer.py CHANGED
@@ -231,13 +231,18 @@ class FileTransferManager:
231
231
  local_sha256.update(chunk)
232
232
  local_checksum = local_sha256.hexdigest()
233
233
 
234
- # Calculate remote checksum
235
- stdout, stderr, code = await self.ssh_client.run_command(
236
- f"sha256sum {remote_path} | awk '{{print $1}}'"
234
+ # Calculate remote checksum (sha256sum or shasum fallback)
235
+ checksum_cmd = (
236
+ f"(command -v sha256sum >/dev/null 2>&1 && sha256sum {remote_path} | awk '{{print $1}}') "
237
+ f"|| (command -v shasum >/dev/null 2>&1 && shasum -a 256 {remote_path} | awk '{{print $1}}')"
237
238
  )
239
+ stdout, stderr, code = await self.ssh_client.run_command(checksum_cmd)
238
240
 
239
241
  if code == 0:
240
242
  remote_checksum = stdout.strip()
243
+ if not remote_checksum:
244
+ logger.warning("Could not verify checksum: remote checksum unavailable")
245
+ return
241
246
 
242
247
  if local_checksum != remote_checksum:
243
248
  raise ValueError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 3.0.2
3
+ Version: 3.0.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,7 +1,7 @@
1
1
  assets/mdify.png,sha256=qUj7WXWqNwpI2KNXOW79XJwqFqa-UI0JEkmt1mmy4Rg,1820418
2
- mdify/__init__.py,sha256=T6SyoOZjbytRoip9WM4THeDUbin7s6Xq7Cb_HZAAi5Q,90
2
+ mdify/__init__.py,sha256=d7s3FqYfNhJvetmdD95oC8N19MIk7RFVsfxxIS7_lHY,90
3
3
  mdify/__main__.py,sha256=bhpJ00co6MfaVOdH4XLoW04NtLYDa_oJK7ODzfLrn9M,143
4
- mdify/cli.py,sha256=f7_3bka83jfvYXp2L6Zk4trPuMrN3hJ51iueK7J1Szk,74065
4
+ mdify/cli.py,sha256=occyEMs2d-ycqZZTCaa2eJR8Cbd4Retzk0JcScXxd7M,74109
5
5
  mdify/container.py,sha256=BjL5ZR__n1i_WHifXKllTPoqO7IuOUdPDo5esuNg0Iw,8213
6
6
  mdify/docling_client.py,sha256=xuQR6sC1v3EPloOSwExoHCqT4uUxE8myYq-Yeby3C2I,7975
7
7
  mdify/formatting.py,sha256=lJKhMbDPcaWCdyEa7aKwAm_desaWvkfDc8C3EP7LWp4,790
@@ -9,10 +9,10 @@ mdify/ssh/__init__.py,sha256=SmRWgwEvAQZ_ARHlKTb9QDPwVAcz6dvPUks2pZFWLAU,271
9
9
  mdify/ssh/client.py,sha256=MNMBrL5Xk2rFo28Ytw80hWX2vQ3_CXlIL4VathNtK-I,14873
10
10
  mdify/ssh/models.py,sha256=jpbDS1yGhd7Xwq2tW7bZv14mTBlR8DCfhT4x-Xf2Wq4,17676
11
11
  mdify/ssh/remote_container.py,sha256=kmScAlmHI9rJLKliYcYQXDZHF7PYYiD-_rRV-S0fffM,8462
12
- mdify/ssh/transfer.py,sha256=aZZgylDjoqx6PEpaMu2zxkDF04w7btiOnMExmtt922A,10574
13
- mdify_cli-3.0.2.dist-info/licenses/LICENSE,sha256=NWM66Uv-XuSMKaU-gaPmvfyk4WgE6zcIPr78wyg6GAo,1065
14
- mdify_cli-3.0.2.dist-info/METADATA,sha256=To3g3ZuGkKaTvMw6wPv8zMEJYDajPIOQ4_bJvJhZYX8,14766
15
- mdify_cli-3.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
16
- mdify_cli-3.0.2.dist-info/entry_points.txt,sha256=0Xki8f5lADQUtwdt6Eq_FEaieI6Byhk8UE7BuDhChMg,41
17
- mdify_cli-3.0.2.dist-info/top_level.txt,sha256=qltzf7h8owHq7dxCdfCkSHY8gT21hn1_E8P-VWS_OKM,6
18
- mdify_cli-3.0.2.dist-info/RECORD,,
12
+ mdify/ssh/transfer.py,sha256=aQuWa_B81McrgZBBWo_CxnjwoiGHmoxAoqObm19JAk8,10940
13
+ mdify_cli-3.0.3.dist-info/licenses/LICENSE,sha256=NWM66Uv-XuSMKaU-gaPmvfyk4WgE6zcIPr78wyg6GAo,1065
14
+ mdify_cli-3.0.3.dist-info/METADATA,sha256=VOtzAKaovOcPdXiis-CSZQP6qRjpOfYldgV5kfvKS8g,14766
15
+ mdify_cli-3.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
16
+ mdify_cli-3.0.3.dist-info/entry_points.txt,sha256=0Xki8f5lADQUtwdt6Eq_FEaieI6Byhk8UE7BuDhChMg,41
17
+ mdify_cli-3.0.3.dist-info/top_level.txt,sha256=qltzf7h8owHq7dxCdfCkSHY8gT21hn1_E8P-VWS_OKM,6
18
+ mdify_cli-3.0.3.dist-info/RECORD,,