c56bef871b
CodeQL / Analyze (python) (push) Has been cancelled
Update Platform Components Table / update (push) Has been cancelled
Docker image release / Build base image (push) Has been cancelled
Sync docs with Docusaurus / sync (push) Has been cancelled
Tests / Check if changed (push) Has been cancelled
Tests / format (push) Has been cancelled
Tests / check-imports (push) Has been cancelled
Tests / Unit / macos-latest (push) Has been cancelled
Tests / Unit / ubuntu-latest (push) Has been cancelled
Tests / Unit / windows-latest (push) Has been cancelled
Tests / mypy (push) Has been cancelled
Tests / Integration / ubuntu-latest (push) Has been cancelled
Tests / Integration / macos-latest (push) Has been cancelled
Tests / Integration / windows-latest (push) Has been cancelled
Tests / notify-slack-on-failure (push) Has been cancelled
Tests / Mark tests as completed (push) Has been cancelled
45 lines
1.7 KiB
Python
45 lines
1.7 KiB
Python
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
import sys
|
|
from typing import TYPE_CHECKING
|
|
|
|
from lazy_imports import LazyImporter
|
|
|
|
_import_structure = {
|
|
"csv": ["CSVToDocument"],
|
|
"docx": ["DOCXToDocument"],
|
|
"file_to_file_content": ["FileToFileContent"],
|
|
"html": ["HTMLToDocument"],
|
|
"json": ["JSONConverter"],
|
|
"markdown": ["MarkdownToDocument"],
|
|
"msg": ["MSGToDocument"],
|
|
"multi_file_converter": ["MultiFileConverter"],
|
|
"output_adapter": ["OutputAdapter"],
|
|
"pdfminer": ["PDFMinerToDocument"],
|
|
"pptx": ["PPTXToDocument"],
|
|
"pypdf": ["PyPDFToDocument"],
|
|
"txt": ["TextFileToDocument"],
|
|
"xlsx": ["XLSXToDocument"],
|
|
}
|
|
|
|
if TYPE_CHECKING:
|
|
from .csv import CSVToDocument as CSVToDocument
|
|
from .docx import DOCXToDocument as DOCXToDocument
|
|
from .file_to_file_content import FileToFileContent as FileToFileContent
|
|
from .html import HTMLToDocument as HTMLToDocument
|
|
from .json import JSONConverter as JSONConverter
|
|
from .markdown import MarkdownToDocument as MarkdownToDocument
|
|
from .msg import MSGToDocument as MSGToDocument
|
|
from .multi_file_converter import MultiFileConverter as MultiFileConverter
|
|
from .output_adapter import OutputAdapter as OutputAdapter
|
|
from .pdfminer import PDFMinerToDocument as PDFMinerToDocument
|
|
from .pptx import PPTXToDocument as PPTXToDocument
|
|
from .pypdf import PyPDFToDocument as PyPDFToDocument
|
|
from .txt import TextFileToDocument as TextFileToDocument
|
|
from .xlsx import XLSXToDocument as XLSXToDocument
|
|
|
|
else:
|
|
sys.modules[__name__] = LazyImporter(name=__name__, module_file=__file__, import_structure=_import_structure)
|