config_wrangler.config_from_ini_env module

pydantic model config_wrangler.config_from_ini_env.ConfigFromIniEnv[source]

Bases: ConfigFromLoaders

Config:
  • validate_default: bool = True

  • validate_assignment: bool = True

  • validate_credentials: bool = True

Fields:
  • passwords (config_wrangler.config_templates.password_defaults.PasswordDefaults)

add_child(name: str, child_object: ConfigHierarchy)

Set this configuration as a child in the hierarchy of another config. For any programmatically created config objects this is required so that the new object ‘knows’ where it lives in the hierarchy – most importantly so that it can find the hierarchies root object.

fill_hierarchy(model_level: BaseModel, parents: List[str], errors: set)
fill_hierarchy_any_type(value: object, parents: List[str], errors: set)
full_item_name(item_name: str | None = None, delimiter: str = ' -> ')

The fully qualified name of this config item in the config hierarchy.

get_copy(copied_by: str = 'get_copy') ConfigHierarchy

Copy this configuration. Useful when you need to programmatically modify a configuration without modifying the original base configuration.

model_dump_non_private(*, mode: Literal['json', 'python'] | str = 'python', exclude: Set[str] | None = None) dict[str, Any]
set_as_child(name: str, other_config_item: ConfigHierarchy)
static translate_config_data(config_data: MutableMapping)

Children classes can provide translation logic to allow older config files to be used with newer config class definitions.

validate_model()