extract-python 0.12.1__tar.gz → 0.12.2__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 (22) hide show
  1. {extract_python-0.12.1 → extract_python-0.12.2}/PKG-INFO +1 -1
  2. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/liteparse_.py +4 -0
  3. {extract_python-0.12.1 → extract_python-0.12.2}/.gitignore +0 -0
  4. {extract_python-0.12.1 → extract_python-0.12.2}/.python-version +0 -0
  5. {extract_python-0.12.1 → extract_python-0.12.2}/README.md +0 -0
  6. {extract_python-0.12.1 → extract_python-0.12.2}/benches/__init__.py +0 -0
  7. {extract_python-0.12.1 → extract_python-0.12.2}/benches/compare.ipynb +0 -0
  8. {extract_python-0.12.1 → extract_python-0.12.2}/benches/compare.py +0 -0
  9. {extract_python-0.12.1 → extract_python-0.12.2}/benches/constants.py +0 -0
  10. {extract_python-0.12.1 → extract_python-0.12.2}/data/.gitignore +0 -0
  11. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/__init__.py +0 -0
  12. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/__main__.py +0 -0
  13. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/cli/__init__.py +0 -0
  14. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/cli/doc.py +0 -0
  15. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/cli/utils.py +0 -0
  16. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/constants.py +0 -0
  17. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/docling_.py +0 -0
  18. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/marker_.py +0 -0
  19. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/mineru_.py +0 -0
  20. {extract_python-0.12.1 → extract_python-0.12.2}/extract_python/utils.py +0 -0
  21. {extract_python-0.12.1 → extract_python-0.12.2}/pyproject.toml +0 -0
  22. {extract_python-0.12.1 → extract_python-0.12.2}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: extract-python
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary: Structured content extraction
5
5
  Project-URL: Homepage, https://github.com/ICIJ/extract-python
6
6
  Project-URL: Repository, https://github.com/ICIJ/extract-python
@@ -554,6 +554,10 @@ class _PDFDocCache:
554
554
  self._path = path
555
555
  return self._doc
556
556
 
557
+ def __del__(self):
558
+ if self._doc is not None:
559
+ self._doc.close()
560
+
557
561
 
558
562
  # we have to use a global cache because pdfnium is not thread safe and not
559
563
  # pickleable
File without changes