pyconfs/readers/ini.py
def from_ini(string: str, **ini_args: Any) -> Dict[str, Any]:
    """Use ConfigParser to read an ini-file"""
    cfg = ConfigParser(delimiters=("=",), **ini_args)
    cfg.read_string(string)

    # Convert to nested dictionary and interpret given types
    return _convert_types(
        {
            name: {k: v for k, v in section.items()}
            for name, section in cfg.items()
            if not name == "DEFAULT"
        }
    )
Use ConfigParser to read an ini-file
Use ConfigParser to read an ini-file
Use ConfigParser to read an ini - file
def from_ini(string: str, **ini_args: Any) -> Dict[str, Any]:
    cfg = ConfigParser(delimiters=("=",), **ini_args)
    cfg.read_string(string)
    return _convert_types(
        {
            name: {k: v for k, v in section.items()}
            for name, section in cfg.items()
            if not name == "DEFAULT"
        }
    )
def from_ini ( string : str , ** ini_args : Any ) -> Dict [ str , Any ] : cfg = ConfigParser ( delimiters = ( "=" , ) , ** ini_args ) cfg . read_string ( string ) return _convert_types ( { name : { k : v for k , v in section . items ( ) } for name , section in cfg . items ( ) if not name == "DEFAULT" } )
Use ConfigParser to read an ini-file
Use ConfigParser to read an ini - file
"""Use ConfigParser to read an ini-file""" # Convert to nested dictionary and interpret given types
string
str
ini_args
Any