bag.io.string

This module handles string related IO.

Module Contents

Functions

read_yaml_str(→ object)

Parse the given yaml str and return the python object.

to_yaml_str(→ str)

Converts the given python object into a YAML string.

wrap_string(→ str)

Attributes

yaml

bag.io.string.yaml[source]
bag.io.string.read_yaml_str(content: str) object[source]

Parse the given yaml str and return the python object.

bag.io.string.to_yaml_str(obj: object) str[source]

Converts the given python object into a YAML string.

bag.io.string.wrap_string(str_list: Iterable[str], wrap_length: int = 80, indent_char: str = '+') str[source]