pyconfs/writers/ini.py
def as_ini(config: Dict[str, Any], store_types: bool = False, **ini_args: Any) -> None:
    """Use ConfigParser to write an ini-file"""
    cfg = ConfigParser(delimiters=("=",))
    cfg.update(_normalize(config, store_types=store_types))

    # Write to a string
    with io.StringIO() as string:
        cfg.write(string, **ini_args)
        return string.getvalue()
Use ConfigParser to write an ini-file
Use ConfigParser to write an ini-file
Use ConfigParser to write an ini - file
def as_ini(config: Dict[str, Any], store_types: bool = False, **ini_args: Any) -> None:
    cfg = ConfigParser(delimiters=("=",))
    cfg.update(_normalize(config, store_types=store_types))
    with io.StringIO() as string:
        cfg.write(string, **ini_args)
        return string.getvalue()
def as_ini ( config : Dict [ str , Any ] , store_types : bool = False , ** ini_args : Any ) -> None : cfg = ConfigParser ( delimiters = ( "=" , ) ) cfg . update ( _normalize ( config , store_types = store_types ) ) with io . StringIO ( ) as string : cfg . write ( string , ** ini_args ) return string . getvalue ( )
Use ConfigParser to write an ini-file
Use ConfigParser to write an ini - file
"""Use ConfigParser to write an ini-file""" # Write to a string
config
Dict[str, Any]
store_types
bool
ini_args
Any