| 123456789101112131415161718192021222324 |
- from pydantic_settings import BaseSettings
- from functools import lru_cache
- class Settings(BaseSettings):
- PROJECT_NAME: str
- API_V1_STR: str
- MINIO_ENDPOINT: str
- MINIO_ACCESS_KEY: str
- MINIO_SECRET_KEY: str
- MINIO_BUCKET_NAME: str
- MINIO_SECURE: bool = False
- class Config:
- env_file = ".env"
- @lru_cache()
- def get_settings():
- return Settings()
- settings = get_settings()
|