salt.serializers.plist
salt.serializers.plist
New in version 3001.
Implements plist serializer.
Wrapper around plistlib.
-
Deserialize any string or stream like object into a Python data structure.
- Parameters
-
stream_or_string -- stream or string to deserialize.
options -- options given to lower plist module.
- Returns
-
Deserialized data structure.
salt.serializers.plist.deserialize(stream_or_string, **options)
-
Serialize Python data to plist. To create a binary plist pass
fmt: FMT_BINARY
as an option.- Parameters
-
obj -- the data structure to serialize
options -- options given to lower plist module.
- Returns
-
bytes of serialized plist.
salt.serializers.plist.serialize(value, **options)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/serializers/all/salt.serializers.plist.html