Knowledge-Graph-Hub / neat-ml

Network Embedding All the Things
BSD 3-Clause "New" or "Revised" License
18 stars 1 forks source link

Adding a helper script for updating values in yaml #37

Closed caufieldjh closed 2 years ago

caufieldjh commented 2 years ago

Can run as:

python3 update_yaml.py --input_path neat.yaml --keys name,description,node_path --values "kg-idg","kg-idg-xxxxx","./path-to-file"

Will recursively search for a provided key, but will not change keys found multiple times in the yaml OR keys nested within lists (as these may have an order we need to retain).

justaddcoffee commented 2 years ago

Looks good, but could we move the update_yaml.py script to the scripts/ directory?

caufieldjh commented 2 years ago

Looks good, but could we move the update_yaml.py script to the scripts/ directory?

Done!

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication