geotribu_cli.content.yaml_handler module

class geotribu_cli.content.yaml_handler.IndentedDumper(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)

Bases : Dumper

Custom YAML Dumper designed to indent values.

See:

increase_indent(flow=False, indentless=False)

Increase indent on keys values.

Paramètres:
  • flow (bool) – _description_. Defaults to False.

  • indentless (bool) – _description_. Defaults to False.

Renvoie:

_description_

class geotribu_cli.content.yaml_handler.IndentedYAMLHandler(fm_boundary=None, start_delimiter=None, end_delimiter=None)

Bases : YAMLHandler

Frontmatter YAML handler using the IndentedDumper.

export(metadata, **kwargs)

Export metadata as YAML. This uses yaml.SafeDumper by default.