Answers for "how to load a yaml file python"

5

handling yaml with python

pip install PyYAML
Posted by: Guest on November-25-2020
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)
Posted by: Guest on March-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language