cognee/cognee/infrastructure/loaders/external/__init__.py

36 lines
884 B
Python

"""
External loader implementations for cognee.
This module contains loaders that depend on external libraries:
- pypdf_loader: PDF processing using pypdf
- unstructured_loader: Document processing using unstructured
- dlt_loader: Data lake/warehouse integration using DLT
These loaders are optional and only available if their dependencies are installed.
"""
from .pypdf_loader import PyPdfLoader
__all__ = ["PyPdfLoader"]
# Conditional imports based on dependency availability
try:
from .unstructured_loader import UnstructuredLoader
__all__.append("UnstructuredLoader")
except ImportError:
pass
try:
from .advanced_pdf_loader import AdvancedPdfLoader
__all__.append("AdvancedPdfLoader")
except ImportError:
pass
try:
from .beautiful_soup_loader import BeautifulSoupLoader
__all__.append("BeautifulSoupLoader")
except ImportError:
pass