|
39 | 39 | extract_tables_from_pdf, |
40 | 40 | ) |
41 | 41 |
|
| 42 | +# Direct service imports — replacing the three thin facade modules |
42 | 43 | # Re-export extraction parameters (backward compatibility) |
43 | 44 | from bankstatements_core.extraction.extraction_params import ( # noqa: E402, F401 |
44 | 45 | ADMINISTRATIVE_PATTERNS, |
45 | 46 | CONTENT_DENSITY_THRESHOLD, |
46 | 47 | ENABLE_PAGE_VALIDATION, |
47 | | - MIN_COLUMN_COVERAGE, |
48 | | - MIN_HEADER_KEYWORDS, |
49 | | - MIN_TABLE_ROWS, |
50 | | - MIN_TRANSACTION_RATIO, |
51 | | - MIN_TRANSACTION_SCORE, |
52 | | - REQUIRE_AMOUNT_COLUMN, |
53 | | - REQUIRE_DATE_COLUMN, |
54 | | - SLIDING_WINDOW_SIZE, |
55 | | - TABLE_BOTTOM_Y, |
56 | | - TABLE_TOP_Y, |
57 | 48 | ) |
58 | | - |
59 | | -# Direct service imports — replacing the three thin facade modules |
60 | 49 | from bankstatements_core.extraction.extraction_params import ( # noqa: E402, F401 |
| 50 | + MIN_COLUMN_COVERAGE, |
| 51 | +) |
| 52 | +from bankstatements_core.extraction.extraction_params import ( |
61 | 53 | MIN_COLUMN_COVERAGE as _MIN_COLUMN_COVERAGE, |
| 54 | +) |
| 55 | +from bankstatements_core.extraction.extraction_params import MIN_HEADER_KEYWORDS |
| 56 | +from bankstatements_core.extraction.extraction_params import ( |
| 57 | + MIN_HEADER_KEYWORDS as _MIN_HEADER_KEYWORDS, |
| 58 | +) |
| 59 | +from bankstatements_core.extraction.extraction_params import MIN_TABLE_ROWS |
| 60 | +from bankstatements_core.extraction.extraction_params import ( |
62 | 61 | MIN_TABLE_ROWS as _MIN_TABLE_ROWS, |
| 62 | +) |
| 63 | +from bankstatements_core.extraction.extraction_params import MIN_TRANSACTION_RATIO |
| 64 | +from bankstatements_core.extraction.extraction_params import ( |
63 | 65 | MIN_TRANSACTION_RATIO as _MIN_TRANSACTION_RATIO, |
| 66 | +) |
| 67 | +from bankstatements_core.extraction.extraction_params import ( # noqa: E402, F401 |
| 68 | + MIN_TRANSACTION_SCORE, |
| 69 | +) |
| 70 | +from bankstatements_core.extraction.extraction_params import REQUIRE_AMOUNT_COLUMN |
| 71 | +from bankstatements_core.extraction.extraction_params import ( |
64 | 72 | REQUIRE_AMOUNT_COLUMN as _REQUIRE_AMOUNT_COLUMN, |
| 73 | +) |
| 74 | +from bankstatements_core.extraction.extraction_params import REQUIRE_DATE_COLUMN |
| 75 | +from bankstatements_core.extraction.extraction_params import ( |
65 | 76 | REQUIRE_DATE_COLUMN as _REQUIRE_DATE_COLUMN, |
66 | | - MIN_HEADER_KEYWORDS as _MIN_HEADER_KEYWORDS, |
| 77 | +) |
| 78 | +from bankstatements_core.extraction.extraction_params import SLIDING_WINDOW_SIZE |
| 79 | +from bankstatements_core.extraction.extraction_params import ( |
67 | 80 | SLIDING_WINDOW_SIZE as _SLIDING_WINDOW_SIZE, |
68 | 81 | ) |
| 82 | +from bankstatements_core.extraction.extraction_params import ( # noqa: E402, F401 |
| 83 | + TABLE_BOTTOM_Y, |
| 84 | + TABLE_TOP_Y, |
| 85 | +) |
69 | 86 | from bankstatements_core.extraction.row_classifiers import ( # noqa: E402, F401 |
70 | 87 | create_row_classifier_chain, |
71 | 88 | ) |
|
78 | 95 | from bankstatements_core.services.page_validation import ( # noqa: E402, F401 |
79 | 96 | PageValidationService, |
80 | 97 | ) |
81 | | -from bankstatements_core.services.row_merger import ( # noqa: E402, F401 |
82 | | - RowMergerService, |
83 | | -) |
| 98 | +from bankstatements_core.services.row_merger import RowMergerService # noqa: E402, F401 |
84 | 99 |
|
85 | 100 | # Module-level singletons (instantiated once, not per-call) |
86 | 101 | _PAGE_VALIDATION_SERVICE = PageValidationService( |
|
0 commit comments