This is an easy library for loading, editing and saving yaml objects.
You can install this project by a simple command.
pip install easyyaml
It is quite simple to manipulate the yaml object.
>>> yd = eyaml.load(eyaml.__test_yaml_file__)
>>> for _ in range(4):
yd.list.pop()
>>> yd.name = "this_is_a_simple_example_of_eyaml"
>>> eyaml.save(eyaml.__temp_yaml_file__, yd)