mdify-cli 3.3.6__tar.gz → 3.3.7__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.3.6 → mdify_cli-3.3.7}/PKG-INFO +1 -1
  2. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/__init__.py +1 -1
  3. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/cli.py +21 -2
  4. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/PKG-INFO +1 -1
  5. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/pyproject.toml +1 -1
  6. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/LICENSE +0 -0
  7. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/README.md +0 -0
  8. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/assets/mdify.png +0 -0
  9. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/__main__.py +0 -0
  10. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/container.py +0 -0
  11. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/docling_client.py +0 -0
  12. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/formatting.py +0 -0
  13. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/__init__.py +0 -0
  14. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/client.py +0 -0
  15. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/models.py +0 -0
  16. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/remote_container.py +0 -0
  17. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify/ssh/transfer.py +0 -0
  18. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/SOURCES.txt +0 -0
  19. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/dependency_links.txt +0 -0
  20. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/entry_points.txt +0 -0
  21. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/requires.txt +0 -0
  22. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/mdify_cli.egg-info/top_level.txt +0 -0
  23. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/setup.cfg +0 -0
  24. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/tests/test_cli.py +0 -0
  25. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/tests/test_container.py +0 -0
  26. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/tests/test_docling_client.py +0 -0
  27. {mdify_cli-3.3.6 → mdify_cli-3.3.7}/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.3.6
3
+ Version: 3.3.7
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.3.6"
3
+ __version__ = "3.3.7"
@@ -1400,6 +1400,23 @@ def main_async_remote(args) -> int:
1400
1400
  response_data = json.loads(conversion_output)
1401
1401
  color_err = Colorizer(sys.stderr)
1402
1402
 
1403
+ # Debug: Print JSON schema structure
1404
+ if DEBUG:
1405
+ def get_schema(obj, depth=0, max_depth=3):
1406
+ """Get JSON schema structure."""
1407
+ if depth > max_depth:
1408
+ return "..."
1409
+ if isinstance(obj, dict):
1410
+ return "{" + ", ".join(f"{k}: {get_schema(v, depth+1)}" for k, v in list(obj.items())[:5]) + ("..." if len(obj) > 5 else "") + "}"
1411
+ elif isinstance(obj, list):
1412
+ return "[" + (get_schema(obj[0], depth+1) if obj else "") + ("..." if len(obj) > 1 else "") + "]"
1413
+ elif isinstance(obj, str):
1414
+ return f"str({len(obj)} chars)"
1415
+ else:
1416
+ return type(obj).__name__
1417
+ schema = get_schema(response_data)
1418
+ print(f" Response schema: {schema}", file=sys.stderr)
1419
+
1403
1420
  # Check if response is an error response
1404
1421
  if _is_error_response(response_data):
1405
1422
  error_detail = response_data.get("detail", response_data.get("error", str(response_data)))
@@ -1463,8 +1480,10 @@ def main_async_remote(args) -> int:
1463
1480
 
1464
1481
  except (json.JSONDecodeError, KeyError, IndexError):
1465
1482
  print(f" ✗ Failed to parse conversion response", file=sys.stderr)
1466
- if DEBUG:
1467
- print(f" Response: {conversion_output[:500]}", file=sys.stderr)
1483
+ if DEBUG and conversion_output:
1484
+ # Only print a snippet of the response for debugging
1485
+ response_snippet = conversion_output[:300] + ("..." if len(conversion_output) > 300 else "")
1486
+ print(f" Response snippet: {response_snippet}", file=sys.stderr)
1468
1487
  failed += 1
1469
1488
  break
1470
1489
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 3.3.6
3
+ Version: 3.3.7
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.3.6"
3
+ version = "3.3.7"
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