Is there a single-file YAML subset parser in Python (e.g. supporting only strings/dicts/lists and not supporting references/label)?
I am of course aware of PyYAML/ruamel, but I’m looking for something extremely simple which I can paste in a script to avoid taking dependencies on other libraries (e.g. for parsing GitHub Actions Workflow yaml files – so should support dict-valued lists and multiline strings)
I tried writing something like this, but it’s limited, so looking for sth a bit more robust: https://gist.github.com/vadimkantorov/b26eda3645edb13feaa62b874a3e7f6f
Thanks!