markitdown-gc 0.3.2__tar.gz → 0.3.4__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 (54) hide show
  1. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/PKG-INFO +3 -3
  2. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/README.md +2 -2
  3. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/__about__.py +1 -1
  4. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_markitdown.py +14 -8
  5. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_zip_converter.py +3 -4
  6. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/.gitignore +0 -0
  7. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/LICENSE +0 -0
  8. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/ThirdPartyNotices.md +0 -0
  9. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/pyproject.toml +0 -0
  10. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/GUIDE.md +0 -0
  11. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/__init__.py +0 -0
  12. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/__main__.py +0 -0
  13. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_base_converter.py +0 -0
  14. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_exceptions.py +0 -0
  15. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_hwp_media.py +0 -0
  16. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_media.py +0 -0
  17. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_stream_info.py +0 -0
  18. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_text.py +0 -0
  19. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/_uri_utils.py +0 -0
  20. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/__init__.py +0 -0
  21. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/_image.py +0 -0
  22. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/_xlsx_images.py +0 -0
  23. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/docx/__init__.py +0 -0
  24. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/docx/_images.py +0 -0
  25. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/docx/math/__init__.py +0 -0
  26. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/docx/math/latex_dict.py +0 -0
  27. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/docx/math/omml.py +0 -0
  28. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converter_utils/docx/pre_process.py +0 -0
  29. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/__init__.py +0 -0
  30. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_audio_converter.py +0 -0
  31. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_bing_serp_converter.py +0 -0
  32. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_csv_converter.py +0 -0
  33. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_cu_converter.py +0 -0
  34. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_doc_intel_converter.py +0 -0
  35. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_docx_converter.py +0 -0
  36. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_epub_converter.py +0 -0
  37. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_exiftool.py +0 -0
  38. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_html_converter.py +0 -0
  39. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_hwp_converter.py +0 -0
  40. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_image_converter.py +0 -0
  41. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_ipynb_converter.py +0 -0
  42. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_llm_caption.py +0 -0
  43. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_markdownify.py +0 -0
  44. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_outlook_msg_converter.py +0 -0
  45. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_pdf_converter.py +0 -0
  46. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_plain_text_converter.py +0 -0
  47. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_pptx_converter.py +0 -0
  48. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_rss_converter.py +0 -0
  49. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_transcribe_audio.py +0 -0
  50. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_wikipedia_converter.py +0 -0
  51. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_xlsx_converter.py +0 -0
  52. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/converters/_youtube_converter.py +0 -0
  53. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/ocr_triage.py +0 -0
  54. {markitdown_gc-0.3.2 → markitdown_gc-0.3.4}/src/markitdown/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: markitdown-gc
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Utility tool for converting various files to Markdown
5
5
  Project-URL: Documentation, https://github.com/greatgc-flow/markitdown-gc#readme
6
6
  Project-URL: Issues, https://github.com/greatgc-flow/markitdown-gc/issues
@@ -112,8 +112,8 @@ From source:
112
112
 
113
113
  ```bash
114
114
  git clone https://github.com/greatgc-flow/markitdown-gc.git
115
- cd markitdown
116
- pip install -e 'packages/markitdown[all]'
115
+ cd markitdown-gc
116
+ pip install -e packages/markitdown
117
117
  ```
118
118
 
119
119
  ## Usage
@@ -25,8 +25,8 @@ From source:
25
25
 
26
26
  ```bash
27
27
  git clone https://github.com/greatgc-flow/markitdown-gc.git
28
- cd markitdown
29
- pip install -e 'packages/markitdown[all]'
28
+ cd markitdown-gc
29
+ pip install -e packages/markitdown
30
30
  ```
31
31
 
32
32
  ## Usage
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Adam Fourney <adamfo@microsoft.com>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.3.2"
4
+ __version__ = "0.3.4"
@@ -531,14 +531,20 @@ class MarkItDown:
531
531
  # HTTP/HTTPS URIs
532
532
  elif scheme in ("http", "https"):
533
533
  response = self._requests_session.get(uri, stream=True)
534
- response.raise_for_status()
535
- return self.convert_response(
536
- response,
537
- stream_info=stream_info,
538
- file_extension=file_extension,
539
- url=mock_url,
540
- **kwargs,
541
- )
534
+ try:
535
+ response.raise_for_status()
536
+ return self.convert_response(
537
+ response,
538
+ stream_info=stream_info,
539
+ file_extension=file_extension,
540
+ url=mock_url,
541
+ **kwargs,
542
+ )
543
+ finally:
544
+ # This method owns the streamed response returned by get().
545
+ # Close it on status errors, failed reads and converter errors
546
+ # as well as success. convert_response() is caller-owned.
547
+ response.close()
542
548
  else:
543
549
  raise ValueError(
544
550
  f"Unsupported URI scheme: {uri.split(':')[0]}. Supported schemes are: file:, data:, http:, https:"
@@ -91,10 +91,9 @@ class ZipConverter(DocumentConverter):
91
91
  **kwargs: Any, # Options to pass to the converter
92
92
  ) -> DocumentConverterResult:
93
93
  file_path = (
94
- stream_info.url
95
- or stream_info.local_path
96
- or stream_info.filename
97
- or "(unknown)"
94
+ "(remote archive)"
95
+ if stream_info.url
96
+ else stream_info.local_path or stream_info.filename or "(unknown)"
98
97
  )
99
98
  md_content = f"Content from the zip file `{file_path}`:\n\n"
100
99
 
File without changes
File without changes