Python YAML – Read, Write, Parse YAML
https://pynative.com/python-yaml05.04.2021 · Make Custom Python Class YAML Serializable. Using the PyYAML module you can convert YAML into a custom Python object instead of a dictionary or built-in types. i.e., PyYAML allows you to read a YAML file into any custom Python object. Also, You can dump instances of custom Python classes into YAML stream. Example: