Index
🤖 AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.config
¶
FlavorPack configuration system built on the Provide Foundation config stack.
Provides typed, validated configuration models that replace ad-hoc env handling.
Classes¶
BuildConfig
¶
Build-related configuration from the manifest.
ExecutionConfig
¶
Execution-related configuration from the manifest.
FlavorConfig
¶
Bases: BaseConfig
Top-level structured configuration for the [tool.flavor] section.
Functions¶
from_pyproject_dict
classmethod
¶
Factory method to create a validated FlavorConfig from a dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict[str, Any]
|
The dictionary from the |
required |
project_defaults
|
dict[str, Any]
|
A dictionary with fallback values from the |
required |
Returns:
| Type | Description |
|---|---|
FlavorConfig
|
A validated, immutable FlavorConfig instance. |
Raises:
| Type | Description |
|---|---|
ValidationError
|
If the configuration is invalid. |
Source code in flavor/config/config.py
FlavorRuntimeConfig
¶
MetadataConfig
¶
PathsConfig
¶
Bases: RuntimeConfig
Path and directory configuration.
RuntimeRuntimeConfig
¶
Configuration for the sandboxed runtime environment variables.
SecurityConfig
¶
Bases: RuntimeConfig
Security and validation configuration.
Functions¶
__attrs_post_init__
¶
Validate the security configuration after initialization.
Source code in flavor/config/config.py
SystemConfig
¶
System and environment configuration.
UVConfig
¶
Functions¶
get_flavor_config
¶
Get the global FlavorConfig instance.
Returns:
| Name | Type | Description |
|---|---|---|
FlavorConfig |
FlavorConfig
|
The global configuration instance |
reset_flavor_config
¶
set_flavor_config
¶
Set the global FlavorConfig instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
FlavorConfig | None
|
The FlavorConfig instance to use globally, or None to reset |
required |