asphalt.serialization.serializers.yaml
- class asphalt.serialization.serializers.yaml.YAMLSerializer(safe=True)
Bases:
SerializerSerializes objects to and from YAML format.
To use this serializer backend, the
ruamel.yamllibrary must be installed. A convenient way to do this is to installasphalt-serializationwith theyamlextra:$ pip install asphalt-serialization[yaml]
Warning
This serializer is insecure in unsafe mode because it allows execution of arbitrary code when deserializing.
See also
- Parameters:
safe (
bool) –Trueto (de)serialize in safe mode,Falseto enable extended tags