from pathlib import Path
from .core import FAFRegionData, FAFHiLoData, FAFNetworkData, FAFStateData
from .metadata import FAFMetadata
from .api import (
    get_flows, 
    get_network, 
    search_commodity, 
    search_zone, 
    search_state, 
    search_mode
)

# Initialize metadata (codes)
# We use the same default path logic as in core.py
_data_dir = Path(__file__).resolve().parent.parent.parent / "data"
codes = FAFMetadata(_data_dir)

__all__ = [
    "get_flows", "get_network", 
    "search_commodity", "search_zone", "search_state", "search_mode",
    "codes",
    "FAFRegionData", "FAFHiLoData", "FAFNetworkData", "FAFStateData", "FAFMetadata"
]
