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:
object
Allows 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:
object
Type: frozen
dataclass
Holds 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:
str
Used to keep secrets from printing to screen when running tests.
Inherits from
str
.Replaces the standard
__repr__()
result with the constant literal'<****>'
.Used by !Mask tag
Note
Does not alter text or prevent
print()
from display the string value.
- class granular_configuration_language.yaml.classes.Placeholder(message: str)[source]
Bases:
object
Representation of !Placeholder tag.
Holds the
!Placeholder
message.
- class granular_configuration_language.yaml.classes.StateHolder(
- *,
- options: LoadOptions,
- lazy_root_obj: LazyRoot,
Bases:
object
Type: frozen
dataclass
Used to pass state define while Loading configuration files into Tags.
- options: LoadOptions
Options from Loading
- class granular_configuration_language.yaml.classes.Tag
NewType
used to type tag strings. Must begin with!
.alias of
str
- class granular_configuration_language.yaml.classes.Root
TypeAlias
used by type checking to identify the configuration root if it exists.
- class granular_configuration_language.yaml.classes.RootType
NewType
used to type the configuration root.Aliases
Mapping
as 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
Configuration
or a subclassalias of TypeVar(‘C’, bound=
Configuration
)