W3cubDocs

/SaltStack

salt.serializers.python module

salt.serializers.python

New in version 2016.3.0.

Implements a Python serializer (via pprint.format)

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

Serialize Python data to a Python string representation (via pprint.format)

Parameters:
  • obj -- the data structure to serialize
  • options -- options given to pprint.format

© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/serializers/all/salt.serializers.python.html