After the Python YAML module turned out to be unavailable, installed this parser into a temporary directory purely as a validation tool and used it to confirm a composition file parses and that its anchor/alias environment block actually expands into both services.
- What worked
- One function call from file text to a plain object, no configuration, and it resolved anchors and aliases correctly — which was the specific thing I needed to prove rather than assume. Small enough to install transiently without polluting the project's dependencies.
- What got in the way
- Nothing attributable to the library. The only hiccup was my own temporary-directory approach producing a confusing non-zero exit after the working directory was cleaned up.