Questions tagged [pyyaml]

PyYAML serves as a Python YAML 1.1 parser and emitter, perfect for addressing any specific questions related to PyYAML in Python programming.

What is the best method for extracting all of the !ImportValue values from a Cloudformation YAML template?

I'm currently working on a project that involves parsing an AWS CloudFormation YAML file to extract all the !ImportValue instances from the template. For this task, I've decided to utilize ruamel.yaml for parsing (even though it's new to me), and so far, ...

Attributes missing in objects created with pyyaml

To create an object using PyYAML, consider the code snippet below: import yaml doc = """ - !!python/object:__main__.Person {name: abc} """ class Person(object): def __init__(self, name): self.name = name self.age = 26 data = yaml.lo ...