Cleanup: Delete ALL 242 shims, update ALL consumer imports
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 41s
CI / test-go-edu-search (push) Successful in 32s
CI / test-python-klausur (push) Failing after 2m41s
CI / test-python-agent-core (push) Successful in 34s
CI / test-nodejs-website (push) Successful in 39s
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 41s
CI / test-go-edu-search (push) Successful in 32s
CI / test-python-klausur (push) Failing after 2m41s
CI / test-python-agent-core (push) Successful in 34s
CI / test-nodejs-website (push) Successful in 39s
klausur-service: 183 shims deleted, 26 test files + 8 source files updated backend-lehrer: 59 shims deleted, main.py + 8 source files updated All imports now use the new package paths directly. Zero shims remaining in the entire codebase. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ from nibis_ingestion import (
|
||||
DOCS_BASE_PATH,
|
||||
)
|
||||
from qdrant_service import QdrantService, search_nibis_eh, get_qdrant_client
|
||||
from eh_pipeline import generate_single_embedding
|
||||
from korrektur.eh_pipeline import generate_single_embedding
|
||||
|
||||
router = APIRouter(prefix="/api/v1/admin", tags=["Admin"])
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ from pydantic import BaseModel
|
||||
from typing import Optional, List, Dict
|
||||
from datetime import datetime
|
||||
|
||||
from eh_pipeline import generate_single_embedding
|
||||
from korrektur.eh_pipeline import generate_single_embedding
|
||||
|
||||
# Import legal templates modules
|
||||
try:
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to admin/api.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("admin.api")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to admin/nibis.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("admin.nibis")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to admin/rag.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("admin.rag")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to admin/templates.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("admin.templates")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to compliance/extraction.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("compliance.extraction")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to compliance/models.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("compliance.models")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to compliance/pipeline.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("compliance.pipeline")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr/pipeline/crop_api.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.pipeline.crop_api")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/box_detect.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.box_detect")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/box_layout.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.box_layout")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/cell_grid\/cell_grid.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cell_grid.cell_grid")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/cell_grid\/build.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cell_grid.build")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/cell_grid\/helpers.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cell_grid.helpers")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/cell_grid\/legacy.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cell_grid.legacy")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/cell_grid\/merge.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cell_grid.merge")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/cell_grid\/streaming.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cell_grid.streaming")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/cell_grid\/vocab.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cell_grid.vocab")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/color_detect.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.color_detect")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/doclayout_detect.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.doclayout_detect")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/graphic_detect.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.graphic_detect")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/gutter\/repair.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.gutter.repair")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/gutter\/core.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.gutter.core")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/gutter\/grid.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.gutter.grid")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/ipa_german.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.ipa_german")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/layout.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.layout")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/analyze.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.analyze")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/classify.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.classify")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/classify_position.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.classify_position")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/column_refine.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.column_refine")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/columns.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.columns")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/detection.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.detection")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/row_regularize.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.row_regularize")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/rows.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.rows")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/layout\/scoring.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.layout.scoring")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/engines\/cell_filter.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.engines.cell_filter")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/engines\/cell_phonetics.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.engines.cell_phonetics")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/engines\/engines.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.engines.engines")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/engines\/ipa_lookup.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.engines.ipa_lookup")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/engines\/ipa_repair.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.engines.ipa_repair")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/engines\/vocab_postprocess.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.engines.vocab_postprocess")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/engines\/word_assembly.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.engines.word_assembly")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/preprocessing\/preprocessing.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.preprocessing.preprocessing")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/preprocessing\/deskew.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.preprocessing.deskew")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/preprocessing\/dewarp.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.preprocessing.dewarp")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/review\/review.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.review.review")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/review\/llm.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.review.llm")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/review\/pipeline.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.review.pipeline")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/review\/spell.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.review.spell")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/syllable\/core.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.syllable.core")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/syllable\/detect.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.syllable.detect")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/detect\/syllable\/merge.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.detect.syllable.merge")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr/cv_pipeline.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.cv_pipeline")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/types.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.types")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/words_first.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.words_first")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to korrektur/eh_pipeline.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("korrektur.eh_pipeline")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to korrektur/eh_templates.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("korrektur.eh_templates")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to korrektur/eh_templates_analyse.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("korrektur.eh_templates_analyse")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to korrektur/eh_templates_eroerterung.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("korrektur.eh_templates_eroerterung")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to korrektur/eh_templates_registry.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("korrektur.eh_templates_registry")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to korrektur/eh_templates_types.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("korrektur.eh_templates_types")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to compliance/full_pipeline.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("compliance.full_pipeline")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to crawler/github.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("crawler.github")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to crawler/github_core.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("crawler.github_core")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to crawler/github_parsers.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("crawler.github_parsers")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/build/cell_ops.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.build.cell_ops")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/build/cleanup.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.build.cleanup")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/build/core.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.build.core")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/build/finalize.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.build.finalize")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/build/text_ops.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.build.text_ops")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/build/zones.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.build.zones")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/api.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.api")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/api_box.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.api_box")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/api_grid.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.api_grid")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/api_gutter.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.api_gutter")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/api_unified.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.api_unified")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/columns.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.columns")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/filters.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.filters")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/headers.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.headers")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/helpers.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.helpers")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to grid/editor/zones.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("grid.editor.zones")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr/pipeline/htr_api.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.pipeline.htr_api")
|
||||
@@ -12,7 +12,7 @@ from datetime import datetime
|
||||
from typing import List, Optional
|
||||
|
||||
from template_sources import SourceConfig
|
||||
from github_crawler import ExtractedDocument
|
||||
from crawler.github import ExtractedDocument
|
||||
|
||||
|
||||
# Chunking configuration defaults (can be overridden by env vars in ingestion module)
|
||||
|
||||
@@ -42,7 +42,7 @@ from template_sources import (
|
||||
get_enabled_sources,
|
||||
get_sources_by_priority,
|
||||
)
|
||||
from github_crawler import (
|
||||
from crawler.github import (
|
||||
ExtractedDocument,
|
||||
GitHubCrawler,
|
||||
RepositoryDownloader,
|
||||
|
||||
@@ -33,22 +33,22 @@ from config import EH_UPLOAD_DIR, FRONTEND_PATH
|
||||
from routes import api_router
|
||||
|
||||
# External module routers (already modular)
|
||||
from admin_api import router as admin_router
|
||||
from zeugnis_api import router as zeugnis_router
|
||||
from training_api import router as training_router
|
||||
from admin.api import router as admin_router
|
||||
from zeugnis.api import router as zeugnis_router
|
||||
from training.api import router as training_router
|
||||
from mail.api import router as mail_router
|
||||
try:
|
||||
from trocr_api import router as trocr_router
|
||||
from training.trocr_api import router as trocr_router
|
||||
except ImportError:
|
||||
trocr_router = None
|
||||
from vocab_worksheet_api import router as vocab_router, set_db_pool as set_vocab_db_pool, _init_vocab_table, _load_all_sessions, DATABASE_URL as VOCAB_DATABASE_URL
|
||||
from ocr_pipeline_api import router as ocr_pipeline_router, _cache as ocr_pipeline_cache
|
||||
from grid_editor_api import router as grid_editor_router
|
||||
from orientation_crop_api import router as orientation_crop_router, set_cache_ref as set_orientation_crop_cache
|
||||
from ocr_pipeline_session_store import init_ocr_pipeline_tables
|
||||
from vocab.worksheet.api import router as vocab_router, set_db_pool as set_vocab_db_pool, _init_vocab_table, _load_all_sessions, DATABASE_URL as VOCAB_DATABASE_URL
|
||||
from ocr.pipeline.api import router as ocr_pipeline_router, _cache as ocr_pipeline_cache
|
||||
from grid.editor.api import router as grid_editor_router
|
||||
from ocr.pipeline.orientation_crop_api import router as orientation_crop_router, set_cache_ref as set_orientation_crop_cache
|
||||
from ocr.pipeline.session_store import init_ocr_pipeline_tables
|
||||
from ocr_kombi.router import router as ocr_kombi_router
|
||||
try:
|
||||
from handwriting_htr_api import router as htr_router
|
||||
from ocr.pipeline.htr_api import router as htr_router
|
||||
except ImportError:
|
||||
htr_router = None
|
||||
try:
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to metrics/db.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("metrics.db")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to metrics/db_core.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("metrics.db_core")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to metrics/db_schema.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("metrics.db_schema")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to metrics/db_zeugnis.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("metrics.db_zeugnis")
|
||||
@@ -20,7 +20,7 @@ from datetime import datetime
|
||||
import asyncio
|
||||
|
||||
# Local imports
|
||||
from eh_pipeline import chunk_text, generate_embeddings, extract_text_from_pdf, get_vector_size, EMBEDDING_BACKEND
|
||||
from korrektur.eh_pipeline import chunk_text, generate_embeddings, extract_text_from_pdf, get_vector_size, EMBEDDING_BACKEND
|
||||
from qdrant_service import QdrantService
|
||||
from nibis_parsers import parse_filename_old_format, parse_filename_new_format
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to worksheet/nru_generator.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("worksheet.nru_generator")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to worksheet/nru_html.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("worksheet.nru_html")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to worksheet/nru_models.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("worksheet.nru_models")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to worksheet/nru_pdf.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("worksheet.nru_pdf")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr\/image_enhance.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.image_enhance")
|
||||
@@ -13,7 +13,7 @@ from typing import Optional
|
||||
|
||||
from fastapi import APIRouter, UploadFile, File, Form, HTTPException
|
||||
|
||||
from ocr_pipeline_session_store import create_session_db, get_document_group_sessions
|
||||
from ocr.pipeline.session_store import create_session_db, get_document_group_sessions
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr/labeling/api.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.labeling.api")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr/labeling/helpers.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.labeling.helpers")
|
||||
@@ -1,4 +0,0 @@
|
||||
# Backward-compat shim -- module moved to ocr/labeling/models.py
|
||||
import importlib as _importlib
|
||||
import sys as _sys
|
||||
_sys.modules[__name__] = _importlib.import_module("ocr.labeling.models")
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user