manager
๐ค 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.manager
¶
FlavorPack configuration manager for env loading and global access.
Classes¶
FlavorConfigManager
¶
Manager for FlavorPack configuration.
Initialize the configuration manager.
Source code in flavor/config/manager.py
Functions¶
get_config
¶
Get the current FlavorConfig instance.
This creates a configuration instance that loads from environment variables using Foundation's config system.
Returns:
| Name | Type | Description |
|---|---|---|
FlavorConfig |
FlavorConfig
|
The current configuration instance |
Source code in flavor/config/manager.py
reset_config
¶
set_config
¶
Set the FlavorConfig instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
FlavorConfig | None
|
The FlavorConfig instance to use, or None to reset |
required |
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 |