yaml
is a Python package which parses and emits YAML 1.1. It supports
Python 2.6-2.7, Python 3.3+, PyPy and PyPy3.
>>> import yaml
>>> yaml.loads("""
... mydict:
... - 1
... - 2
... - 3
... """)
{'mydict': [1, 2, 3]}
If you run into bugs, you can file them in our issue tracker.