youtube-transcript-api/core/config.py

20 lines
369 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
app_env: str = "production"
request_timeout: int = 25
max_video_duration: int = 7200
enable_redis: bool = False
enable_postgres: bool = False
enable_rate_limit: bool = False
class Config:
env_file = ".env"
extra = "ignore"
settings = Settings()