Package rekall :: Module yaml_utils :: Class PrettyPrinterDumper
[frames] | no frames]

Class PrettyPrinterDumper

source code


A dumper which produces pretty printed YAML.

See: http://stackoverflow.com/questions/6432605/any-yaml-libraries-in-python-that-support-dumping-of-long-strings-as-block-liter

Instance Methods

Inherited from yaml.dumper.SafeDumper: __init__

Inherited from yaml.emitter.Emitter: analyze_scalar, check_empty_document, check_empty_mapping, check_empty_sequence, check_simple_key, choose_scalar_style, determine_block_hints, dispose, emit, expect_alias, expect_block_mapping, expect_block_mapping_key, expect_block_mapping_simple_value, expect_block_mapping_value, expect_block_sequence, expect_block_sequence_item, expect_document_end, expect_document_root, expect_document_start, expect_first_block_mapping_key, expect_first_block_sequence_item, expect_first_document_start, expect_first_flow_mapping_key, expect_first_flow_sequence_item, expect_flow_mapping, expect_flow_mapping_key, expect_flow_mapping_simple_value, expect_flow_mapping_value, expect_flow_sequence, expect_flow_sequence_item, expect_node, expect_nothing, expect_scalar, expect_stream_start, flush_stream, increase_indent, need_events, need_more_events, prepare_anchor, prepare_tag, prepare_tag_handle, prepare_tag_prefix, prepare_version, process_anchor, process_scalar, process_tag, write_double_quoted, write_folded, write_indent, write_indicator, write_line_break, write_literal, write_plain, write_single_quoted, write_stream_end, write_stream_start, write_tag_directive, write_version_directive

Inherited from yaml.serializer.Serializer: anchor_node, close, generate_anchor, open, serialize, serialize_node

Inherited from yaml.representer.SafeRepresenter: ignore_aliases, represent_bool, represent_date, represent_datetime, represent_dict, represent_float, represent_int, represent_list, represent_long, represent_none, represent_set, represent_str, represent_undefined, represent_unicode, represent_yaml_object

Inherited from yaml.representer.BaseRepresenter: get_classobj_bases, represent, represent_data, represent_mapping, represent_scalar, represent_sequence

Inherited from yaml.resolver.BaseResolver: ascend_resolver, check_resolver_prefix, descend_resolver, resolve

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods

Inherited from yaml.representer.BaseRepresenter: add_multi_representer, add_representer

Inherited from yaml.resolver.BaseResolver: add_implicit_resolver, add_path_resolver

Class Variables
  yaml_representers = {None: <unbound method SafeRepresenter.rep...

Inherited from yaml.emitter.Emitter: DEFAULT_TAG_PREFIXES, ESCAPE_REPLACEMENTS

Inherited from yaml.serializer.Serializer: ANCHOR_TEMPLATE

Inherited from yaml.representer.SafeRepresenter: inf_value

Inherited from yaml.representer.BaseRepresenter: yaml_multi_representers

Inherited from yaml.resolver.Resolver: yaml_implicit_resolvers

Inherited from yaml.resolver.BaseResolver: DEFAULT_MAPPING_TAG, DEFAULT_SCALAR_TAG, DEFAULT_SEQUENCE_TAG, yaml_path_resolvers

Properties

Inherited from object: __class__

Class Variable Details

yaml_representers

Value:
{None: <unbound method SafeRepresenter.represent_undefined>,
 <type 'int'>: <unbound method SafeRepresenter.represent_int>,
 <type 'long'>: <unbound method SafeRepresenter.represent_long>,
 <type 'float'>: <unbound method SafeRepresenter.represent_float>,
 <type 'unicode'>: <function unicode_representer at 0x7fafd13d3488>,
 <type 'set'>: <unbound method SafeRepresenter.represent_set>,
 <type 'NoneType'>: <unbound method SafeRepresenter.represent_none>,
 <type 'bool'>: <unbound method SafeRepresenter.represent_bool>,
...