from_yaml#

method

classmethod PyroLabConfiguration.from_yaml(yaml: bytes | IO[bytes] | str | IO[str]) PyroLabConfiguration#

Loads a YAML representation of the configuration.

Warning

The YAML load function 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.