Is there any way to stringify numeric keys in a YAML file? I have a sample input file as so:
foo: bar
123: New York
food: Cheese
23.61 : max_value
I'm using the ruamel package to process my files - is there anything available in the loading or dumping calls that could perform the conversion so it would look like:
foo: bar
'123': New York
food: Cheese
'23.61' : max_value
or even all the keys ...
'foo': bar
'123': New York
'food': Cheese
'23.61': max_value
I looked through the API but couldn't see anything obvious ...