config.pyā¢753 B
"""Configuration settings for the API"""
import os
from pathlib import Path
class Settings:
"""Application settings"""
# Server settings
HOST: str = os.getenv("HOST", "localhost")
PORT: int = int(os.getenv("PORT", "8002"))
# API settings
API_TITLE: str = "Expense Tracker API"
API_VERSION: str = "1.0.0"
# CORS settings
ALLOW_ORIGINS: list = ["*"]
ALLOW_CREDENTIALS: bool = True
ALLOW_METHODS: list = ["*"]
ALLOW_HEADERS: list = ["*"]
# Database settings
DB_PATH: Path = Path(__file__).parent / "expenses.db"
# MCP Server settings
MCP_HOST: str = os.getenv("MCP_HOST", "localhost")
MCP_PORT: int = int(os.getenv("MCP_PORT", "9002"))
settings = Settings()