"""
PIF Compiler - Services Layer

This module contains business logic and external API integrations for
regulatory data sources used in cosmetic safety assessment.

Modules:
    - echa_find: ECHA dossier search functionality
    - echa_process: ECHA data extraction and processing (HTML -> Markdown -> JSON -> DataFrame)
    - echa_pdf: PDF generation from ECHA dossiers with Playwright
    - cosing_service: COSING database integration (EU cosmetic ingredients)
    - pubchem_service: PubChem API integration for chemical properties
    - common_log: Centralized logging configuration
"""

# ECHA Services

# COSING Service
from pif_compiler.services.srv_cosing import (
    cosing_search,
    clean_cosing,
    parse_cas_numbers,
    identified_ingredients,
)

# PubChem Service
from pif_compiler.services.srv_pubchem import (
    pubchem_dap,
    clean_property_data,
)

# Logging
from pif_compiler.functions.common_log import (
    get_logger,
)

from pif_compiler.functions.db_utils import get_client


__all__ = [
    # COSING Service
    "cosing_search",
    "clean_cosing",
    "parse_cas_numbers",
    "identified_ingredients",
    # PubChem Service
    "pubchem_dap",
    "clean_property_data",
    # Logging
    "get_logger",
    "get_client"
]
