Coverage for src/qdrant_loader/core/conversion/__init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.0, created at 2026-07-20 10:15 +0000

1"""Engine-agnostic file conversion: bytes -> structured document -> typed outcome. 

2 

3This is the public surface for the rest of qdrant-loader. Callers obtain an engine 

4via :func:`build_engine` and depend on the :class:`ConversionEngine` Protocol; the 

5docling implementation and its option builders stay private behind the seam, so the 

6conversion engine remains swappable. 

7""" 

8 

9from __future__ import annotations 

10 

11from .config import ( 

12 ConversionConfig, 

13 ConversionProfile, 

14 ExcelConfig, 

15 OcrConfig, 

16 PictureDescriptionConfig, 

17 TableConfig, 

18) 

19from .engine import ConversionEngine, ConversionSource, EngineKind, build_engine 

20from .outcome import ConversionOutcome, ConversionStatus, ConvertedDocument 

21 

22__all__ = [ 

23 # config 

24 "ConversionConfig", 

25 "ConversionProfile", 

26 "OcrConfig", 

27 "TableConfig", 

28 "ExcelConfig", 

29 "PictureDescriptionConfig", 

30 # engine seam 

31 "ConversionEngine", 

32 "ConversionSource", 

33 "EngineKind", 

34 "build_engine", 

35 # outcomes 

36 "ConversionStatus", 

37 "ConvertedDocument", 

38 "ConversionOutcome", 

39]