3000 explained code solutions for 75 technologies

pythonHow to read yaml file

import yaml

with open('file.yml') as f:
  data = yaml.load(f)ctrl + c
import yaml

import library to work with YAML


path to our YAML file


loads YAML from file and parses it into dictionary


this dictionary will store parsed data