pyaml is a PyYAML-based Python module and command-line tool to produce more pretty and human-readable YAML-serialized data, keeping key order, using block style for multi-line strings, and avoiding needless quoting.

WWW: https://github.com/mk-fg/pretty-yaml
