mdify-cli 3.0.2__tar.gz → 3.0.3__tar.gz

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.
Files changed (27) hide show
  1. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/PKG-INFO +1 -1
  2. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/__init__.py +1 -1
  3. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/cli.py +1 -0
  4. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/ssh/transfer.py +8 -3
  5. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify_cli.egg-info/PKG-INFO +1 -1
  6. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/pyproject.toml +1 -1
  7. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/LICENSE +0 -0
  8. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/README.md +0 -0
  9. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/assets/mdify.png +0 -0
  10. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/__main__.py +0 -0
  11. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/container.py +0 -0
  12. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/docling_client.py +0 -0
  13. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/formatting.py +0 -0
  14. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/ssh/__init__.py +0 -0
  15. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/ssh/client.py +0 -0
  16. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/ssh/models.py +0 -0
  17. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify/ssh/remote_container.py +0 -0
  18. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify_cli.egg-info/SOURCES.txt +0 -0
  19. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify_cli.egg-info/dependency_links.txt +0 -0
  20. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify_cli.egg-info/entry_points.txt +0 -0
  21. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify_cli.egg-info/requires.txt +0 -0
  22. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/mdify_cli.egg-info/top_level.txt +0 -0
  23. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/setup.cfg +0 -0
  24. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/tests/test_cli.py +0 -0
  25. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/tests/test_container.py +0 -0
  26. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/tests/test_docling_client.py +0 -0
  27. {mdify_cli-3.0.2 → mdify_cli-3.0.3}/tests/test_ssh_client.py +0 -0
@@ -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,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"
@@ -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:
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "mdify-cli"
3
- version = "3.0.2"
3
+ version = "3.0.3"
4
4
  description = "Convert PDFs and document images into structured Markdown for LLM workflows"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes