/
Pepegator
/
task-api
Обзор
Документация
Войти
/
Pepegator
/
task-api
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
lab3-client
pythonProject2/config.py
24 строки
554 B
Pol136
create docs
30 дек 2025, 11:01
30 дек 2025, 11:01
d230838
Код
Авторство
О чём код?
from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): database_url: str = "sqlite:///./tasks.db" secret_key: str = "dev-secret-key-change-in-production" algorithm: str = "HS256" access_token_expire_minutes: int = 30 api_v1_str: str = "/api/v1" rate_limit_enabled: bool = True rate_limit_per_minute: int = 60 class Config: env_file = ".env" case_sensitive = False @lru_cache() def get_settings(): return Settings() settings = get_settings()