"""Configuration for vikdata SDK."""

from pydantic_settings import BaseSettings, SettingsConfigDict


class VikdataConfig(BaseSettings):
    """Configuration for vikdata client.

    All settings can be overridden via environment variables with VIKDATA_ prefix.
    For example: VIKDATA_BASE_URL=https://api.vikdata.com
    """

    base_url: str = "http://localhost:8000"
    api_key: str | None = None
    timeout: float = 30.0
    max_retries: int = 3
    retry_backoff_factor: float = 0.5
    verify_ssl: bool = True

    model_config = SettingsConfigDict(env_prefix="VIKDATA_")
