from_yaml#
method
- classmethod YAMLMixin.from_yaml(yaml: bytes | IO[bytes] | str | IO[str]) PyroLabConfiguration[source]#
Loads a YAML representation of the configuration.
Warning
The YAML
loadfunction can run arbitrary code on your machine. Only load trusted or untampered files! If in doubt, examine the file first. It’s a short text file, and should not be hard to vet.- Parameters:
- yamlbytes, str, IO[bytes], IO[str]
The YAML to load.