mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-30 17:01:12 -05:00
10 lines
235 B
Python
10 lines
235 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_name: str = "Awesome API"
|
|
admin_email: str
|
|
items_per_user: int = 50
|
|
|
|
model_config = SettingsConfigDict(env_file=".env")
|