how to read from yml file in python code example
Example 1: read data from yaml file in python
import yaml
# Read YAML file
with open("data.yaml", 'r') as stream:
data_loaded = yaml.safe_load(stream)
Example 2: read yml file in python
{'a_key': 'a_value', 'another_key': 'another_value', 'nested_dictionary': {'nested_key': 'nested_value'}}