Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python yaml load_all

# pip install pyyaml

import yaml

with open('data.yaml') as f:
    docs = yaml.load_all(f, Loader=yaml.FullLoader)
    for doc in docs:
        for k, v in doc.items():
            print(k, "->", v)
 
PREVIOUS NEXT
Tagged: #python #yaml
ADD COMMENT
Topic
Name
4+5 =