cosmoguard-bd/src/pif_compiler/services/__init__.py
2025-11-11 22:12:25 +01:00

52 lines
1.2 KiB
Python

"""
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.cosing_service import (
cosing_search,
clean_cosing,
parse_cas_numbers,
identified_ingredients,
)
# PubChem Service
from pif_compiler.services.pubchem_service import (
pubchem_dap,
clean_property_data,
)
# Logging
from pif_compiler.services.common_log import (
get_logger,
)
from pif_compiler.services.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"
]