docling 1.8.0__tar.gz → 1.8.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. {docling-1.8.0 → docling-1.8.1}/PKG-INFO +1 -1
  2. {docling-1.8.0 → docling-1.8.1}/docling/document_converter.py +3 -4
  3. {docling-1.8.0 → docling-1.8.1}/pyproject.toml +1 -1
  4. {docling-1.8.0 → docling-1.8.1}/LICENSE +0 -0
  5. {docling-1.8.0 → docling-1.8.1}/README.md +0 -0
  6. {docling-1.8.0 → docling-1.8.1}/docling/__init__.py +0 -0
  7. {docling-1.8.0 → docling-1.8.1}/docling/backend/__init__.py +0 -0
  8. {docling-1.8.0 → docling-1.8.1}/docling/backend/abstract_backend.py +0 -0
  9. {docling-1.8.0 → docling-1.8.1}/docling/backend/docling_parse_backend.py +0 -0
  10. {docling-1.8.0 → docling-1.8.1}/docling/backend/pypdfium2_backend.py +0 -0
  11. {docling-1.8.0 → docling-1.8.1}/docling/datamodel/__init__.py +0 -0
  12. {docling-1.8.0 → docling-1.8.1}/docling/datamodel/base_models.py +0 -0
  13. {docling-1.8.0 → docling-1.8.1}/docling/datamodel/document.py +0 -0
  14. {docling-1.8.0 → docling-1.8.1}/docling/datamodel/settings.py +0 -0
  15. {docling-1.8.0 → docling-1.8.1}/docling/models/__init__.py +0 -0
  16. {docling-1.8.0 → docling-1.8.1}/docling/models/base_ocr_model.py +0 -0
  17. {docling-1.8.0 → docling-1.8.1}/docling/models/ds_glm_model.py +0 -0
  18. {docling-1.8.0 → docling-1.8.1}/docling/models/easyocr_model.py +0 -0
  19. {docling-1.8.0 → docling-1.8.1}/docling/models/layout_model.py +0 -0
  20. {docling-1.8.0 → docling-1.8.1}/docling/models/page_assemble_model.py +0 -0
  21. {docling-1.8.0 → docling-1.8.1}/docling/models/table_structure_model.py +0 -0
  22. {docling-1.8.0 → docling-1.8.1}/docling/pipeline/__init__.py +0 -0
  23. {docling-1.8.0 → docling-1.8.1}/docling/pipeline/base_model_pipeline.py +0 -0
  24. {docling-1.8.0 → docling-1.8.1}/docling/pipeline/standard_model_pipeline.py +0 -0
  25. {docling-1.8.0 → docling-1.8.1}/docling/utils/__init__.py +0 -0
  26. {docling-1.8.0 → docling-1.8.1}/docling/utils/layout_utils.py +0 -0
  27. {docling-1.8.0 → docling-1.8.1}/docling/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling
3
- Version: 1.8.0
3
+ Version: 1.8.1
4
4
  Summary: Docling PDF conversion package
5
5
  Home-page: https://github.com/DS4SD/docling
6
6
  License: MIT
@@ -88,7 +88,7 @@ class DocumentConverter:
88
88
  # Note: Pdfium backend is not thread-safe, thread pool usage was disabled.
89
89
  yield from map(self.process_document, input_batch)
90
90
 
91
- def convert_single(self, source: Path | AnyHttpUrl | str) -> Document:
91
+ def convert_single(self, source: Path | AnyHttpUrl | str) -> ConvertedDocument:
92
92
  """Convert a single document.
93
93
 
94
94
  Args:
@@ -133,11 +133,10 @@ class DocumentConverter:
133
133
  converted_doc: ConvertedDocument = next(converted_docs_iter)
134
134
  if converted_doc.status not in {
135
135
  ConversionStatus.SUCCESS,
136
- ConversionStatus.SUCCESS_WITH_ERRORS,
136
+ ConversionStatus.PARTIAL_SUCCESS,
137
137
  }:
138
138
  raise RuntimeError(f"Conversion failed with status: {converted_doc.status}")
139
- doc = converted_doc.to_ds_document()
140
- return doc
139
+ return converted_doc
141
140
 
142
141
  def process_document(self, in_doc: InputDocument) -> ConvertedDocument:
143
142
  start_doc_time = time.time()
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "docling"
3
- version = "1.8.0" # DO NOT EDIT, updated automatically
3
+ version = "1.8.1" # DO NOT EDIT, updated automatically
4
4
  description = "Docling PDF conversion package"
5
5
  authors = ["Christoph Auer <cau@zurich.ibm.com>", "Michele Dolfi <dol@zurich.ibm.com>", "Maxim Lysak <mly@zurich.ibm.com>", "Nikos Livathinos <nli@zurich.ibm.com>", "Ahmed Nassar <ahn@zurich.ibm.com>", "Peter Staar <taa@zurich.ibm.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes