config_wrangler.config_templates.credentials module

pydantic model config_wrangler.config_templates.credentials.Credentials[source]

Bases: ConfigHierarchy

Config:
  • validate_default: bool = True

  • validate_assignment: bool = True

  • validate_credentials: bool = True

Fields:
  • keepass (config_wrangler.config_templates.keepass_config.KeepassConfig | None)

  • keepass_config (str | None)

  • keepass_group (str | None)

  • keepass_title (str | None)

  • keyring_section (str | None)

  • password_source (config_wrangler.config_templates.password_source.PasswordSource | None)

  • raw_password (str | None)

  • user_id (str | None)

  • validate_password_on_load (bool)

Validators:
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.

validator check_model  »  all fields[source]
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.

get_password() str[source]

Get the password for this resource. password_source controls where it looks for the password. If that is None, then the root level passwords container is checked for password_source value.

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.

pydantic model config_wrangler.config_templates.credentials.PasswordDefaults[source]

Bases: ConfigHierarchy

Config:
  • validate_default: bool = True

  • validate_assignment: bool = True

  • validate_credentials: bool = True

Fields:
  • keepass (config_wrangler.config_templates.keepass_config.KeepassConfig | None)

  • keepass_config (str)

  • password_source (config_wrangler.config_templates.password_source.PasswordSource | None)

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.

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.

class config_wrangler.config_templates.credentials.PasswordSource(*values)[source]

Bases: StrEnum