mdify-cli 3.2.0__tar.gz → 3.2.1__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.2.0 → mdify_cli-3.2.1}/PKG-INFO +1 -1
  2. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/__init__.py +1 -1
  3. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/cli.py +15 -8
  4. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/PKG-INFO +1 -1
  5. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/pyproject.toml +1 -1
  6. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/LICENSE +0 -0
  7. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/README.md +0 -0
  8. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/assets/mdify.png +0 -0
  9. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/__main__.py +0 -0
  10. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/container.py +0 -0
  11. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/docling_client.py +0 -0
  12. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/formatting.py +0 -0
  13. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/__init__.py +0 -0
  14. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/client.py +0 -0
  15. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/models.py +0 -0
  16. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/remote_container.py +0 -0
  17. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify/ssh/transfer.py +0 -0
  18. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/SOURCES.txt +0 -0
  19. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/dependency_links.txt +0 -0
  20. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/entry_points.txt +0 -0
  21. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/requires.txt +0 -0
  22. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/mdify_cli.egg-info/top_level.txt +0 -0
  23. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/setup.cfg +0 -0
  24. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/tests/test_cli.py +0 -0
  25. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/tests/test_container.py +0 -0
  26. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/tests/test_docling_client.py +0 -0
  27. {mdify_cli-3.2.0 → mdify_cli-3.2.1}/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.2.0
3
+ Version: 3.2.1
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.2.0"
3
+ __version__ = "3.2.1"
@@ -1175,7 +1175,8 @@ def main_async_remote(args) -> int:
1175
1175
  input_path = Path(args.input)
1176
1176
  if not input_path.exists():
1177
1177
  await ssh_client.disconnect()
1178
- print(f"Error: Input file or directory not found: {args.input}", file=sys.stderr)
1178
+ color = Colorizer(sys.stderr)
1179
+ print(f"{color.error('✗ Error:')} Input file or directory not found: {args.input}", file=sys.stderr)
1179
1180
  return 1
1180
1181
 
1181
1182
  # Store resolved path as base for relative path calculations
@@ -1184,8 +1185,9 @@ def main_async_remote(args) -> int:
1184
1185
 
1185
1186
  if not files_to_convert:
1186
1187
  await ssh_client.disconnect()
1187
- print(f"Error: No supported files found in {args.input}", file=sys.stderr)
1188
- print(f" Supported formats: {', '.join(sorted(SUPPORTED_EXTENSIONS))}", file=sys.stderr)
1188
+ color = Colorizer(sys.stderr)
1189
+ print(f"{color.error(' Error:')} No supported files found in {args.input}", file=sys.stderr)
1190
+ print(f" {color.dim_white(f'Supported formats: {', '.join(sorted(SUPPORTED_EXTENSIONS))}')} ", file=sys.stderr)
1189
1191
  return 1
1190
1192
 
1191
1193
  if not args.quiet:
@@ -1381,7 +1383,8 @@ def main_async_remote(args) -> int:
1381
1383
  break
1382
1384
 
1383
1385
  if not conversion_success:
1384
- print(f" ✗ Failed: Conversion failed after {conversion_attempt} attempt(s)", file=sys.stderr)
1386
+ color_error = Colorizer(sys.stderr)
1387
+ print(f" {color_error.error('✗ Failed:')} Conversion failed after {conversion_attempt} attempt(s)", file=sys.stderr)
1385
1388
  failed += 1
1386
1389
  break
1387
1390
 
@@ -1493,7 +1496,8 @@ def main_async_remote(args) -> int:
1493
1496
  await ssh_client.connect()
1494
1497
  continue
1495
1498
 
1496
- print(f" ✗ Failed: {e}", file=sys.stderr)
1499
+ color_err = Colorizer(sys.stderr)
1500
+ print(f" {color_err.error('✗ Failed:')} {str(e)}", file=sys.stderr)
1497
1501
  if DEBUG:
1498
1502
  import traceback
1499
1503
  traceback.print_exc(file=sys.stderr)
@@ -1739,18 +1743,21 @@ def main() -> int:
1739
1743
 
1740
1744
  # Validate input
1741
1745
  if not input_path.exists():
1742
- print(f"Error: Input path does not exist: {input_path}", file=sys.stderr)
1746
+ color = Colorizer(sys.stderr)
1747
+ print(f"{color.error('✗ Error:')} Input path does not exist: {input_path}", file=sys.stderr)
1743
1748
  return 1
1744
1749
 
1745
1750
  # Get files to convert
1746
1751
  try:
1747
1752
  files_to_convert = get_files_to_convert(input_path, args.glob, args.recursive)
1748
1753
  except Exception as e:
1749
- print(f"Error: {e}", file=sys.stderr)
1754
+ color = Colorizer(sys.stderr)
1755
+ print(f"{color.error('✗ Error:')} {e}", file=sys.stderr)
1750
1756
  return 1
1751
1757
 
1752
1758
  if not files_to_convert:
1753
- print(f"No files found to convert in: {input_path}", file=sys.stderr)
1759
+ color = Colorizer(sys.stderr)
1760
+ print(f"{color.warning('⚠ Warning:')} No files found to convert in: {input_path}", file=sys.stderr)
1754
1761
  return 1
1755
1762
 
1756
1763
  total_files = len(files_to_convert)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdify-cli
3
- Version: 3.2.0
3
+ Version: 3.2.1
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.2.0"
3
+ version = "3.2.1"
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