lbaf.Utils.lbsJSONDataFilesMaker.YamlSpecificationDumper class

Custom dumper to add indent before list items hyphens.

Class methods

def add_implicit_resolver(tag, regexp, first)
def add_multi_representer(data_type, representer)
def add_path_resolver(tag, path, kind = None)
def add_representer(data_type, representer)

Methods

def analyze_scalar(self, scalar)
def anchor_node(self, node)
def ascend_resolver(self)
def check_empty_document(self)
def check_empty_mapping(self)
def check_empty_sequence(self)
def check_resolver_prefix(self, depth, path, kind, current_node, current_index)
def check_simple_key(self)
def choose_scalar_style(self)
def close(self)
def descend_resolver(self, current_node, current_index)
def determine_block_hints(self, text)
def dispose(self)
def emit(self, event)
def expect_alias(self)
def expect_block_mapping(self)
def expect_block_mapping_key(self, first = False)
def expect_block_mapping_simple_value(self)
def expect_block_mapping_value(self)
def expect_block_sequence(self)
def expect_block_sequence_item(self, first = False)
def expect_document_end(self)
def expect_document_root(self)
def expect_document_start(self, first = False)
def expect_first_block_mapping_key(self)
def expect_first_block_sequence_item(self)
def expect_first_document_start(self)
def expect_first_flow_mapping_key(self)
def expect_first_flow_sequence_item(self)
def expect_flow_mapping(self)
def expect_flow_mapping_key(self)
def expect_flow_mapping_simple_value(self)
def expect_flow_mapping_value(self)
def expect_flow_sequence(self)
def expect_flow_sequence_item(self)
def expect_node(self, root = False, sequence = False, mapping = False, simple_key = False)
def expect_nothing(self)
def expect_scalar(self)
def expect_stream_start(self)
def flush_stream(self)
def generate_anchor(self, node)
def ignore_aliases(self, data)
def increase_indent(self, flow = False, indentless = False)
def need_events(self, count)
def need_more_events(self)
def open(self)
def prepare_anchor(self, anchor)
def prepare_tag(self, tag)
def prepare_tag_handle(self, handle)
def prepare_tag_prefix(self, prefix)
def prepare_version(self, version)
def process_anchor(self, indicator)
def process_scalar(self)
def process_tag(self)
def represent(self, data)
def represent_binary(self, data)
def represent_bool(self, data)
def represent_complex(self, data)
def represent_data(self, data)
def represent_date(self, data)
def represent_datetime(self, data)
def represent_dict(self, data)
def represent_float(self, data)
def represent_int(self, data)
def represent_list(self, data)
def represent_mapping(self, tag, mapping, flow_style = None)
def represent_module(self, data)
def represent_name(self, data)
def represent_none(self, data)
def represent_object(self, data)
def represent_ordered_dict(self, data)
def represent_scalar(self, tag, value, style = None)
def represent_sequence(self, tag, sequence, flow_style = None)
def represent_set(self, data)
def represent_str(self, data)
def represent_tuple(self, data)
def represent_undefined(self, data)
def represent_yaml_object(self, tag, data, cls, flow_style = None)
def resolve(self, kind, value, implicit)
def serialize(self, node)
def serialize_node(self, node, parent, index)
def write_double_quoted(self, text, split = True)
def write_folded(self, text)
def write_indent(self)
def write_indicator(self, indicator, need_whitespace, whitespace = False, indention = False)
def write_line_break(self, data = None)
def write_literal(self, text)
def write_plain(self, text, split = True)
def write_single_quoted(self, text, split = True)
def write_stream_end(self)
def write_stream_start(self)
def write_tag_directive(self, handle_text, prefix_text)
def write_version_directive(self, version_text)

Special methods

def __init__(self, stream, default_style = None, default_flow_style = False, canonical = None, indent = None, width = None, allow_unicode = None, line_break = None, encoding = None, explicit_start = None, explicit_end = None, version = None, tags = None, sort_keys = True)

Data

ANCHOR_TEMPLATE = 'id%03d'
DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
DEFAULT_TAG_PREFIXES = {'!': '!', 'tag:yaml.org,2002:': '!!'}
ESCAPE_REPLACEMENTS = ...
inf_value = inf
yaml_implicit_resolvers = ...
yaml_multi_representers = ...
yaml_path_resolvers = {}
yaml_representers = ...