1

I just managed to install PyYAML...but I'm still not sure how to parse yaml files by using PyYAML (Sorry for my poor programming knowledge)..

Actually my real intention is to parse/validate YAML files to make sure they're following the right syntax...

So the instructions I found is here http://pyyaml.org/wiki/PyYAML, but I'm still confused about how to use it, especially for testing several documents (not pasting contents from the yaml files)..

Can you help explain it? Thank you very much!

Penny

Penny
  • 1,218
  • 1
  • 13
  • 32
  • Did you see my answer on your previous question? It uses Ruby but gets the job done: http://stackoverflow.com/questions/34150923/bulk-validating-yaml-files – Jordan Running Dec 08 '15 at 23:09
  • Related: http://stackoverflow.com/questions/1773805/how-can-i-parse-a-yaml-file-in-python – Jordan Running Dec 08 '15 at 23:11
  • Thank you Jordan! I managed to parse yaml files by using node.js, which is awesome! But the link that you provided is very useful...I'm wondering if we can use those codes to parse files in a directory instead of one by one? – Penny Dec 08 '15 at 23:16

0 Answers0