Skip to content

Latest commit

 

History

History
108 lines (49 loc) · 1.82 KB

lib.yaml_util.md

File metadata and controls

108 lines (49 loc) · 1.82 KB

module lib.yaml_util

Helper lib for yaml.


function load_from_path

load_from_path(file: Path) → Any

load_from_path.

Args:

  • file (Path): file

Returns:

  • Union[List, Dict]: yaml doc

function load_from_bytes

load_from_bytes(sio: bytes) → Any

load_from_bytes.

Args:

  • sio (bytes): sio

Returns:

  • Union[List, Dict]: value

function dump_to_file_open

dump_to_file_open(obj: Any, file: <class 'IO'>)

dump_to_file_open.

Args:

  • obj (Any): obj
  • file (BinaryIO): file

function dump_to_text

dump_to_text(obj: Any) → str

dump_to_text.

Args:

  • obj (Any): obj

Returns:

  • str: yaml text output

This file was automatically generated via lazydocs.