Initial public release
This commit is contained in:
19
hydra/config/settings.py
Normal file
19
hydra/config/settings.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from functools import lru_cache
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
hydra_api_key: str = "change-me"
|
||||
hydra_profile: str = "lite"
|
||||
redis_url: str = "redis://localhost:6379"
|
||||
db_url: str = "sqlite:///data/hydra.db"
|
||||
telegram_bot_token: str = ""
|
||||
telegram_chat_id: str = ""
|
||||
log_level: str = "INFO"
|
||||
|
||||
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
|
||||
|
||||
|
||||
@lru_cache
|
||||
def get_settings() -> Settings:
|
||||
return Settings()
|
||||
Reference in New Issue
Block a user