yaml module

A module with some yaml helper functions

Usage example

This example shows how we can load a yaml file:

import yaml

# This loads the file in this module under 'files/test.yaml'
yaml_dict_a = yaml::load("test.yaml")

# This does the same
# Notice this one uses loads instead of load
# loads loads from a string instead of a file
# The string is obtained by using std::source, which reads the file from disk
yaml_dict_b = yaml::loads(std::source("test.yaml"))

# loads loads from a string
yaml_dict_c = yaml::loads("""key: value""")

Using this module to load a yaml inventory

see examples/network_inventory