encoding package

Submodules

encoding.ansible_encoding module

class encoding.ansible_encoding.RawConvertibleObject[source]

Bases: object

to_raw()[source]
encoding.ansible_encoding.decode_ansible_raw(data: Any) Any[source]

Converts an Ansible var to a python native one

Ansible raw input args can contain AnsibleUnicodes or AnsibleUnsafes that are not intended to be manipulated directly. This function converts the given variable to a one that only contains python built-in types.

Parameters:

data – The usafe Ansible content to decode

Returns: The python types based result

Module contents