yaml_include.representer module#
- class yaml_include.representer.Representer(tag)[source]#
Bases:
objectRepresenter for
DataWhen dumping an object into a YAML string, this representer serializes
Datainstances within the object.To add the representer to the
PyYAMLDumperclass, use the following code:import yaml_include rpr = yaml_include.Representer("inc") # Note: No "!" prefix needed yaml.add_representer(Data, rpr)
- Parameters:
tag (str)