Classes
AppConfig
19
▼
Application configuration. Immutable after creation.
All fields have sensible defaults. Override w…
AppConfig
19
▼
Application configuration. Immutable after creation.
All fields have sensible defaults. Override what you need::
config = AppConfig(debug=True, port=3000, secret_key="s3cr3t")
Attributes
| Name | Type | Description |
|---|---|---|
host |
str
|
— |
port |
int
|
— |
debug |
bool
|
— |
reload_include |
tuple[str, ...]
|
— |
reload_dirs |
tuple[str, ...]
|
— |
secret_key |
str
|
— |
template_dir |
str | Path
|
— |
autoescape |
bool
|
— |
trim_blocks |
bool
|
— |
lstrip_blocks |
bool
|
— |
static_dir |
str | Path | None
|
— |
static_url |
str
|
— |
sse_heartbeat_interval |
float
|
— |
sse_retry_ms |
int | None
|
— |
sse_close_event |
str | None
|
— |
mcp_path |
str
|
— |
safe_target |
bool
|
— |
sse_lifecycle |
bool
|
— |
max_content_length |
int
|
— |