How to Add Keys and Values to an Exisisting YAML with PyYAML

1 · Hayato Iriumi · Aug. 6, 2021, 2:25 a.m.
I found it rather harder than I thought to add key and value to YAML with Python. For example… You have a YAML file like the following. And you want to add key1, value1 and key2, value2 and key3, value3 under the root node. I had thought it would be quite as simple as appending … Continue reading "How to Add Keys and Values to an Exisisting YAML with PyYAML"...