lofi-app/src/config.py
2026-05-09 08:57:54 -05:00

20 lines
558 B
Python

import os
from dotenv import load_dotenv
load_dotenv()
class Settings:
YOUTUBE_API_KEY: str = os.getenv("YOUTUBE_API_KEY", "")
BACKEND_PORT: int = int(os.getenv("BACKEND_PORT", "8000"))
LOG_LEVEL: str = os.getenv("LOG_LEVEL", "info")
APP_ENV: str = os.getenv("APP_ENV", "development")
YOUTUBE_API_BASE: str = "https://www.googleapis.com/youtube/v3"
YOUTUBE_SEARCH_BASE: str = "https://www.googleapis.com/youtube/v3/search"
YOUTUBE_CHANNELS_BASE: str = "https://www.googleapis.com/youtube/v3/channels"
settings = Settings()