Answers for "work with yaml in python"

5

handling yaml with python

pip install PyYAML
Posted by: Guest on November-25-2020
8

python read yaml

# read_categories.py file

import yaml

with open(r'E:\data\categories.yaml') as file:
    documents = yaml.full_load(file)

    for item, doc in documents.items():
        print(item, ":", doc)
Posted by: Guest on March-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language