Skip to content

panzershaft/Python-Yaml-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YAML editing using python

  • This program takes two yaml files as arguments
    • file1: This is a 'yaml' file with missing values you wish to fill, missing values are in a different yaml file
    • file2: This is the 'yaml' file which has the missing values with the keys which you need for file1

How to execute ?

 python3 yaml_editor.py --f1 sample_files/values.yaml --f2 sample_files/change.yaml 
  • NOTE: final yaml file will be found in the same folder of the f1 file.
  • Running Radon, radon tell you the cyclomatic complexity of you code $ radon cc yaml_editor.py
yaml_editor.py
    F 15:0 flatten - A
    F 26:0 un_flatten - A
    F 39:0 yaml_editor - A

About

Takes two yamls files as an inpurt, one is the file you wish to update the values, second consisting of the key & value pair you need to update the first file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages