I am using YAML to describe some configuration that will be read by a Python tool using ruamel. The problem is I need to use string literal ON a lot a ...
I am using YAML to describe some configuration that will be read by a Python tool using ruamel. The problem is I need to use string literal ON a lot a ...
I have a multi-document YAML file. I am interested in modifying the third document only (this modification will be later made using other code and con ...
I use python and ruamel.yaml to load a configuration file. I am currently allowing a [!NETRC][1] entry evaluated from the user's .netrc file when a pa ...
I am working in Spyder, Python version 3.9. I am running into an issue where a bit of code I have written in a function isn't working, but when runnin ...
I have the following YAML: root: - foo: - bar: 1 - baz: 2 When I read/dump with ruamel.yaml (and offset=2, sequence=4 config), I get the ...
I have a yaml file with some value as a list on multiple lines: If I load and then dump this using ruamel.yaml it does two things: it puts the ...
I am trying to generate a YAML file, which does not fall foul of the Norway problem described here: https://hitchdev.com/strictyaml/why/implicit-typin ...
I have the following YAML file: I need to edit the YAML file using Python, I have tried the code below but it is not working for a file with multip ...
I have classes that are setup to be loaded/dumped using ruamel.yaml 0.17.21 yaml_object decorator. For some reason, I don't want changes in my class ...
Already read https://stackoverflow.com/a/61252180/1676006 and it doesn't seem to have solved my problem. Using ruamel.yaml: With a python dict stu ...
I have an Ansible YAML file formatted like below. Notice the - name and - when parts. I process it and remove some elements then dump to a file usi ...
So I have the following piece of code: import sys from typing import NamedTuple import ruamel.yaml as ryaml class Loc(NamedTuple): lat: float ...
I need to sort the contents of a YAML file, and I'm learning ruamel.yaml to do this. Given this file example.yml: --- - job: name: this is the j ...
I have a key value similar to above, in yaml file. When I dumping using ruamel.yaml.round_trip_dump() and preserve_quotes it is adding // in between ...
I have a project where the user is expected to manually write a yaml file. This yaml file might have some of its entries formatted as tuples or numpy ...
I have a yaml file with content This is my program This is the ouput i get In the content of new yaml you can see there is quotes coming in e ...
I have the following YAML file: Whenever I try to make a change in 'test_data1-version' I do the following: I read the yaml file, make the chang ...
I have tried to insert one line comment after one key, but not worked, if insert before one key, the code can work. result is The expect result ...
I have the following Python code: One example of YAML with comments: The above code outputs: Everything works fine, fields are updated as exp ...
Recently during edit of a bit complex yaml config i need to do a bit tricky yaml merge key operation and i noticed that my favorite tool ruamel.yaml p ...