vcorelib.io.encode
index
/home/vkottler/src/vkottler/workspace/vcorelib/vcorelib/io/encode.py

A module implementing various data-file encoders.

 
Functions
       
encode_ini(configs: Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]], ostream: Union[TextIO, _io.StringIO], _: Union[logging.Logger, logging.LoggerAdapter[Any]] = <Logger vcorelib.io.encode (WARNING)>, **kwargs) -> int
Write config data as INI to the output stream.
encode_json(configs: Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]], ostream: Union[TextIO, _io.StringIO], _: Union[logging.Logger, logging.LoggerAdapter[Any]] = <Logger vcorelib.io.encode (WARNING)>, **kwargs) -> int
Write config data as JSON to the output stream.
encode_toml(configs: Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]], ostream: Union[TextIO, _io.StringIO], _: Union[logging.Logger, logging.LoggerAdapter[Any]] = <Logger vcorelib.io.encode (WARNING)>, **kwargs) -> int
Write config data as TOML to the output stream.
encode_yaml(configs: Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]], ostream: Union[TextIO, _io.StringIO], _: Union[logging.Logger, logging.LoggerAdapter[Any]] = <Logger vcorelib.io.encode (WARNING)>, sequence: int = 4, offset: int = 2, mapping: int = 2, document_start: bool = True, **kwargs) -> int
Write config data as YAML to the output stream.

 
Data
        LoggerType = typing.Union[logging.Logger, logging.LoggerAdapter[typing.Any]]
linesep = '\n'