granular_configuration_language .yaml.classes
- class granular_configuration_language.yaml.classes.LazyEval(
- tag: Tag,
-
Base class for handling the output of a Tag that needs to be run just-in-time.
- class granular_configuration_language.yaml.classes.LazyRoot[source]
Bases:
objectAllows the Root reference to be defined outside loading. (Since it cannot be defined during Loading)
- class granular_configuration_language.yaml.classes.LoadOptions(
- *,
- obj_pairs_func: type[Mapping[Any, Any]],
- sequence_func: type[tuple[Any] | list[Any]],
- mutable: bool,
- file_location: Path | None,
- relative_to_directory: Path,
- previous: LoadOptions | None,
Bases:
objectType: frozen
dataclassHolds the parameters used when loading the configuration file.
- previous: LoadOptions | None
Pointer to previous options, if this file was loaded by another
- class granular_configuration_language.yaml.classes.Masked[source]
Bases:
strUsed to keep secrets from printing to screen when running tests.
Inherits from
str.Replaces the standard
__repr__()result with the constant literal'<****>'.Used by
!Masktag (ref).
Note
Does not alter text or prevent
print()from display the string value.
- class granular_configuration_language.yaml.classes.Placeholder(message: str)[source]
Bases:
objectRepresentation of
!Placeholdertag (ref).Holds the
!Placeholdermessage.
- class granular_configuration_language.yaml.classes.StateHolder(
- *,
- options: LoadOptions,
- lazy_root_obj: LazyRoot,
Bases:
objectType: frozen
dataclassUsed to pass state define while Loading configuration files into Tags.
- options: LoadOptions
Options from Loading
- class granular_configuration_language.yaml.classes.Tag
NewTypeused to type tag strings. Must begin with!.alias of
str
- class granular_configuration_language.yaml.classes.Root
TypeAliasused by type checking to identify the configuration root if it exists.
- class granular_configuration_language.yaml.classes.RootType
NewTypeused to type the configuration root.Aliases
Mappingas root has to be a mapping for it to be used, and no Tag should mutate it.alias of
Mapping
Internal Typing Variables
- class granular_configuration_language.yaml.classes.P
alias of ParamSpec(‘P’)
- class granular_configuration_language.yaml.classes.T
Generic Type
alias of TypeVar(‘T’)
- class granular_configuration_language.yaml.classes.RT
Generic Return Type
alias of TypeVar(‘RT’)
- class granular_configuration_language.yaml.classes.IT
Generic Intermediate Type
alias of TypeVar(‘IT’)
- class granular_configuration_language.yaml.classes.KT
Type of the Key on Mappings
alias of TypeVar(‘KT’, bound=
Hashable, default=Any)
- class granular_configuration_language.yaml.classes.VT
Type of the Value on Mappings
alias of TypeVar(‘VT’, default=
Any)
- class granular_configuration_language._configuration.C
Generic Type that must be
Configurationor a subclassalias of TypeVar(‘C’, bound=
Configuration)