yonnel
Initial clean commit - FastAPI movie backend without large data files
66fef64
raw
history blame
676 Bytes
"""
Settings and environment configuration
"""
import os
from functools import lru_cache
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
"""Application settings"""
# OpenAI API key for embeddings
openai_api_key: str
# TMDB API key for movie data
tmdb_api_key: str
# API authentication token
api_token: str
# Environment (dev/prod)
env: str = "dev"
# Logging level
log_level: str = "INFO"
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
@lru_cache()
def get_settings() -> Settings:
"""Get cached settings instance"""
return Settings()