17 lines
321 B
Python
17 lines
321 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str
|
|
secret_key: str
|
|
|
|
app_name: str = "Hermes API"
|
|
app_version: str = "0.1.0"
|
|
|
|
model_config = SettingsConfigDict(
|
|
env_file=".env",
|
|
extra="ignore",
|
|
)
|
|
|
|
|
|
settings = Settings()
|