Top "Pyyaml" questions

PyYAML is a YAML 1.1 parser and emitter for Python.

pyYAML Errors on "!" in a string

First, a disclaimer: I'm not too familiar with YAML. I'm trying to parse a YAML doc into Key Value Pairs (…

python yaml pyyaml
Accessing nested YAML mappings with jinja2

I've recently started using YAML and jinja2. I'm having trouble understanding why I need to reference the entire structure of …

python yaml jinja2 pyyaml
Dump in PyYaml as utf-8

I'm trying to load a bunch of utf-8 encoded strings and dump them again with PyYaml. This is the code …

python utf-8 pyyaml
YAML loads 5e-6 as string and not a number

When I load a number with e form a JSON dump with YAML, the number is loaded as a string …

python json dictionary pyyaml
Getting duplicate keys in YAML using Python

We are in need of parsing YAML files which contain duplicate keys and all of these need to be parsed. …

python yaml pyyaml ruamel.yaml
PyYaml - Dump unicode with special characters ( i.e. accents )

I'm working with yaml files that have to be human readable and editable but that will also be edited from …

python unicode yaml non-ascii-characters pyyaml
Any yaml libraries in Python that support dumping of long strings as block literals or folded blocks?

I'd like to be able to dump a dictionary containing long strings that I'd like to have in the block …

python yaml pyyaml
Preserve new lines in YAML

How do I format a YAML document like this so that PyYAML can parse it properly? Data: Some data, here …

yaml pyyaml
ScannerError: mapping values are not allowed here

Using Tavern and trying to run tavern-ci against this yaml: test_name: tavern poc - name: list request: url: https://…

yaml pyyaml tavern
How to create a datetime object with PyYAML

I'd like to be able to create a datetime object with datetime.datetime.now() PyYAML. It's easy to call some …

python yaml pyyaml