mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-03 19:50:52 -05:00
* ✨ Update settings examples to use lru_cache * 📝 Update docs for Settings, using @lru_cache * 🎨 Update lru_cache colors to show difference in stored values
8 lines
150 B
Python
8 lines
150 B
Python
from pydantic import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_name: str = "Awesome API"
|
|
admin_email: str
|
|
items_per_user: int = 50
|