salt.serializers.configparser

salt.serializers.configparser

New in version 2016.3.0.

Implements a configparser serializer.

salt.serializers.configparser.deserialize(stream_or_string, **options)

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 configparser module.

salt.serializers.configparser.serialize(obj, **options)

Serialize Python data to a configparser formatted string or file.

Parameters
  • obj -- the data structure to serialize

  • options -- options given to lower configparser module.

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/serializers/all/salt.serializers.configparser.html