otupy.encoders.yaml
YAML Encoding
This module provides the code for encoding OpenC2 messages with YAML. YAML encoding is mostly provided to demonstrate the meta-serialization format, since there is no official documentation from OASIS about this format.
This implementation is based on PyYAML, which uses YAML 1.1. Be aware that YAML 1.1 considers “on”/”off” and their capitalized versions as boolean values, so they are implicitely converted to True/False when parsing. This means that “on”/”off” must be explicitly enclosed in tics to be interpreted as strings in OpenC2 messages.
Classes
YAML Encoder |